71 lines
1.9 KiB
C
71 lines
1.9 KiB
C
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
|
* Ghidra 12.1.2 decompiler output for 0x14003d4c0 FUN_14003d4c0
|
|
* Pseudocode, not original source. */
|
|
|
|
void FUN_14003d4c0(longlong *param_1)
|
|
|
|
{
|
|
undefined8 *puVar1;
|
|
int *piVar2;
|
|
int iVar3;
|
|
int iVar4;
|
|
undefined *puVar5;
|
|
undefined8 in_R8;
|
|
undefined8 in_R9;
|
|
exception local_58 [80];
|
|
|
|
puVar5 = (undefined *)*param_1;
|
|
if (puVar5 == (undefined *)0x0) {
|
|
*param_1 = (longlong)PTR_DAT_14016f008;
|
|
}
|
|
else if ((puVar5 != PTR_DAT_14016f008) && ((int *)(puVar5 + -8) != (int *)0x0)) {
|
|
if (*(int *)(puVar5 + -4) < 2) {
|
|
return;
|
|
}
|
|
iVar3 = *(int *)(puVar5 + -8);
|
|
if (iVar3 < 0) {
|
|
FUN_14003db10(local_58,L"An invalid argument is detected!",in_R8,in_R9);
|
|
/* WARNING: Subroutine does not return */
|
|
_CxxThrowException(local_58,(ThrowInfo *)&DAT_14016c210);
|
|
}
|
|
piVar2 = (int *)FUN_14003e840((longlong)iVar3 + 9);
|
|
iVar3 = 0;
|
|
if (piVar2 != (int *)0x0) {
|
|
*piVar2 = 0;
|
|
piVar2[1] = 1;
|
|
}
|
|
puVar5 = (undefined *)*param_1;
|
|
if (puVar5 == (undefined *)0x0) {
|
|
iVar4 = 0;
|
|
}
|
|
else {
|
|
iVar4 = iVar3;
|
|
if (puVar5 != PTR_DAT_14016f008) {
|
|
iVar4 = *(int *)(puVar5 + -8);
|
|
}
|
|
}
|
|
*piVar2 = iVar4;
|
|
puVar5 = (undefined *)*param_1;
|
|
if ((puVar5 != (undefined *)0x0) && (puVar5 != PTR_DAT_14016f008)) {
|
|
iVar3 = *(int *)(puVar5 + -8);
|
|
}
|
|
if (puVar5 == (undefined *)0x0) {
|
|
puVar5 = PTR_DAT_14016f008;
|
|
}
|
|
FUN_14003e710(piVar2 + 2,puVar5,iVar3);
|
|
FUN_140006e80(param_1);
|
|
*param_1 = (longlong)(piVar2 + 2);
|
|
return;
|
|
}
|
|
puVar1 = (undefined8 *)FUN_14003e840(9);
|
|
*puVar1 = 0;
|
|
*(undefined1 *)(puVar1 + 1) = 0;
|
|
if (puVar1 != (undefined8 *)0x0) {
|
|
*(undefined4 *)puVar1 = 0;
|
|
*(undefined4 *)((longlong)puVar1 + 4) = 1;
|
|
}
|
|
*(undefined1 *)(puVar1 + 1) = 0;
|
|
*param_1 = (longlong)(puVar1 + 1);
|
|
return;
|
|
}
|
|
|