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
191
decomp/DBCServer_Release_x64/full/functions/0x1401d6a20.c
Normal file
191
decomp/DBCServer_Release_x64/full/functions/0x1401d6a20.c
Normal file
|
|
@ -0,0 +1,191 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x1401d6a20 FUN_1401d6a20
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_1401d6a20(longlong param_1,longlong param_2,undefined8 param_3)
|
||||
|
||||
{
|
||||
longlong *plVar1;
|
||||
longlong *plVar2;
|
||||
undefined8 *puVar3;
|
||||
uint uVar4;
|
||||
uint uVar5;
|
||||
undefined8 uVar6;
|
||||
uint *puVar7;
|
||||
undefined8 uVar8;
|
||||
uint *puVar9;
|
||||
uint uVar10;
|
||||
uint uVar11;
|
||||
uint uVar12;
|
||||
uint uVar13;
|
||||
uint *local_res8;
|
||||
longlong *local_res10;
|
||||
undefined1 local_res20 [8];
|
||||
undefined **local_90;
|
||||
undefined4 local_88;
|
||||
undefined2 local_84;
|
||||
undefined8 local_80;
|
||||
undefined1 local_78;
|
||||
undefined8 local_70;
|
||||
undefined1 local_68;
|
||||
undefined **local_60;
|
||||
undefined8 local_58;
|
||||
undefined8 local_50;
|
||||
undefined8 local_48;
|
||||
undefined8 local_40;
|
||||
|
||||
plVar2 = (longlong *)(param_1 + -0x88);
|
||||
uVar6 = (**(code **)(*plVar2 + 0x58))(plVar2);
|
||||
local_80 = uVar6;
|
||||
FUN_14016db50(uVar6);
|
||||
local_78 = 1;
|
||||
local_90 = Proud::AddrPort::vftable;
|
||||
local_88 = *(undefined4 *)(param_2 + 8);
|
||||
local_84 = *(undefined2 *)(param_2 + 0xc);
|
||||
FUN_1401d0f00(plVar2,&local_res10,&local_90);
|
||||
FUN_14016d8c0();
|
||||
local_res8 = (uint *)PTR_DAT_1403440a0;
|
||||
uVar4 = FUN_14016d740(param_3);
|
||||
uVar12 = 0;
|
||||
uVar13 = 0;
|
||||
uVar10 = uVar12;
|
||||
if ((local_res8 != (uint *)0x0) && (uVar10 = 0, local_res8 != (uint *)PTR_DAT_1403440a0)) {
|
||||
uVar10 = local_res8[-2];
|
||||
}
|
||||
uVar5 = uVar4;
|
||||
if ((((int)uVar4 <= (int)uVar10) && (uVar5 = uVar13, local_res8 != (uint *)0x0)) &&
|
||||
(local_res8 != (uint *)PTR_DAT_1403440a0)) {
|
||||
uVar5 = local_res8[-2];
|
||||
}
|
||||
uVar10 = 1;
|
||||
if (1 < (int)uVar5) {
|
||||
uVar10 = uVar5;
|
||||
}
|
||||
uVar5 = uVar13;
|
||||
if ((local_res8 != (uint *)0x0) && (local_res8 != (uint *)PTR_DAT_1403440a0)) {
|
||||
uVar5 = local_res8[-2];
|
||||
}
|
||||
uVar11 = 0;
|
||||
if ((int)uVar5 < (int)uVar10) {
|
||||
if (local_res8 == (uint *)0x0) {
|
||||
local_res8 = (uint *)PTR_DAT_1403440a0;
|
||||
}
|
||||
if ((int)uVar10 < 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14016d6b0();
|
||||
}
|
||||
if (uVar10 == 0) {
|
||||
FUN_14004eb70(&local_res8);
|
||||
}
|
||||
else {
|
||||
uVar5 = uVar13;
|
||||
if ((local_res8 != (uint *)0x0) && (local_res8 != (uint *)PTR_DAT_1403440a0)) {
|
||||
uVar5 = local_res8[-2];
|
||||
}
|
||||
if (uVar10 != uVar5) {
|
||||
puVar7 = (uint *)FUN_14016d940((longlong)(int)uVar10 * 2 + 10);
|
||||
if (puVar7 != (uint *)0x0) {
|
||||
*puVar7 = 0;
|
||||
puVar7[1] = 1;
|
||||
}
|
||||
*puVar7 = uVar10;
|
||||
uVar5 = uVar11;
|
||||
if ((local_res8 != (uint *)0x0) && (local_res8 != (uint *)PTR_DAT_1403440a0)) {
|
||||
uVar5 = local_res8[-2];
|
||||
}
|
||||
puVar9 = (uint *)PTR_DAT_1403440a0;
|
||||
if ((int)uVar10 < (int)uVar5) {
|
||||
LAB_1401d6b93:
|
||||
if (local_res8 != (uint *)0x0) {
|
||||
puVar9 = local_res8;
|
||||
}
|
||||
}
|
||||
else {
|
||||
uVar10 = uVar13;
|
||||
if (local_res8 != (uint *)0x0) {
|
||||
if (local_res8 != (uint *)PTR_DAT_1403440a0) {
|
||||
uVar10 = local_res8[-2];
|
||||
}
|
||||
goto LAB_1401d6b93;
|
||||
}
|
||||
}
|
||||
FUN_14016d770(puVar7 + 2,puVar9,uVar10);
|
||||
FUN_14004eb70(&local_res8);
|
||||
local_res8 = puVar7 + 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
FUN_14004e850(&local_res8);
|
||||
puVar7 = local_res8;
|
||||
if (local_res8 == (uint *)0x0) {
|
||||
puVar7 = (uint *)PTR_DAT_1403440a0;
|
||||
}
|
||||
FUN_14016d770(puVar7,param_3,uVar4);
|
||||
puVar7 = local_res8;
|
||||
if (local_res8 == (uint *)0x0) {
|
||||
puVar7 = (uint *)PTR_DAT_1403440a0;
|
||||
}
|
||||
uVar4 = FUN_14016d740(puVar7);
|
||||
plVar1 = local_res10;
|
||||
uVar10 = 0;
|
||||
if (0 < (int)uVar4) {
|
||||
uVar10 = uVar4;
|
||||
}
|
||||
uVar4 = uVar11;
|
||||
if ((local_res8 != (uint *)0x0) && (local_res8 != (uint *)PTR_DAT_1403440a0)) {
|
||||
uVar4 = local_res8[-2];
|
||||
}
|
||||
if (((int)uVar4 <= (int)uVar10) && (uVar10 = uVar11, local_res8 != (uint *)0x0)) {
|
||||
if (local_res8 == (uint *)PTR_DAT_1403440a0) goto LAB_1401d6c43;
|
||||
uVar10 = local_res8[-2];
|
||||
}
|
||||
if (((local_res8 != (uint *)PTR_DAT_1403440a0) && (local_res8 != (uint *)0x0)) &&
|
||||
(local_res8 + -2 != (uint *)0x0)) {
|
||||
local_res8[-2] = uVar10;
|
||||
*(undefined2 *)((longlong)local_res8 + (longlong)(int)uVar10 * 2) = 0;
|
||||
}
|
||||
LAB_1401d6c43:
|
||||
if ((local_res10 != (longlong *)0x0) && (*local_res10 != 0)) {
|
||||
uVar12 = *(uint *)(*local_res10 + 0x56c);
|
||||
}
|
||||
local_58 = 0;
|
||||
local_50 = 0;
|
||||
local_48 = 0;
|
||||
local_40 = 0;
|
||||
local_60 = Proud::ByteArray::vftable;
|
||||
uVar8 = FUN_140198f80(local_res20,0x1f,uVar12,&local_res8,&local_60);
|
||||
(**(code **)(*plVar2 + 0x88))(plVar2,uVar8);
|
||||
FUN_14019a9e0(&local_60);
|
||||
puVar7 = local_res8;
|
||||
if (((local_res8 != (uint *)0x0) && (local_res8 != (uint *)PTR_DAT_1403440a0)) &&
|
||||
(puVar9 = local_res8 + -2, puVar9 != (uint *)0x0)) {
|
||||
uVar8 = FUN_14016d8c0();
|
||||
local_70 = uVar8;
|
||||
FUN_14016db50(uVar8);
|
||||
local_68 = 1;
|
||||
puVar7 = puVar7 + -1;
|
||||
*puVar7 = *puVar7 - 1;
|
||||
if (*puVar7 == 0) {
|
||||
FUN_14016d970(puVar9);
|
||||
}
|
||||
FUN_14016dbe0(uVar8);
|
||||
local_68 = 0;
|
||||
}
|
||||
local_res8 = (uint *)PTR_DAT_1403440a0;
|
||||
if (plVar1 != (longlong *)0x0) {
|
||||
plVar1 = plVar1 + 1;
|
||||
*plVar1 = *plVar1 + -1;
|
||||
uVar6 = local_80;
|
||||
if (*plVar1 == 0) {
|
||||
puVar3 = (undefined8 *)*local_res10;
|
||||
if (puVar3 != (undefined8 *)0x0) {
|
||||
(**(code **)*puVar3)(puVar3,1);
|
||||
}
|
||||
FUN_14016d970(local_res10);
|
||||
uVar6 = local_80;
|
||||
}
|
||||
}
|
||||
FUN_14016dbe0(uVar6);
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue