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
85
decomp/DBCServer_Release_x64/full/functions/0x1401bd5b0.c
Normal file
85
decomp/DBCServer_Release_x64/full/functions/0x1401bd5b0.c
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x1401bd5b0 FUN_1401bd5b0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_1401bd5b0(undefined4 *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)
|
||||
|
||||
{
|
||||
longlong *plVar1;
|
||||
undefined *puVar2;
|
||||
longlong *plVar3;
|
||||
char cVar4;
|
||||
longlong lVar5;
|
||||
longlong *local_res8;
|
||||
undefined8 local_res10;
|
||||
undefined8 local_res18;
|
||||
undefined8 uVar6;
|
||||
|
||||
uVar6 = 0xfffffffffffffffe;
|
||||
puVar2 = *(undefined **)(param_1 + 2);
|
||||
if (((puVar2 != (undefined *)0x0) && (puVar2 != PTR_DAT_1403440a0)) &&
|
||||
(*(int *)(puVar2 + -8) != 0)) {
|
||||
local_res8 = (longlong *)FUN_14016d940(0x400);
|
||||
if (local_res8 == (longlong *)0x0) {
|
||||
lVar5 = 0;
|
||||
}
|
||||
else {
|
||||
lVar5 = FUN_14019cad0(local_res8,0,param_1 + 6,param_4,uVar6);
|
||||
}
|
||||
if (lVar5 == 0) {
|
||||
local_res8 = (longlong *)0x0;
|
||||
}
|
||||
else {
|
||||
local_res8 = (longlong *)FUN_14016d940(0x10);
|
||||
local_res8[1] = 1;
|
||||
*local_res8 = lVar5;
|
||||
}
|
||||
plVar1 = local_res8;
|
||||
FUN_1401786c0(param_1 + 4,&local_res8);
|
||||
plVar3 = local_res8;
|
||||
if (plVar1 != (longlong *)0x0) {
|
||||
plVar1 = plVar1 + 1;
|
||||
*plVar1 = *plVar1 + -1;
|
||||
if (*plVar1 == 0) {
|
||||
lVar5 = *local_res8;
|
||||
if (lVar5 != 0) {
|
||||
FUN_14019c9e0(lVar5);
|
||||
FUN_14016d970(lVar5);
|
||||
}
|
||||
FUN_14016d970(plVar3);
|
||||
}
|
||||
}
|
||||
if (*(undefined8 **)(param_1 + 4) == (undefined8 *)0x0) {
|
||||
uVar6 = 0;
|
||||
}
|
||||
else {
|
||||
uVar6 = **(undefined8 **)(param_1 + 4);
|
||||
}
|
||||
cVar4 = FUN_14019e650(uVar6);
|
||||
if (cVar4 == '\0') {
|
||||
local_res10 = 0;
|
||||
FUN_1401786c0(param_1 + 4,&local_res10);
|
||||
*param_1 = 3;
|
||||
}
|
||||
else {
|
||||
if (*(undefined8 **)(param_1 + 4) == (undefined8 *)0x0) {
|
||||
uVar6 = 0;
|
||||
}
|
||||
else {
|
||||
uVar6 = **(undefined8 **)(param_1 + 4);
|
||||
}
|
||||
FUN_14019be10(uVar6,0);
|
||||
cVar4 = FUN_1401bd0e0(param_1);
|
||||
if (cVar4 == '\0') {
|
||||
local_res18 = 0;
|
||||
FUN_1401786c0(param_1 + 4,&local_res18);
|
||||
*param_1 = 3;
|
||||
}
|
||||
else {
|
||||
*param_1 = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue