decomp DBCServer_Release and inspect/document database

This commit is contained in:
Benjamin Palko 2026-10-14 23:22:03 -04:00
parent 4b267cbe05
commit 7834b98bf0
28222 changed files with 843300 additions and 144 deletions

View file

@ -0,0 +1,40 @@
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
* Ghidra 12.1.2 decompiler output for 0x1400fa690 FUN_1400fa690
* Pseudocode, not original source. */
int FUN_1400fa690(void *param_1)
{
int iVar1;
longlong *plVar2;
int iVar3;
int iVar4;
if (param_1 == (void *)0x0) {
return 0x10;
}
EnterCriticalSection((LPCRITICAL_SECTION)&DAT_1401bd580);
iVar4 = 0;
iVar3 = 0;
do {
iVar1 = memcmp(&DAT_1401b8170 + (longlong)iVar3 * 0x10,param_1,0x80);
if (iVar1 == 0) {
LeaveCriticalSection((LPCRITICAL_SECTION)&DAT_1401bd580);
return iVar3;
}
iVar3 = iVar3 + 1;
} while (iVar3 < 0x20);
plVar2 = &DAT_1401b8170;
do {
if (*plVar2 == 0) {
memcpy(&DAT_1401b8170 + (longlong)iVar4 * 0x10,param_1,0x80);
LeaveCriticalSection((LPCRITICAL_SECTION)&DAT_1401bd580);
return iVar4;
}
plVar2 = plVar2 + 0x10;
iVar4 = iVar4 + 1;
} while ((longlong)plVar2 < 0x1401b9170);
LeaveCriticalSection((LPCRITICAL_SECTION)&DAT_1401bd580);
return -1;
}