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
40
decomp/DBCServer_Release_x64/full/functions/0x1401e4020.c
Normal file
40
decomp/DBCServer_Release_x64/full/functions/0x1401e4020.c
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x1401e4020 FUN_1401e4020
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
int FUN_1401e4020(void *param_1)
|
||||
|
||||
{
|
||||
int iVar1;
|
||||
longlong *plVar2;
|
||||
int iVar3;
|
||||
int iVar4;
|
||||
|
||||
if (param_1 == (void *)0x0) {
|
||||
return 0x10;
|
||||
}
|
||||
EnterCriticalSection((LPCRITICAL_SECTION)&DAT_14039d220);
|
||||
iVar4 = 0;
|
||||
iVar3 = 0;
|
||||
do {
|
||||
iVar1 = memcmp(&DAT_14034f290 + (longlong)iVar3 * 10,param_1,0x50);
|
||||
if (iVar1 == 0) {
|
||||
LeaveCriticalSection((LPCRITICAL_SECTION)&DAT_14039d220);
|
||||
return iVar3;
|
||||
}
|
||||
iVar3 = iVar3 + 1;
|
||||
} while (iVar3 < 0x20);
|
||||
plVar2 = &DAT_14034f290;
|
||||
do {
|
||||
if (*plVar2 == 0) {
|
||||
memcpy(&DAT_14034f290 + (longlong)iVar4 * 10,param_1,0x50);
|
||||
LeaveCriticalSection((LPCRITICAL_SECTION)&DAT_14039d220);
|
||||
return iVar4;
|
||||
}
|
||||
plVar2 = plVar2 + 10;
|
||||
iVar4 = iVar4 + 1;
|
||||
} while ((longlong)plVar2 < 0x14034fc90);
|
||||
LeaveCriticalSection((LPCRITICAL_SECTION)&DAT_14039d220);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue