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
61
decomp/DBCServer_Release_x64/full/functions/0x1401e42a0.c
Normal file
61
decomp/DBCServer_Release_x64/full/functions/0x1401e42a0.c
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x1401e42a0 FUN_1401e42a0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
|
||||
|
||||
int FUN_1401e42a0(longlong param_1)
|
||||
|
||||
{
|
||||
int iVar1;
|
||||
int iVar2;
|
||||
ulonglong uVar3;
|
||||
longlong lVar4;
|
||||
undefined1 auStack_b8 [32];
|
||||
undefined1 local_98 [128];
|
||||
ulonglong local_18;
|
||||
|
||||
local_18 = DAT_1403463c0 ^ (ulonglong)auStack_b8;
|
||||
if (param_1 == 0) {
|
||||
iVar1 = 0x10;
|
||||
}
|
||||
else {
|
||||
uVar3 = 0;
|
||||
do {
|
||||
iVar2 = (int)uVar3;
|
||||
iVar1 = FUN_140205720((longlong)iVar2 * 0x70 + param_1);
|
||||
if (iVar1 != 0) {
|
||||
if (iVar2 < 1) {
|
||||
return iVar1;
|
||||
}
|
||||
do {
|
||||
FUN_140205850(param_1,local_98);
|
||||
param_1 = param_1 + 0x70;
|
||||
uVar3 = uVar3 - 1;
|
||||
} while (uVar3 != 0);
|
||||
return iVar1;
|
||||
}
|
||||
uVar3 = (ulonglong)(iVar2 + 1U);
|
||||
} while ((int)(iVar2 + 1U) < 0x20);
|
||||
lVar4 = 0x20;
|
||||
*(undefined8 *)(param_1 + 0x101c) = 0;
|
||||
*(undefined4 *)(param_1 + 0x1018) = 0;
|
||||
*(undefined8 *)(param_1 + 0x1028) = 0;
|
||||
FUN_140205a20(param_1 + 0xfe8,0x20);
|
||||
iVar1 = FUN_140202980(param_1 + 0xfe8,0x20,0,param_1 + 0xe00);
|
||||
if (iVar1 == 0) {
|
||||
FUN_140205a20(param_1 + 0x1008,0x10);
|
||||
InitializeCriticalSection((LPCRITICAL_SECTION)(param_1 + 0x1030));
|
||||
iVar1 = 0;
|
||||
}
|
||||
else {
|
||||
do {
|
||||
FUN_140205850(param_1,local_98);
|
||||
param_1 = param_1 + 0x70;
|
||||
lVar4 = lVar4 + -1;
|
||||
} while (lVar4 != 0);
|
||||
}
|
||||
}
|
||||
return iVar1;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue