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,53 @@
|
|||
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
||||
* Ghidra 12.1.2 decompiler output for 0x140108cb0 FUN_140108cb0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
ulonglong FUN_140108cb0(longlong param_1,int param_2,undefined8 param_3,uint param_4)
|
||||
|
||||
{
|
||||
int iVar1;
|
||||
uint uVar2;
|
||||
ulonglong uVar3;
|
||||
byte *_Memory;
|
||||
bool bVar4;
|
||||
int local_res8 [2];
|
||||
|
||||
if (param_1 == 0) {
|
||||
return 0x10;
|
||||
}
|
||||
bVar4 = param_2 < 0;
|
||||
if (bVar4) {
|
||||
param_2 = -param_2;
|
||||
}
|
||||
if (0x1fe < param_2 - 2U) {
|
||||
return 0x17;
|
||||
}
|
||||
uVar3 = FUN_1401034e0(param_4);
|
||||
if ((int)uVar3 == 0) {
|
||||
_Memory = calloc(1,(longlong)param_2);
|
||||
if (_Memory == (byte *)0x0) {
|
||||
uVar3 = 0xd;
|
||||
}
|
||||
else {
|
||||
do {
|
||||
iVar1 = (**(code **)(&DAT_1401b7798 + (longlong)(int)param_4 * 0x50))
|
||||
(_Memory,param_2,param_3);
|
||||
if (iVar1 != param_2) {
|
||||
free(_Memory);
|
||||
return 9;
|
||||
}
|
||||
*_Memory = *_Memory | 0xc0;
|
||||
_Memory[(longlong)param_2 - 1] = _Memory[(longlong)param_2 - 1] | bVar4 * '\x02' | 1U;
|
||||
uVar2 = (*DAT_1401bd6a0)(param_1,_Memory,param_2);
|
||||
if ((uVar2 != 0) || (uVar2 = (*DAT_1401bd748)(param_1,local_res8), uVar2 != 0)) {
|
||||
free(_Memory);
|
||||
return (ulonglong)uVar2;
|
||||
}
|
||||
} while (local_res8[0] == 0);
|
||||
free(_Memory);
|
||||
uVar3 = 0;
|
||||
}
|
||||
}
|
||||
return uVar3;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue