server-re/decomp/AgentManager_Release_x64/full/functions/0x1400cbab0.c
2026-10-15 09:58:24 -04:00

52 lines
1.5 KiB
C

/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
* Ghidra 12.1.2 decompiler output for 0x1400cbab0 FUN_1400cbab0
* Pseudocode, not original source. */
void FUN_1400cbab0(longlong param_1,longlong param_2,undefined8 param_3,undefined8 param_4)
{
undefined8 uVar1;
longlong lVar2;
uint *puVar3;
longlong local_res10;
uint local_40 [2];
undefined **local_38;
undefined4 local_30;
undefined2 local_2c;
int local_28;
while( true ) {
local_38 = Proud::AddrPort::vftable;
local_28 = 0;
local_40[0] = 0;
local_40[1] = 0;
local_30 = DAT_14016f3d0;
local_2c = DAT_14016f3d4;
lVar2 = 0;
if (*(longlong **)(param_2 + 0x10) != (longlong *)0x0) {
lVar2 = **(longlong **)(param_2 + 0x10);
}
puVar3 = local_40;
uVar1 = FUN_140043980(lVar2,0,puVar3);
if ((char)uVar1 == '\0') break;
*(undefined1 *)(param_2 + 0x80) = 0;
if ((local_40[1] != 0) || (local_28 == 0)) {
*(undefined4 *)(param_2 + 0x18) = 3;
local_res10 = 0;
FUN_140040510((longlong *)(param_2 + 0x10),&local_res10);
return;
}
*(int *)(param_2 + 0x1c) = *(int *)(param_2 + 0x1c) + 1;
if (2 < *(int *)(param_2 + 0x1c)) {
if (*(double *)(param_2 + 200) == 0.0) {
uVar1 = FUN_1400bf740(*(longlong *)(param_1 + 8));
*(undefined8 *)(param_2 + 200) = uVar1;
}
FUN_1400cb280(param_1,param_2,(SIZE_T)puVar3,param_4);
return;
}
FUN_1400cb1b0(param_1,param_2);
}
return;
}