52 lines
1.3 KiB
C
52 lines
1.3 KiB
C
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
|
* Ghidra 12.1.2 decompiler output for 0x1400cb1b0 FUN_1400cb1b0
|
|
* Pseudocode, not original source. */
|
|
|
|
void FUN_1400cb1b0(undefined8 param_1,longlong param_2)
|
|
|
|
{
|
|
uint uVar1;
|
|
longlong lVar2;
|
|
undefined8 *puVar3;
|
|
int iVar4;
|
|
longlong local_res10 [3];
|
|
undefined **local_20;
|
|
undefined4 local_18;
|
|
undefined2 local_14;
|
|
|
|
*(undefined1 *)(param_2 + 0x80) = 1;
|
|
local_20 = Proud::AddrPort::vftable;
|
|
local_18 = DAT_14017c620;
|
|
local_14 = DAT_14017c624;
|
|
if (DAT_14017c610 == (undefined8 *)0x0) {
|
|
iVar4 = 0;
|
|
puVar3 = (undefined8 *)PTR_DAT_14016f008;
|
|
}
|
|
else {
|
|
puVar3 = DAT_14017c610;
|
|
if (DAT_14017c610 == (undefined8 *)PTR_DAT_14016f008) {
|
|
iVar4 = 0;
|
|
}
|
|
else {
|
|
iVar4 = *(int *)(DAT_14017c610 + -1);
|
|
}
|
|
}
|
|
if (*(longlong **)(param_2 + 0x10) == (longlong *)0x0) {
|
|
lVar2 = 0;
|
|
}
|
|
else {
|
|
lVar2 = **(longlong **)(param_2 + 0x10);
|
|
}
|
|
uVar1 = FUN_140045890(lVar2,puVar3,(undefined **)(ulonglong)(iVar4 + 1),(longlong)&local_20);
|
|
if ((uVar1 == 0) || (uVar1 == 0x3e5)) {
|
|
*(undefined4 *)(param_2 + 0x18) = 1;
|
|
}
|
|
else {
|
|
*(undefined1 *)(param_2 + 0x80) = 0;
|
|
local_res10[0] = 0;
|
|
FUN_140040510((longlong *)(param_2 + 0x10),local_res10);
|
|
*(undefined4 *)(param_2 + 0x18) = 3;
|
|
}
|
|
return;
|
|
}
|
|
|