39 lines
1 KiB
C
39 lines
1 KiB
C
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
|
* Ghidra 12.1.2 decompiler output for 0x14004e560 FUN_14004e560
|
|
* Pseudocode, not original source. */
|
|
|
|
void FUN_14004e560(longlong *param_1)
|
|
|
|
{
|
|
int iVar1;
|
|
int iVar2;
|
|
undefined *puVar3;
|
|
|
|
puVar3 = (undefined *)*param_1;
|
|
if ((undefined *)*param_1 == (undefined *)0x0) {
|
|
puVar3 = PTR_DAT_1403440a0;
|
|
}
|
|
iVar1 = FUN_14016d740(puVar3);
|
|
iVar2 = 0;
|
|
if (0 < iVar1) {
|
|
iVar2 = iVar1;
|
|
}
|
|
puVar3 = (undefined *)*param_1;
|
|
iVar1 = 0;
|
|
if ((puVar3 != (undefined *)0x0) && (iVar1 = 0, puVar3 != PTR_DAT_1403440a0)) {
|
|
iVar1 = *(int *)(puVar3 + -8);
|
|
}
|
|
if ((iVar1 <= iVar2) && (iVar2 = 0, puVar3 != (undefined *)0x0)) {
|
|
if (puVar3 == PTR_DAT_1403440a0) {
|
|
return;
|
|
}
|
|
iVar2 = *(int *)(puVar3 + -8);
|
|
}
|
|
if (((puVar3 != PTR_DAT_1403440a0) && (puVar3 != (undefined *)0x0)) &&
|
|
((int *)(puVar3 + -8) != (int *)0x0)) {
|
|
*(int *)(puVar3 + -8) = iVar2;
|
|
*(undefined2 *)(puVar3 + (longlong)iVar2 * 2) = 0;
|
|
}
|
|
return;
|
|
}
|
|
|