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
86
decomp/DBCServer_Release_x64/full/functions/0x1401d9670.c
Normal file
86
decomp/DBCServer_Release_x64/full/functions/0x1401d9670.c
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x1401d9670 FUN_1401d9670
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_1401d9670(longlong param_1,undefined4 param_2,longlong param_3,undefined8 param_4)
|
||||
|
||||
{
|
||||
undefined4 uVar1;
|
||||
int iVar2;
|
||||
longlong lVar3;
|
||||
void *pvVar4;
|
||||
undefined8 uVar5;
|
||||
longlong lVar6;
|
||||
longlong lVar7;
|
||||
longlong lVar8;
|
||||
int iVar9;
|
||||
undefined4 *puVar10;
|
||||
longlong *local_res20;
|
||||
|
||||
FUN_1401738d0(param_3,0,param_3,param_4,0xfffffffffffffffe);
|
||||
uVar5 = (**(code **)(*(longlong *)(param_1 + -0x70) + 0x58))(param_1 + -0x70);
|
||||
FUN_14016db50(uVar5);
|
||||
FUN_1401d8f20(param_1 + -0x70,&local_res20,param_2);
|
||||
if ((local_res20 != (longlong *)0x0) && (lVar3 = *local_res20, lVar3 != 0)) {
|
||||
if (*(longlong *)(lVar3 + 0x28) == 0) {
|
||||
puVar10 = (undefined4 *)0x0;
|
||||
}
|
||||
else {
|
||||
puVar10 = *(undefined4 **)(lVar3 + 0x18);
|
||||
}
|
||||
while( true ) {
|
||||
if (local_res20 == (longlong *)0x0) {
|
||||
lVar8 = 0;
|
||||
}
|
||||
else {
|
||||
lVar8 = *local_res20;
|
||||
}
|
||||
if (puVar10 == (undefined4 *)0x0) break;
|
||||
uVar1 = *puVar10;
|
||||
iVar2 = *(int *)(param_3 + 0x18);
|
||||
lVar8 = (longlong)iVar2;
|
||||
if (iVar2 < 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14016d6b0();
|
||||
}
|
||||
iVar9 = *(int *)(param_3 + 0x18);
|
||||
FUN_1401738d0(param_3,iVar9 + 1);
|
||||
iVar9 = iVar9 - iVar2;
|
||||
if (0 < iVar9) {
|
||||
if (*(int *)(param_3 + 0x18) == 0) {
|
||||
lVar7 = 0;
|
||||
lVar6 = 0;
|
||||
}
|
||||
else {
|
||||
lVar7 = *(longlong *)(param_3 + 0x10);
|
||||
lVar6 = *(longlong *)(param_3 + 0x10);
|
||||
}
|
||||
memmove((void *)(lVar6 + 4 + lVar8 * 4),(void *)(lVar7 + lVar8 * 4),(longlong)iVar9 << 2);
|
||||
}
|
||||
if (*(int *)(param_3 + 0x18) == 0) {
|
||||
lVar7 = 0;
|
||||
}
|
||||
else {
|
||||
lVar7 = *(longlong *)(param_3 + 0x10);
|
||||
}
|
||||
*(undefined4 *)(lVar7 + lVar8 * 4) = uVar1;
|
||||
puVar10 = *(undefined4 **)(puVar10 + 4);
|
||||
}
|
||||
if (lVar3 + 8 != lVar8 + 8) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80004005);
|
||||
}
|
||||
}
|
||||
if ((local_res20 != (longlong *)0x0) &&
|
||||
(local_res20[1] = local_res20[1] + -1, local_res20[1] == 0)) {
|
||||
pvVar4 = (void *)*local_res20;
|
||||
if (pvVar4 != (void *)0x0) {
|
||||
FUN_1401c9600((longlong)pvVar4 + 8);
|
||||
operator_delete(pvVar4);
|
||||
}
|
||||
FUN_14016d970(local_res20);
|
||||
}
|
||||
FUN_14016dbe0(uVar5);
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue