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

34 lines
849 B
C

/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
* Ghidra 12.1.2 decompiler output for 0x1400bf8b0 FUN_1400bf8b0
* Pseudocode, not original source. */
undefined *
FUN_1400bf8b0(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)
{
bool bVar1;
bool bVar2;
bVar1 = false;
bVar2 = FUN_14003d0e0((int *)&DAT_14017c5d8);
if (bVar2) {
if (DAT_140170f00 == '\0') {
bVar1 = false;
}
else {
bVar1 = true;
FUN_14003d040((int *)&DAT_14017c5d8);
}
}
if ((DAT_14017c5d0 & 1) == 0) {
DAT_14017c5d0 = DAT_14017c5d0 | 1;
FUN_140083f30(&DAT_14017c540,param_2,param_3,param_4);
atexit((_func_5014 *)&LAB_140104890);
}
DAT_140170f00 = 0;
if (bVar1) {
FUN_14003d0d0(0x14017c5d8);
}
return &DAT_14017c540;
}