40 lines
895 B
C
40 lines
895 B
C
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
|
* Ghidra 12.1.2 decompiler output for 0x1400b7550 FUN_1400b7550
|
|
* Pseudocode, not original source. */
|
|
|
|
int FUN_1400b7550(undefined8 *param_1)
|
|
|
|
{
|
|
undefined4 *puVar1;
|
|
undefined8 uVar2;
|
|
int *piVar3;
|
|
int iVar4;
|
|
int iVar5;
|
|
|
|
if (param_1 == (undefined8 *)0x0) {
|
|
return 0x10;
|
|
}
|
|
iVar5 = 1;
|
|
puVar1 = calloc(1,0x18);
|
|
*param_1 = puVar1;
|
|
if (puVar1 == (undefined4 *)0x0) {
|
|
return 0xd;
|
|
}
|
|
uVar2 = FUN_1400d5ba0(puVar1);
|
|
iVar4 = 0;
|
|
piVar3 = &DAT_140121b80;
|
|
do {
|
|
if ((int)uVar2 == *piVar3) {
|
|
iVar5 = *(int *)(&DAT_140121b84 + (longlong)iVar4 * 8);
|
|
if (iVar5 == 0) {
|
|
return 0;
|
|
}
|
|
break;
|
|
}
|
|
piVar3 = piVar3 + 2;
|
|
iVar4 = iVar4 + 1;
|
|
} while ((longlong)piVar3 < 0x140121b98);
|
|
free((void *)*param_1);
|
|
return iVar5;
|
|
}
|
|
|