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,44 @@
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
* Ghidra 12.1.2 decompiler output for 0x1400f9840 FUN_1400f9840
* Pseudocode, not original source. */
int FUN_1400f9840(longlong param_1)
{
char cVar1;
char cVar2;
char *pcVar3;
int iVar4;
undefined8 *puVar5;
longlong lVar6;
if (param_1 == 0) {
return 0x10;
}
EnterCriticalSection((LPCRITICAL_SECTION)&DAT_1401bd5c0);
iVar4 = 0;
puVar5 = &DAT_1401b7770;
do {
pcVar3 = (char *)*puVar5;
if (pcVar3 != (char *)0x0) {
lVar6 = param_1 - (longlong)pcVar3;
do {
cVar1 = *pcVar3;
cVar2 = pcVar3[lVar6];
if (cVar1 != cVar2) break;
pcVar3 = pcVar3 + 1;
} while (cVar2 != '\0');
if (cVar1 == cVar2) {
LeaveCriticalSection((LPCRITICAL_SECTION)&DAT_1401bd5c0);
return iVar4;
}
}
iVar4 = iVar4 + 1;
puVar5 = puVar5 + 10;
if (0x1f < iVar4) {
LeaveCriticalSection((LPCRITICAL_SECTION)&DAT_1401bd5c0);
return -1;
}
} while( true );
}