104 lines
3.5 KiB
C
104 lines
3.5 KiB
C
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
|
* Ghidra 12.1.2 decompiler output for 0x1400c9ac0 FUN_1400c9ac0
|
|
* Pseudocode, not original source. */
|
|
|
|
/* WARNING: Removing unreachable block (ram,0x0001400c9cbe) */
|
|
|
|
void FUN_1400c9ac0(longlong param_1,undefined8 param_2,uint *param_3,undefined8 param_4)
|
|
|
|
{
|
|
int *piVar1;
|
|
undefined8 *puVar2;
|
|
longlong lVar3;
|
|
char cVar4;
|
|
undefined8 uVar5;
|
|
int *piVar6;
|
|
int *piVar7;
|
|
int iVar8;
|
|
int *piVar9;
|
|
uint local_40 [2];
|
|
undefined **local_38;
|
|
undefined4 local_30;
|
|
undefined2 local_2c;
|
|
undefined4 local_28;
|
|
|
|
piVar1 = (int *)(param_1 + 0x10);
|
|
piVar9 = (int *)0x0;
|
|
while (piVar6 = piVar1, FUN_14003d040(piVar1), DAT_140176450 == '\0') {
|
|
local_38 = Proud::AddrPort::vftable;
|
|
local_28 = 0;
|
|
local_40[0] = 0;
|
|
local_40[1] = 0;
|
|
local_30 = DAT_14016f3d0;
|
|
local_2c = DAT_14016f3d4;
|
|
piVar7 = piVar9;
|
|
while (iVar8 = (int)piVar7, iVar8 != *(int *)(param_1 + 0x118)) {
|
|
if ((iVar8 < 0) || (*(int *)(param_1 + 0x118) <= iVar8)) {
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_14003def0(piVar6,param_2,param_3,param_4);
|
|
}
|
|
piVar6 = (int *)(longlong)iVar8;
|
|
puVar2 = *(undefined8 **)(*(longlong *)(param_1 + 0x110) + (longlong)piVar6 * 8);
|
|
piVar7 = piVar9;
|
|
if (puVar2 != (undefined8 *)0x0) {
|
|
piVar7 = (int *)*puVar2;
|
|
}
|
|
if (*(longlong **)(piVar7 + 4) != (longlong *)0x0) {
|
|
lVar3 = **(longlong **)(piVar7 + 4);
|
|
piVar6 = (int *)0x0;
|
|
if (lVar3 != 0) {
|
|
uVar5 = FUN_140043710(lVar3,0,local_40);
|
|
if ((char)uVar5 != '\0') {
|
|
*(undefined1 *)(piVar7 + 0x30) = 0;
|
|
}
|
|
piVar6 = piVar9;
|
|
if (*(undefined8 **)(piVar7 + 4) != (undefined8 *)0x0) {
|
|
piVar6 = (int *)**(undefined8 **)(piVar7 + 4);
|
|
}
|
|
param_3 = local_40;
|
|
param_2 = 0;
|
|
uVar5 = FUN_140043980((longlong)piVar6,0,param_3);
|
|
if ((char)uVar5 != '\0') {
|
|
*(undefined1 *)(piVar7 + 0x20) = 0;
|
|
}
|
|
}
|
|
}
|
|
if (((*(undefined8 **)(piVar7 + 4) != (undefined8 *)0x0) &&
|
|
(piVar6 = (int *)**(undefined8 **)(piVar7 + 4), piVar6 != (int *)0x0)) &&
|
|
((cVar4 = FUN_140043cf0((longlong)piVar6), cVar4 == '\0' ||
|
|
(((char)piVar7[0x30] != '\0' || ((char)piVar7[0x20] != '\0')))))) goto LAB_1400c9c97;
|
|
if (*(int *)(param_1 + 0x118) <= iVar8) {
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_14003def0(piVar6,param_2,param_3,param_4);
|
|
}
|
|
piVar7 = (int *)(ulonglong)(iVar8 + 1);
|
|
}
|
|
piVar6 = piVar9;
|
|
if (*(longlong *)(param_1 + 0x70) != 0) {
|
|
piVar6 = *(int **)(param_1 + 0x60);
|
|
}
|
|
while( true ) {
|
|
piVar7 = piVar6;
|
|
if (piVar7 == (int *)0x0) goto LAB_1400c9cd3;
|
|
piVar6 = piVar9;
|
|
if (*(undefined8 **)(piVar7 + 2) != (undefined8 *)0x0) {
|
|
piVar6 = (int *)**(undefined8 **)(piVar7 + 2);
|
|
}
|
|
if (((*(longlong **)(piVar6 + 0x920) != (longlong *)0x0) &&
|
|
(lVar3 = **(longlong **)(piVar6 + 0x920), lVar3 != 0)) &&
|
|
((cVar4 = FUN_140043cf0(lVar3), cVar4 == '\0' ||
|
|
(((char)piVar6[0x940] != '\0' || ((char)piVar6[0x930] != '\0')))))) break;
|
|
piVar6 = piVar9;
|
|
if (piVar7 != (int *)0x0) {
|
|
piVar6 = *(int **)(piVar7 + 4);
|
|
}
|
|
}
|
|
LAB_1400c9c97:
|
|
FUN_14003d0d0((longlong)piVar1);
|
|
Sleep(10);
|
|
}
|
|
LAB_1400c9cd3:
|
|
FUN_14003d0d0((longlong)piVar1);
|
|
return;
|
|
}
|
|
|