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
75
decomp/DBCServer_Release_x64/full/functions/0x1401d26f0.c
Normal file
75
decomp/DBCServer_Release_x64/full/functions/0x1401d26f0.c
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x1401d26f0 FUN_1401d26f0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
longlong * FUN_1401d26f0(longlong *param_1,int param_2,undefined8 param_3)
|
||||
|
||||
{
|
||||
undefined8 *puVar1;
|
||||
char cVar2;
|
||||
undefined8 uVar3;
|
||||
longlong *plVar4;
|
||||
longlong *plVar5;
|
||||
wchar_t *pwVar6;
|
||||
longlong *local_res8;
|
||||
undefined8 uVar7;
|
||||
undefined1 uVar8;
|
||||
|
||||
uVar7 = 0xfffffffffffffffe;
|
||||
uVar3 = (**(code **)(*param_1 + 0x58))();
|
||||
FUN_14016db50(uVar3);
|
||||
uVar8 = 1;
|
||||
FUN_1401d2620(param_1,&local_res8,param_2);
|
||||
plVar4 = (longlong *)0x0;
|
||||
if ((local_res8 == (longlong *)0x0) || (*local_res8 == 0)) {
|
||||
if ((int)param_1[0x2af] == param_2) {
|
||||
plVar5 = param_1 + 0x1b;
|
||||
goto LAB_1401d277f;
|
||||
}
|
||||
plVar5 = plVar4;
|
||||
if (param_2 == 1) {
|
||||
plVar5 = param_1 + 0xe1;
|
||||
goto LAB_1401d277f;
|
||||
}
|
||||
}
|
||||
else {
|
||||
plVar5 = (longlong *)(*local_res8 + 0x168);
|
||||
LAB_1401d277f:
|
||||
if (plVar5 != (longlong *)0x0) {
|
||||
cVar2 = FUN_1401af7e0(plVar5);
|
||||
if ((cVar2 == '\0') || (((char)plVar5[0x7f] == '\0' && ((int)plVar5[0x7d] == 0)))) {
|
||||
FUN_14004c020(param_3,L"key not exists!");
|
||||
if ((local_res8 != (longlong *)0x0) &&
|
||||
(local_res8[1] = local_res8[1] + -1, local_res8[1] == 0)) {
|
||||
puVar1 = (undefined8 *)*local_res8;
|
||||
if (puVar1 != (undefined8 *)0x0) {
|
||||
(**(code **)*puVar1)(puVar1,1);
|
||||
}
|
||||
FUN_14016d970(local_res8);
|
||||
}
|
||||
FUN_14016dbe0(uVar3);
|
||||
return (longlong *)0x0;
|
||||
}
|
||||
goto LAB_1401d2838;
|
||||
}
|
||||
}
|
||||
if (local_res8 != (longlong *)0x0) {
|
||||
plVar4 = (longlong *)*local_res8;
|
||||
}
|
||||
pwVar6 = L"not NULL";
|
||||
if (plVar4 == (longlong *)0x0) {
|
||||
pwVar6 = L"NULL";
|
||||
}
|
||||
FUN_14004c020(param_3,L"%d remote rp is %s in netclient!",param_2,pwVar6,uVar7,uVar3,uVar8);
|
||||
LAB_1401d2838:
|
||||
if ((local_res8 != (longlong *)0x0) && (local_res8[1] = local_res8[1] + -1, local_res8[1] == 0)) {
|
||||
puVar1 = (undefined8 *)*local_res8;
|
||||
if (puVar1 != (undefined8 *)0x0) {
|
||||
(**(code **)*puVar1)(puVar1,1);
|
||||
}
|
||||
FUN_14016d970(local_res8);
|
||||
}
|
||||
FUN_14016dbe0(uVar3);
|
||||
return plVar5;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue