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,57 @@
|
|||
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
||||
* Ghidra 12.1.2 decompiler output for 0x1400fb6b0 FUN_1400fb6b0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
ulonglong FUN_1400fb6b0(longlong param_1,uint *param_2,void *param_3)
|
||||
|
||||
{
|
||||
LPCRITICAL_SECTION lpCriticalSection;
|
||||
longlong *_Dst;
|
||||
ulonglong uVar1;
|
||||
ulonglong uVar2;
|
||||
int iVar3;
|
||||
undefined1 *puVar4;
|
||||
|
||||
if (((param_1 == 0) || (param_2 == (uint *)0x0)) || (param_3 == (void *)0x0)) {
|
||||
return 0x10;
|
||||
}
|
||||
lpCriticalSection = (LPCRITICAL_SECTION)((longlong)param_3 + 0x1030);
|
||||
EnterCriticalSection(lpCriticalSection);
|
||||
if (*param_2 < 0x400) {
|
||||
LeaveCriticalSection(lpCriticalSection);
|
||||
*param_2 = 0x400;
|
||||
return 6;
|
||||
}
|
||||
_Dst = malloc(0x70);
|
||||
if (_Dst == (longlong *)0x0) {
|
||||
LeaveCriticalSection(lpCriticalSection);
|
||||
uVar1 = 0xd;
|
||||
}
|
||||
else {
|
||||
iVar3 = 0;
|
||||
do {
|
||||
memcpy(_Dst,param_3,0x70);
|
||||
puVar4 = (undefined1 *)(iVar3 + param_1);
|
||||
uVar2 = FUN_140108200(_Dst,puVar4);
|
||||
uVar1 = uVar2 & 0xffffffff;
|
||||
if ((int)uVar2 != 0) goto LAB_1400fb7d2;
|
||||
uVar2 = FUN_1401080d0(_Dst);
|
||||
uVar1 = uVar2 & 0xffffffff;
|
||||
if ((int)uVar2 != 0) goto LAB_1400fb7d2;
|
||||
uVar2 = FUN_140108120(_Dst,puVar4,0x20);
|
||||
uVar1 = uVar2 & 0xffffffff;
|
||||
if ((int)uVar2 != 0) goto LAB_1400fb7d2;
|
||||
uVar2 = FUN_140108200(_Dst,puVar4);
|
||||
uVar1 = uVar2 & 0xffffffff;
|
||||
if ((int)uVar2 != 0) goto LAB_1400fb7d2;
|
||||
iVar3 = iVar3 + 0x20;
|
||||
param_3 = (void *)((longlong)param_3 + 0x70);
|
||||
} while (iVar3 < 0x400);
|
||||
*param_2 = 0x400;
|
||||
LAB_1400fb7d2:
|
||||
free(_Dst);
|
||||
LeaveCriticalSection(lpCriticalSection);
|
||||
}
|
||||
return uVar1;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue