decompiled agent_release
This commit is contained in:
parent
baac905ef2
commit
11a3488883
6439 changed files with 229565 additions and 1 deletions
76
decomp/Agent_Release_x64/full/functions/0x140002dc0.c
Normal file
76
decomp/Agent_Release_x64/full/functions/0x140002dc0.c
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
/* Agent_Release_x64.exe sha256 6f2be7b8eb799ba51b359d1958720aac5baee5b7ee0d1d36684d3cbd72d45469
|
||||
* Ghidra 12.1.2 decompiler output for 0x140002dc0 FUN_140002dc0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_140002dc0(longlong *param_1,int param_2)
|
||||
|
||||
{
|
||||
undefined *puVar1;
|
||||
int *piVar2;
|
||||
int iVar3;
|
||||
undefined4 in_register_00000014;
|
||||
undefined *puVar4;
|
||||
undefined8 in_R8;
|
||||
ulonglong uVar5;
|
||||
undefined8 in_R9;
|
||||
|
||||
puVar4 = PTR_DAT_140155010;
|
||||
puVar1 = (undefined *)*param_1;
|
||||
if ((undefined *)*param_1 == (undefined *)0x0) {
|
||||
puVar1 = PTR_DAT_140155010;
|
||||
}
|
||||
*param_1 = (longlong)puVar1;
|
||||
if (param_2 < 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14002f590();
|
||||
}
|
||||
if (param_2 == 0) {
|
||||
FUN_140003240(param_1,CONCAT44(in_register_00000014,param_2),in_R8,in_R9);
|
||||
return;
|
||||
}
|
||||
iVar3 = 0;
|
||||
if (puVar1 != (undefined *)0x0) {
|
||||
if (puVar1 == puVar4) {
|
||||
iVar3 = 0;
|
||||
}
|
||||
else {
|
||||
iVar3 = *(int *)(puVar1 + -8);
|
||||
}
|
||||
}
|
||||
if (param_2 != iVar3) {
|
||||
piVar2 = (int *)FUN_140030280((longlong)param_2 * 2 + 10);
|
||||
if (piVar2 != (int *)0x0) {
|
||||
*piVar2 = 0;
|
||||
piVar2[1] = 1;
|
||||
}
|
||||
puVar1 = PTR_DAT_140155010;
|
||||
*piVar2 = param_2;
|
||||
puVar4 = (undefined *)*param_1;
|
||||
if (puVar4 == (undefined *)0x0) {
|
||||
iVar3 = 0;
|
||||
}
|
||||
else if (puVar4 == puVar1) {
|
||||
iVar3 = 0;
|
||||
}
|
||||
else {
|
||||
iVar3 = *(int *)(puVar4 + -8);
|
||||
}
|
||||
if (iVar3 <= param_2) {
|
||||
if ((puVar4 == (undefined *)0x0) || (puVar4 == puVar1)) {
|
||||
param_2 = 0;
|
||||
}
|
||||
else {
|
||||
param_2 = *(int *)(puVar4 + -8);
|
||||
}
|
||||
}
|
||||
if (puVar4 == (undefined *)0x0) {
|
||||
puVar4 = puVar1;
|
||||
}
|
||||
uVar5 = (ulonglong)(uint)param_2;
|
||||
FUN_1400300b0(piVar2 + 2,puVar4,param_2);
|
||||
FUN_140003240(param_1,puVar4,uVar5,in_R9);
|
||||
*param_1 = (longlong)(piVar2 + 2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue