decomp DBCServer_Release and inspect/document database
This commit is contained in:
parent
4b267cbe05
commit
7834b98bf0
28222 changed files with 843300 additions and 144 deletions
|
|
@ -0,0 +1,55 @@
|
|||
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
||||
* Ghidra 12.1.2 decompiler output for 0x1400dcb60 FUN_1400dcb60
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
|
||||
/* WARNING: Removing unreachable block (ram,0x0001400dcc0c) */
|
||||
|
||||
void FUN_1400dcb60(longlong param_1,byte *param_2,int param_3)
|
||||
|
||||
{
|
||||
byte bVar1;
|
||||
byte bVar2;
|
||||
byte bVar3;
|
||||
uint uVar4;
|
||||
void *pvVar5;
|
||||
longlong lVar6;
|
||||
void *pvVar7;
|
||||
undefined1 auStack_138 [32];
|
||||
byte local_118 [256];
|
||||
ulonglong local_18;
|
||||
|
||||
local_18 = DAT_1401ac5a0 ^ (ulonglong)auStack_138;
|
||||
pvVar7 = (void *)0x0;
|
||||
lVar6 = (longlong)param_3;
|
||||
pvVar5 = pvVar7;
|
||||
if (*(int *)(param_1 + 0x18) != 0) {
|
||||
pvVar5 = *(void **)(param_1 + 0x10);
|
||||
}
|
||||
memcpy(local_118,pvVar5,0x100);
|
||||
pvVar5 = pvVar7;
|
||||
if (0 < param_3) {
|
||||
do {
|
||||
uVar4 = (int)pvVar7 + 1U & 0x800000ff;
|
||||
if ((int)uVar4 < 0) {
|
||||
uVar4 = (uVar4 - 1 | 0xffffff00) + 1;
|
||||
}
|
||||
pvVar7 = (void *)(longlong)(int)uVar4;
|
||||
bVar1 = local_118[(longlong)pvVar7];
|
||||
uVar4 = (int)pvVar5 + (uint)bVar1 & 0x800000ff;
|
||||
if ((int)uVar4 < 0) {
|
||||
uVar4 = (uVar4 - 1 | 0xffffff00) + 1;
|
||||
}
|
||||
pvVar5 = (void *)(ulonglong)uVar4;
|
||||
bVar2 = local_118[(longlong)pvVar7];
|
||||
bVar3 = local_118[(int)uVar4];
|
||||
local_118[(longlong)pvVar7] = local_118[(int)uVar4];
|
||||
local_118[(int)uVar4] = bVar2;
|
||||
*param_2 = *param_2 ^ local_118[(int)((uint)bVar3 + (uint)bVar1 & 0x800000ff)];
|
||||
lVar6 = lVar6 + -1;
|
||||
param_2 = param_2 + 1;
|
||||
} while (lVar6 != 0);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue