74 lines
2.3 KiB
C
74 lines
2.3 KiB
C
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
|
* Ghidra 12.1.2 decompiler output for 0x1401d3010 FUN_1401d3010
|
|
* Pseudocode, not original source. */
|
|
|
|
undefined8 FUN_1401d3010(longlong *param_1,int param_2,undefined8 param_3,undefined8 param_4)
|
|
|
|
{
|
|
short *psVar1;
|
|
undefined8 *puVar2;
|
|
undefined8 uVar3;
|
|
longlong *local_res8;
|
|
undefined8 uVar4;
|
|
|
|
uVar4 = 0xfffffffffffffffe;
|
|
uVar3 = (**(code **)(*param_1 + 0x58))();
|
|
FUN_14016db50(uVar3);
|
|
FUN_1401d2620(param_1,&local_res8,param_2,param_4,uVar4,uVar3,1);
|
|
if ((local_res8 == (longlong *)0x0) || (*local_res8 == 0)) {
|
|
if ((int)param_1[0x2af] == param_2) {
|
|
*(short *)((longlong)param_1 + 0x4da) = *(short *)((longlong)param_1 + 0x4da) + 1;
|
|
if ((local_res8 != (longlong *)0x0) &&
|
|
(local_res8[1] = local_res8[1] + -1, local_res8[1] == 0)) {
|
|
puVar2 = (undefined8 *)*local_res8;
|
|
if (puVar2 != (undefined8 *)0x0) {
|
|
(**(code **)*puVar2)(puVar2,1);
|
|
}
|
|
FUN_14016d970(local_res8);
|
|
}
|
|
FUN_14016dbe0(uVar3);
|
|
uVar3 = 1;
|
|
}
|
|
else if (param_2 == 1) {
|
|
*(short *)((longlong)param_1 + 0x702) = *(short *)((longlong)param_1 + 0x702) + 1;
|
|
if ((local_res8 != (longlong *)0x0) &&
|
|
(local_res8[1] = local_res8[1] + -1, local_res8[1] == 0)) {
|
|
puVar2 = (undefined8 *)*local_res8;
|
|
if (puVar2 != (undefined8 *)0x0) {
|
|
(**(code **)*puVar2)(puVar2,1);
|
|
}
|
|
FUN_14016d970(local_res8);
|
|
}
|
|
FUN_14016dbe0(uVar3);
|
|
uVar3 = 1;
|
|
}
|
|
else {
|
|
if ((local_res8 != (longlong *)0x0) &&
|
|
(local_res8[1] = local_res8[1] + -1, local_res8[1] == 0)) {
|
|
puVar2 = (undefined8 *)*local_res8;
|
|
if (puVar2 != (undefined8 *)0x0) {
|
|
(**(code **)*puVar2)(puVar2,1);
|
|
}
|
|
FUN_14016d970(local_res8);
|
|
}
|
|
FUN_14016dbe0(uVar3);
|
|
uVar3 = 0;
|
|
}
|
|
}
|
|
else {
|
|
psVar1 = (short *)(*local_res8 + 0x56a);
|
|
*psVar1 = *psVar1 + 1;
|
|
if ((local_res8 != (longlong *)0x0) && (local_res8[1] = local_res8[1] + -1, local_res8[1] == 0))
|
|
{
|
|
puVar2 = (undefined8 *)*local_res8;
|
|
if (puVar2 != (undefined8 *)0x0) {
|
|
(**(code **)*puVar2)(puVar2,1);
|
|
}
|
|
FUN_14016d970(local_res8);
|
|
}
|
|
FUN_14016dbe0(uVar3);
|
|
uVar3 = 1;
|
|
}
|
|
return uVar3;
|
|
}
|
|
|