71 lines
1.9 KiB
C
71 lines
1.9 KiB
C
/* Agent_Release_x64.exe sha256 6f2be7b8eb799ba51b359d1958720aac5baee5b7ee0d1d36684d3cbd72d45469
|
|
* Ghidra 12.1.2 decompiler output for 0x14002eb30 FUN_14002eb30
|
|
* Pseudocode, not original source. */
|
|
|
|
void FUN_14002eb30(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_140155008;
|
|
}
|
|
else if ((puVar5 != PTR_DAT_140155008) && ((int *)(puVar5 + -8) != (int *)0x0)) {
|
|
if (*(int *)(puVar5 + -4) < 2) {
|
|
return;
|
|
}
|
|
iVar3 = *(int *)(puVar5 + -8);
|
|
if (iVar3 < 0) {
|
|
FUN_14002f1e0(local_58,L"An invalid argument is detected!",in_R8,in_R9);
|
|
/* WARNING: Subroutine does not return */
|
|
_CxxThrowException(local_58,(ThrowInfo *)&DAT_140151b88);
|
|
}
|
|
piVar2 = (int *)FUN_140030280((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_140155008) {
|
|
iVar4 = *(int *)(puVar5 + -8);
|
|
}
|
|
}
|
|
*piVar2 = iVar4;
|
|
puVar5 = (undefined *)*param_1;
|
|
if ((puVar5 != (undefined *)0x0) && (puVar5 != PTR_DAT_140155008)) {
|
|
iVar3 = *(int *)(puVar5 + -8);
|
|
}
|
|
if (puVar5 == (undefined *)0x0) {
|
|
puVar5 = PTR_DAT_140155008;
|
|
}
|
|
FUN_140030150(piVar2 + 2,puVar5,iVar3);
|
|
FUN_14001c020(param_1);
|
|
*param_1 = (longlong)(piVar2 + 2);
|
|
return;
|
|
}
|
|
puVar1 = (undefined8 *)FUN_140030280(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;
|
|
}
|
|
|