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
73
decomp/DBCServer_Release_x64/full/functions/0x1401d2b40.c
Normal file
73
decomp/DBCServer_Release_x64/full/functions/0x1401d2b40.c
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x1401d2b40 FUN_1401d2b40
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
undefined8 FUN_1401d2b40(longlong *param_1,int param_2,undefined2 *param_3,undefined8 param_4)
|
||||
|
||||
{
|
||||
undefined8 *puVar1;
|
||||
undefined8 uVar2;
|
||||
longlong *local_res8;
|
||||
undefined8 uVar3;
|
||||
|
||||
uVar3 = 0xfffffffffffffffe;
|
||||
uVar2 = (**(code **)(*param_1 + 0x58))();
|
||||
FUN_14016db50(uVar2);
|
||||
if ((((longlong *)param_1[699] != (longlong *)0x0) && (*(longlong *)param_1[699] != 0)) &&
|
||||
((int)param_1[0x2af] != 0)) {
|
||||
FUN_1401d2620(param_1,&local_res8,param_2,param_4,uVar3,uVar2,1);
|
||||
if ((local_res8 != (longlong *)0x0) && (*local_res8 != 0)) {
|
||||
*param_3 = *(undefined2 *)(*local_res8 + 0x568);
|
||||
*(short *)(*local_res8 + 0x568) = *(short *)(*local_res8 + 0x568) + 1;
|
||||
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(uVar2);
|
||||
return 1;
|
||||
}
|
||||
if ((int)param_1[0x2af] == param_2) {
|
||||
*param_3 = (short)param_1[0x9b];
|
||||
*(short *)(param_1 + 0x9b) = (short)param_1[0x9b] + 1;
|
||||
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(uVar2);
|
||||
return 1;
|
||||
}
|
||||
if (param_2 == 1) {
|
||||
*param_3 = (short)param_1[0xe0];
|
||||
*(short *)(param_1 + 0xe0) = (short)param_1[0xe0] + 1;
|
||||
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(uVar2);
|
||||
return 1;
|
||||
}
|
||||
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(uVar2);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue