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,65 @@
|
|||
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
||||
* Ghidra 12.1.2 decompiler output for 0x140006db0 FUN_140006db0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_140006db0(longlong param_1,longlong param_2,int *param_3,undefined8 param_4)
|
||||
|
||||
{
|
||||
longlong *plVar1;
|
||||
int *piVar2;
|
||||
wchar_t *pwVar3;
|
||||
uint *puVar4;
|
||||
ulonglong uVar5;
|
||||
int *piVar6;
|
||||
undefined *puVar7;
|
||||
undefined *local_res8;
|
||||
|
||||
piVar6 = param_3;
|
||||
FUN_14006b350((int *)(param_1 + 0x110));
|
||||
plVar1 = FUN_140078d30(param_3,(longlong *)&local_res8,piVar6,param_4);
|
||||
puVar7 = (undefined *)*plVar1;
|
||||
if ((undefined *)*plVar1 == (undefined *)0x0) {
|
||||
puVar7 = PTR_DAT_1401ac010;
|
||||
}
|
||||
uVar5 = (ulonglong)*(uint *)(param_2 + 0x30);
|
||||
pwVar3 = L"Leave Server : HostID:[%d][%s]";
|
||||
FUN_14000a810(L"Leave Server : HostID:[%d][%s]",uVar5,puVar7,param_4);
|
||||
if (((local_res8 != (undefined *)0x0) && (local_res8 != PTR_DAT_1401ac010)) &&
|
||||
(local_res8 + -8 != (undefined *)0x0)) {
|
||||
piVar2 = (int *)FUN_14006cb70(pwVar3,uVar5,puVar7,param_4);
|
||||
FUN_14006b350(piVar2);
|
||||
piVar6 = (int *)(local_res8 + -4);
|
||||
*piVar6 = *piVar6 + -1;
|
||||
if (*piVar6 == 0) {
|
||||
FUN_14006cc60(local_res8 + -8);
|
||||
}
|
||||
FUN_14006b3e0((longlong)piVar2);
|
||||
}
|
||||
uVar5 = (ulonglong)*(uint *)(param_2 + 0x30) % (ulonglong)*(uint *)(param_1 + 0xd8);
|
||||
if ((*(longlong *)(param_1 + 0xb8) != 0) &&
|
||||
(puVar4 = *(uint **)(*(longlong *)(param_1 + 0xb8) + uVar5 * 8), puVar4 != (uint *)0x0)) {
|
||||
while ((uint)uVar5 == puVar4[8] % *(uint *)(param_1 + 0xd8)) {
|
||||
if (*puVar4 == *(uint *)(param_2 + 0x30)) {
|
||||
puVar4 = *(uint **)(puVar4 + 2);
|
||||
if (puVar4 != (uint *)0x0) {
|
||||
FUN_140006bf0(param_1,puVar4);
|
||||
if (7 < *(ulonglong *)(puVar4 + 8)) {
|
||||
operator_delete(*(void **)(puVar4 + 2));
|
||||
}
|
||||
puVar4[8] = 7;
|
||||
puVar4[9] = 0;
|
||||
puVar4[6] = 0;
|
||||
puVar4[7] = 0;
|
||||
*(undefined2 *)(puVar4 + 2) = 0;
|
||||
operator_delete(puVar4);
|
||||
}
|
||||
break;
|
||||
}
|
||||
puVar4 = *(uint **)(puVar4 + 4);
|
||||
if (puVar4 == (uint *)0x0) break;
|
||||
}
|
||||
}
|
||||
FUN_14006b3e0(param_1 + 0x110);
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue