server-re/decomp/Agent_Release_x64/full/functions/0x1400cf190.c
2026-10-14 16:45:19 -04:00

34 lines
893 B
C

/* Agent_Release_x64.exe sha256 6f2be7b8eb799ba51b359d1958720aac5baee5b7ee0d1d36684d3cbd72d45469
* Ghidra 12.1.2 decompiler output for 0x1400cf190 FUN_1400cf190
* Pseudocode, not original source. */
undefined8 FUN_1400cf190(int *param_1)
{
int *piVar1;
undefined1 *puVar2;
undefined8 uVar3;
int iVar4;
undefined8 local_res10 [3];
iVar4 = 0;
piVar1 = param_1;
puVar2 = (undefined1 *)register0x00000020;
while( true ) {
if (piVar1 == (int *)0x0) {
return 0;
}
uVar3 = FUN_1400c6d70(piVar1);
if ((int)uVar3 != 0) break;
piVar1 = *(int **)(puVar2 + 0x10);
iVar4 = iVar4 + 1;
puVar2 = puVar2 + 8;
}
for (; iVar4 != 0; iVar4 = iVar4 + -1) {
FUN_1400c6dd0(param_1);
param_1 = *(int **)((longlong)register0x00000020 + 0x10);
register0x00000020 = (BADSPACEBASE *)((longlong)register0x00000020 + 8);
}
return 0xfffffffe;
}