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
64
decomp/DBCServer_Release_x64/full/functions/0x1401c8ac0.c
Normal file
64
decomp/DBCServer_Release_x64/full/functions/0x1401c8ac0.c
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x1401c8ac0 FUN_1401c8ac0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_1401c8ac0(longlong param_1,longlong param_2)
|
||||
|
||||
{
|
||||
int iVar1;
|
||||
undefined8 uVar2;
|
||||
longlong lVar3;
|
||||
longlong lVar4;
|
||||
ulonglong uVar5;
|
||||
longlong lVar6;
|
||||
int iVar7;
|
||||
longlong lVar8;
|
||||
|
||||
uVar2 = (**(code **)(*(longlong *)(param_1 + -0x70) + 0x58))();
|
||||
FUN_14016db50(uVar2);
|
||||
FUN_1401738d0(param_2,0);
|
||||
if (*(longlong *)(param_1 + 0x590) == 0) {
|
||||
lVar6 = 0;
|
||||
}
|
||||
else {
|
||||
lVar6 = *(longlong *)(param_1 + 0x580);
|
||||
}
|
||||
while( true ) {
|
||||
if (lVar6 == 0) {
|
||||
FUN_14016dbe0(uVar2);
|
||||
return;
|
||||
}
|
||||
iVar1 = *(int *)(param_2 + 0x18);
|
||||
lVar8 = (longlong)iVar1;
|
||||
if (iVar1 < 0) break;
|
||||
iVar7 = *(int *)(param_2 + 0x18);
|
||||
FUN_1401738d0(param_2,iVar7 + 1);
|
||||
iVar7 = iVar7 - iVar1;
|
||||
if (0 < iVar7) {
|
||||
if (*(int *)(param_2 + 0x18) == 0) {
|
||||
lVar4 = 0;
|
||||
lVar3 = 0;
|
||||
}
|
||||
else {
|
||||
lVar4 = *(longlong *)(param_2 + 0x10);
|
||||
lVar3 = *(longlong *)(param_2 + 0x10);
|
||||
}
|
||||
memmove((void *)(lVar3 + 4 + lVar8 * 4),(void *)(lVar4 + lVar8 * 4),(longlong)iVar7 << 2);
|
||||
}
|
||||
if (*(int *)(param_2 + 0x18) == 0) {
|
||||
lVar4 = 0;
|
||||
}
|
||||
else {
|
||||
lVar4 = *(longlong *)(param_2 + 0x10);
|
||||
}
|
||||
uVar5 = 0;
|
||||
do {
|
||||
*(undefined1 *)(uVar5 + lVar4 + lVar8 * 4) = *(undefined1 *)(uVar5 + lVar6);
|
||||
uVar5 = uVar5 + 1;
|
||||
} while (uVar5 < 4);
|
||||
lVar6 = *(longlong *)(lVar6 + 0x10);
|
||||
}
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14016d6b0();
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue