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
99
decomp/DBCServer_Release_x64/full/functions/0x14019b750.c
Normal file
99
decomp/DBCServer_Release_x64/full/functions/0x14019b750.c
Normal file
|
|
@ -0,0 +1,99 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x14019b750 FUN_14019b750
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_14019b750(longlong param_1,longlong param_2)
|
||||
|
||||
{
|
||||
undefined1 uVar1;
|
||||
int iVar2;
|
||||
uint uVar3;
|
||||
longlong lVar4;
|
||||
undefined8 uVar5;
|
||||
undefined8 *puVar6;
|
||||
undefined4 uVar7;
|
||||
longlong lVar8;
|
||||
undefined8 *_Src;
|
||||
undefined8 *puVar9;
|
||||
longlong lVar10;
|
||||
longlong lVar11;
|
||||
int iVar12;
|
||||
ulonglong uVar13;
|
||||
int iVar14;
|
||||
ulonglong uVar15;
|
||||
undefined1 local_78 [80];
|
||||
|
||||
FUN_14016ac60(param_2);
|
||||
FUN_14016abe0(param_2);
|
||||
uVar7 = FUN_14019b440(param_1);
|
||||
FUN_14016b5a0(param_2,uVar7);
|
||||
if (*(longlong *)(param_1 + 0xc80) == 0) {
|
||||
FUN_14016d300(local_78,PTR_u_ArrayWithExternalBuffer_is_unini_1403440d0);
|
||||
/* WARNING: Subroutine does not return */
|
||||
_CxxThrowException(local_78,(ThrowInfo *)&DAT_1403417f8);
|
||||
}
|
||||
iVar2 = *(int *)(param_1 + 0xc88);
|
||||
iVar14 = 0;
|
||||
iVar12 = 0;
|
||||
lVar10 = 0;
|
||||
if (0 < (longlong)iVar2) {
|
||||
lVar11 = 0;
|
||||
do {
|
||||
lVar4 = *(longlong *)(param_1 + 0xc80);
|
||||
if (lVar4 == 0) {
|
||||
FUN_14016d300(local_78,PTR_u_ArrayWithExternalBuffer_is_unini_1403440d0);
|
||||
/* WARNING: Subroutine does not return */
|
||||
_CxxThrowException(local_78,(ThrowInfo *)&DAT_1403417f8);
|
||||
}
|
||||
if ((lVar10 < 0) || (*(int *)(param_1 + 0xc88) <= iVar12)) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14016d6b0();
|
||||
}
|
||||
lVar8 = *(longlong *)(param_2 + 0x10);
|
||||
uVar3 = *(uint *)(lVar11 + 8 + lVar4);
|
||||
uVar15 = (ulonglong)(int)uVar3;
|
||||
_Src = *(undefined8 **)(lVar11 + lVar4);
|
||||
if (lVar8 == 0) {
|
||||
lVar4 = *(longlong *)(param_2 + 8);
|
||||
if (lVar4 == 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14016d1e0();
|
||||
}
|
||||
if (*(int *)(lVar4 + 0x18) == 0) {
|
||||
lVar8 = 0;
|
||||
}
|
||||
else {
|
||||
lVar8 = *(longlong *)(lVar4 + 0x10);
|
||||
}
|
||||
}
|
||||
if (uVar15 < 0x21) {
|
||||
uVar13 = (ulonglong)(uVar3 & 7);
|
||||
puVar6 = (undefined8 *)(iVar14 + lVar8);
|
||||
for (uVar15 = uVar15 >> 3; uVar15 != 0; uVar15 = uVar15 - 1) {
|
||||
uVar5 = *_Src;
|
||||
_Src = _Src + 1;
|
||||
*puVar6 = uVar5;
|
||||
puVar6 = puVar6 + 1;
|
||||
}
|
||||
if (uVar13 != 0) {
|
||||
puVar9 = _Src;
|
||||
do {
|
||||
uVar1 = *(undefined1 *)puVar9;
|
||||
puVar9 = (undefined8 *)((longlong)puVar9 + 1);
|
||||
uVar13 = uVar13 - 1;
|
||||
*(undefined1 *)((longlong)puVar6 + (-1 - (longlong)_Src) + (longlong)puVar9) = uVar1;
|
||||
} while (uVar13 != 0);
|
||||
}
|
||||
}
|
||||
else {
|
||||
memcpy((undefined8 *)(iVar14 + lVar8),_Src,uVar15);
|
||||
}
|
||||
lVar10 = lVar10 + 1;
|
||||
iVar14 = iVar14 + uVar3;
|
||||
iVar12 = iVar12 + 1;
|
||||
lVar11 = lVar11 + 0x10;
|
||||
} while (lVar10 < iVar2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue