45 lines
1 KiB
C
45 lines
1 KiB
C
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
|
* Ghidra 12.1.2 decompiler output for 0x14013c770 FUN_14013c770
|
|
* Pseudocode, not original source. */
|
|
|
|
void FUN_14013c770(longlong *param_1,int param_2)
|
|
|
|
{
|
|
int *piVar1;
|
|
undefined *puVar2;
|
|
int iVar3;
|
|
int iVar4;
|
|
|
|
puVar2 = (undefined *)*param_1;
|
|
iVar4 = 0;
|
|
if (0 < param_2) {
|
|
iVar4 = param_2;
|
|
}
|
|
if (puVar2 == (undefined *)0x0) {
|
|
iVar3 = 0;
|
|
}
|
|
else if (puVar2 == PTR_DAT_140344098) {
|
|
iVar3 = 0;
|
|
}
|
|
else {
|
|
iVar3 = *(int *)(puVar2 + -8);
|
|
}
|
|
if (iVar3 <= iVar4) {
|
|
if (puVar2 == (undefined *)0x0) {
|
|
iVar4 = 0;
|
|
}
|
|
else if (puVar2 == PTR_DAT_140344098) {
|
|
iVar4 = 0;
|
|
}
|
|
else {
|
|
iVar4 = *(int *)(puVar2 + -8);
|
|
}
|
|
}
|
|
if (((puVar2 != PTR_DAT_140344098) && (puVar2 != (undefined *)0x0)) &&
|
|
(piVar1 = (int *)(puVar2 + -8), piVar1 != (int *)0x0)) {
|
|
*piVar1 = iVar4;
|
|
*(undefined1 *)((longlong)iVar4 + 8 + (longlong)piVar1) = 0;
|
|
}
|
|
return;
|
|
}
|
|
|