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
69
decomp/DBCServer_Release_x64/full/functions/0x1400a4fb0.c
Normal file
69
decomp/DBCServer_Release_x64/full/functions/0x1400a4fb0.c
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x1400a4fb0 FUN_1400a4fb0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
undefined8 * FUN_1400a4fb0(longlong *param_1,undefined8 *param_2,int *param_3,undefined4 *param_4)
|
||||
|
||||
{
|
||||
int iVar1;
|
||||
char cVar2;
|
||||
undefined8 *puVar3;
|
||||
undefined8 *puVar4;
|
||||
undefined8 *puVar5;
|
||||
char *local_res8;
|
||||
undefined **local_38;
|
||||
undefined8 local_30;
|
||||
undefined8 local_28;
|
||||
|
||||
iVar1 = *param_3;
|
||||
puVar5 = (undefined8 *)(*param_1 + ((ulonglong)(longlong)iVar1 % (ulonglong)param_1[1]) * 8);
|
||||
puVar3 = (undefined8 *)*puVar5;
|
||||
do {
|
||||
if (puVar3 == (undefined8 *)0x0) {
|
||||
LAB_1400a5024:
|
||||
puVar3 = operator_new(0x18);
|
||||
if (puVar3 != (undefined8 *)0x0) {
|
||||
*puVar3 = 0;
|
||||
puVar3[1] = local_30;
|
||||
puVar3[2] = local_28;
|
||||
if (puVar3 + 1 != (undefined8 *)0x0) {
|
||||
*(undefined4 *)(puVar3 + 1) = *param_4;
|
||||
*(undefined8 *)((longlong)puVar3 + 0xc) = *(undefined8 *)(param_4 + 1);
|
||||
}
|
||||
cVar2 = FUN_1400a5570(param_1);
|
||||
if (cVar2 != '\0') {
|
||||
puVar5 = (undefined8 *)
|
||||
(*param_1 + ((ulonglong)(longlong)iVar1 % (ulonglong)param_1[1]) * 8);
|
||||
}
|
||||
*puVar3 = *puVar5;
|
||||
*puVar5 = puVar3;
|
||||
param_1[4] = param_1[4] + 1;
|
||||
puVar4 = (undefined8 *)param_1[6];
|
||||
if (puVar5 < (undefined8 *)param_1[6]) {
|
||||
puVar4 = puVar5;
|
||||
}
|
||||
param_1[6] = (longlong)puVar4;
|
||||
*param_2 = puVar5;
|
||||
param_2[1] = puVar3;
|
||||
*(undefined1 *)(param_2 + 2) = 1;
|
||||
return param_2;
|
||||
}
|
||||
local_res8 = (char *)0x0;
|
||||
std::exception::exception((exception *)&local_38,&local_res8);
|
||||
local_38 = std::bad_alloc::vftable;
|
||||
/* WARNING: Subroutine does not return */
|
||||
_CxxThrowException(&local_38,(ThrowInfo *)&DAT_140341858);
|
||||
}
|
||||
if (iVar1 == *(int *)(puVar3 + 1)) {
|
||||
if (puVar3 != (undefined8 *)0x0) {
|
||||
*param_2 = puVar5;
|
||||
param_2[1] = puVar3;
|
||||
*(undefined1 *)(param_2 + 2) = 0;
|
||||
return param_2;
|
||||
}
|
||||
goto LAB_1400a5024;
|
||||
}
|
||||
puVar3 = (undefined8 *)*puVar3;
|
||||
} while( true );
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue