57 lines
1.4 KiB
C
57 lines
1.4 KiB
C
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
|
* Ghidra 12.1.2 decompiler output for 0x1400d7610 FUN_1400d7610
|
|
* Pseudocode, not original source. */
|
|
|
|
ulonglong FUN_1400d7610(uint *param_1,int param_2,undefined4 *param_3)
|
|
|
|
{
|
|
int iVar1;
|
|
ulonglong uVar2;
|
|
ulonglong uVar3;
|
|
longlong lVar4;
|
|
uint *puVar5;
|
|
int local_res10 [2];
|
|
uint local_48 [8];
|
|
|
|
lVar4 = 0;
|
|
*param_3 = 0;
|
|
if (0xff < param_2 - 1U) {
|
|
return 0xfffffffd;
|
|
}
|
|
puVar5 = &DAT_14012a420;
|
|
do {
|
|
iVar1 = FUN_1400d5e20((int *)param_1,*puVar5);
|
|
if (iVar1 == 0) {
|
|
*param_3 = 1;
|
|
goto LAB_1400d771c;
|
|
}
|
|
puVar5 = puVar5 + 1;
|
|
} while ((longlong)puVar5 < 0x14012a820);
|
|
uVar2 = FUN_1400e1830(param_1,local_res10);
|
|
if ((int)uVar2 == 0) {
|
|
if (local_res10[0] == 1) {
|
|
LAB_1400d771c:
|
|
uVar2 = 0;
|
|
}
|
|
else {
|
|
uVar2 = FUN_1400d5ba0(local_48);
|
|
if ((int)uVar2 == 0) {
|
|
uVar2 = uVar2 & 0xffffffff;
|
|
if (0 < (longlong)param_2) {
|
|
do {
|
|
FUN_1400e07a0(local_48,(&DAT_14012a420)[lVar4]);
|
|
uVar3 = FUN_1400e1670(param_1,local_48,local_res10);
|
|
uVar2 = uVar3 & 0xffffffff;
|
|
if (((int)uVar3 != 0) || (local_res10[0] == 0)) goto LAB_1400d76ec;
|
|
lVar4 = lVar4 + 1;
|
|
} while (lVar4 < param_2);
|
|
}
|
|
*param_3 = 1;
|
|
LAB_1400d76ec:
|
|
FUN_1400d5c00((int *)local_48);
|
|
}
|
|
}
|
|
}
|
|
return uVar2;
|
|
}
|
|
|