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,40 @@
|
|||
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
||||
* Ghidra 12.1.2 decompiler output for 0x1400faee0 FUN_1400faee0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
int FUN_1400faee0(void *param_1)
|
||||
|
||||
{
|
||||
int iVar1;
|
||||
longlong *plVar2;
|
||||
int iVar3;
|
||||
int iVar4;
|
||||
|
||||
if (param_1 == (void *)0x0) {
|
||||
return 0x10;
|
||||
}
|
||||
EnterCriticalSection((LPCRITICAL_SECTION)&DAT_1401bd5c0);
|
||||
iVar4 = 0;
|
||||
iVar3 = 0;
|
||||
do {
|
||||
iVar1 = memcmp(&DAT_1401b7770 + (longlong)iVar3 * 10,param_1,0x50);
|
||||
if (iVar1 == 0) {
|
||||
LeaveCriticalSection((LPCRITICAL_SECTION)&DAT_1401bd5c0);
|
||||
return iVar3;
|
||||
}
|
||||
iVar3 = iVar3 + 1;
|
||||
} while (iVar3 < 0x20);
|
||||
plVar2 = &DAT_1401b7770;
|
||||
do {
|
||||
if (*plVar2 == 0) {
|
||||
memcpy(&DAT_1401b7770 + (longlong)iVar4 * 10,param_1,0x50);
|
||||
LeaveCriticalSection((LPCRITICAL_SECTION)&DAT_1401bd5c0);
|
||||
return iVar4;
|
||||
}
|
||||
plVar2 = plVar2 + 10;
|
||||
iVar4 = iVar4 + 1;
|
||||
} while ((longlong)plVar2 < 0x1401b8170);
|
||||
LeaveCriticalSection((LPCRITICAL_SECTION)&DAT_1401bd5c0);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue