decompiled agent_release
This commit is contained in:
parent
baac905ef2
commit
11a3488883
6439 changed files with 229565 additions and 1 deletions
72
decomp/Agent_Release_x64/full/functions/0x14002ec40.c
Normal file
72
decomp/Agent_Release_x64/full/functions/0x14002ec40.c
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
/* Agent_Release_x64.exe sha256 6f2be7b8eb799ba51b359d1958720aac5baee5b7ee0d1d36684d3cbd72d45469
|
||||
* Ghidra 12.1.2 decompiler output for 0x14002ec40 FUN_14002ec40
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_14002ec40(longlong *param_1,int param_2)
|
||||
|
||||
{
|
||||
undefined *puVar1;
|
||||
int *piVar2;
|
||||
int iVar3;
|
||||
undefined8 in_R8;
|
||||
undefined8 in_R9;
|
||||
exception local_58 [80];
|
||||
|
||||
puVar1 = (undefined *)*param_1;
|
||||
if ((undefined *)*param_1 == (undefined *)0x0) {
|
||||
puVar1 = PTR_DAT_140155008;
|
||||
}
|
||||
*param_1 = (longlong)puVar1;
|
||||
if (param_2 < 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);
|
||||
}
|
||||
if (param_2 == 0) {
|
||||
FUN_14001c020(param_1);
|
||||
return;
|
||||
}
|
||||
iVar3 = 0;
|
||||
if (puVar1 != (undefined *)0x0) {
|
||||
if (puVar1 == PTR_DAT_140155008) {
|
||||
iVar3 = 0;
|
||||
}
|
||||
else {
|
||||
iVar3 = *(int *)(puVar1 + -8);
|
||||
}
|
||||
}
|
||||
if (param_2 != iVar3) {
|
||||
piVar2 = (int *)FUN_140030280((longlong)param_2 + 9);
|
||||
if (piVar2 != (int *)0x0) {
|
||||
*piVar2 = 0;
|
||||
piVar2[1] = 1;
|
||||
}
|
||||
*piVar2 = param_2;
|
||||
puVar1 = (undefined *)*param_1;
|
||||
if (puVar1 == (undefined *)0x0) {
|
||||
iVar3 = 0;
|
||||
}
|
||||
else if (puVar1 == PTR_DAT_140155008) {
|
||||
iVar3 = 0;
|
||||
}
|
||||
else {
|
||||
iVar3 = *(int *)(puVar1 + -8);
|
||||
}
|
||||
if (iVar3 <= param_2) {
|
||||
if ((puVar1 == (undefined *)0x0) || (puVar1 == PTR_DAT_140155008)) {
|
||||
param_2 = 0;
|
||||
}
|
||||
else {
|
||||
param_2 = *(int *)(puVar1 + -8);
|
||||
}
|
||||
}
|
||||
if (puVar1 == (undefined *)0x0) {
|
||||
puVar1 = PTR_DAT_140155008;
|
||||
}
|
||||
FUN_140030150(piVar2 + 2,puVar1,param_2);
|
||||
FUN_14001c020(param_1);
|
||||
*param_1 = (longlong)(piVar2 + 2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue