35 lines
947 B
C
35 lines
947 B
C
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
|
* Ghidra 12.1.2 decompiler output for 0x1401c8690 FUN_1401c8690
|
|
* Pseudocode, not original source. */
|
|
|
|
void FUN_1401c8690(longlong *param_1,int param_2)
|
|
|
|
{
|
|
undefined *puVar1;
|
|
int iVar2;
|
|
int iVar3;
|
|
|
|
FUN_14004e940();
|
|
puVar1 = (undefined *)*param_1;
|
|
iVar2 = 0;
|
|
if (0 < param_2) {
|
|
iVar2 = param_2;
|
|
}
|
|
iVar3 = 0;
|
|
if ((puVar1 != (undefined *)0x0) && (iVar3 = 0, puVar1 != PTR_DAT_1403440a0)) {
|
|
iVar3 = *(int *)(puVar1 + -8);
|
|
}
|
|
if ((iVar3 <= iVar2) && (iVar2 = 0, puVar1 != (undefined *)0x0)) {
|
|
if (puVar1 == PTR_DAT_1403440a0) {
|
|
return;
|
|
}
|
|
iVar2 = *(int *)(puVar1 + -8);
|
|
}
|
|
if (((puVar1 != PTR_DAT_1403440a0) && (puVar1 != (undefined *)0x0)) &&
|
|
((int *)(puVar1 + -8) != (int *)0x0)) {
|
|
*(int *)(puVar1 + -8) = iVar2;
|
|
*(undefined2 *)(puVar1 + (longlong)iVar2 * 2) = 0;
|
|
}
|
|
return;
|
|
}
|
|
|