add agent manager release decomp
This commit is contained in:
parent
31ff800b2a
commit
fac6117145
7019 changed files with 254032 additions and 5 deletions
206
decomp/AgentManager_Release_x64/full/functions/0x140012a30.c
Normal file
206
decomp/AgentManager_Release_x64/full/functions/0x140012a30.c
Normal file
|
|
@ -0,0 +1,206 @@
|
|||
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
||||
* Ghidra 12.1.2 decompiler output for 0x140012a30 FUN_140012a30
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_140012a30(longlong param_1,undefined4 param_2,short *param_3,undefined8 param_4)
|
||||
|
||||
{
|
||||
LPVOID pvVar1;
|
||||
uint uVar2;
|
||||
uint uVar3;
|
||||
int *piVar4;
|
||||
uint *puVar5;
|
||||
longlong lVar6;
|
||||
longlong *plVar7;
|
||||
undefined ***pppuVar8;
|
||||
uint *puVar9;
|
||||
LPVOID pvVar10;
|
||||
uint uVar11;
|
||||
short *psVar12;
|
||||
ulonglong uVar13;
|
||||
uint uVar14;
|
||||
undefined *puVar15;
|
||||
uint *local_res8;
|
||||
undefined4 local_res10;
|
||||
undefined8 local_res20;
|
||||
undefined **local_60;
|
||||
longlong *local_58;
|
||||
LPVOID local_50;
|
||||
ulonglong local_48;
|
||||
undefined8 local_40;
|
||||
|
||||
psVar12 = param_3;
|
||||
local_res10 = param_2;
|
||||
local_res20 = param_4;
|
||||
FUN_14003d040((int *)(param_1 + 0xe0));
|
||||
local_60 = Proud::CFastArray<Proud::HostID,0>::vftable;
|
||||
local_58 = (longlong *)0x0;
|
||||
local_50 = (LPVOID)0x0;
|
||||
local_48 = 0;
|
||||
local_40 = 0;
|
||||
pppuVar8 = &local_60;
|
||||
lVar6 = DAT_14017cf38;
|
||||
FUN_14000ded0(DAT_14017cf38,(longlong)pppuVar8);
|
||||
if ((int)local_48 < 1) {
|
||||
if (local_50 != (LPVOID)0x0) {
|
||||
if (local_58 == (longlong *)0x0) {
|
||||
FUN_14003e8b0(local_50);
|
||||
}
|
||||
else {
|
||||
(**(code **)(*local_58 + 0x18))(local_58,local_50);
|
||||
}
|
||||
}
|
||||
goto LAB_140012d71;
|
||||
}
|
||||
FUN_14003e7c0(lVar6,pppuVar8,psVar12,param_4);
|
||||
local_res8 = (uint *)PTR_DAT_14016f010;
|
||||
uVar2 = FUN_14003e620(param_3);
|
||||
uVar3 = 0;
|
||||
uVar13 = 0;
|
||||
if ((local_res8 != (uint *)0x0) && (uVar13 = 0, local_res8 != (uint *)PTR_DAT_14016f010)) {
|
||||
uVar13 = (ulonglong)local_res8[-2];
|
||||
}
|
||||
uVar14 = uVar2;
|
||||
if ((((int)uVar2 <= (int)uVar13) && (uVar14 = uVar3, local_res8 != (uint *)0x0)) &&
|
||||
(local_res8 != (uint *)PTR_DAT_14016f010)) {
|
||||
uVar14 = local_res8[-2];
|
||||
}
|
||||
uVar11 = 1;
|
||||
if (1 < (int)uVar14) {
|
||||
uVar11 = uVar14;
|
||||
}
|
||||
uVar14 = uVar3;
|
||||
if ((local_res8 != (uint *)0x0) && (local_res8 != (uint *)PTR_DAT_14016f010)) {
|
||||
uVar14 = local_res8[-2];
|
||||
}
|
||||
if ((int)uVar14 < (int)uVar11) {
|
||||
puVar5 = local_res8;
|
||||
if (local_res8 == (uint *)0x0) {
|
||||
puVar5 = (uint *)PTR_DAT_14016f010;
|
||||
}
|
||||
local_res8 = puVar5;
|
||||
if ((int)uVar11 < 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14003dec0();
|
||||
}
|
||||
if (uVar11 == 0) {
|
||||
local_res8 = (uint *)PTR_DAT_14016f010;
|
||||
if (((puVar5 != (uint *)0x0) && (puVar5 != (uint *)PTR_DAT_14016f010)) &&
|
||||
(puVar5 + -2 != (uint *)0x0)) {
|
||||
local_res8 = puVar5;
|
||||
piVar4 = (int *)FUN_14003e7c0(puVar5,PTR_DAT_14016f010,uVar13,param_4);
|
||||
FUN_14003d040(piVar4);
|
||||
puVar9 = puVar5 + -1;
|
||||
*puVar9 = *puVar9 - 1;
|
||||
if (*puVar9 == 0) {
|
||||
FUN_14003e8b0(puVar5 + -2);
|
||||
}
|
||||
FUN_14003d0d0((longlong)piVar4);
|
||||
local_res8 = (uint *)PTR_DAT_14016f010;
|
||||
}
|
||||
}
|
||||
else {
|
||||
uVar14 = uVar3;
|
||||
if ((puVar5 != (uint *)0x0) && (puVar5 != (uint *)PTR_DAT_14016f010)) {
|
||||
uVar14 = puVar5[-2];
|
||||
}
|
||||
if (uVar11 != uVar14) {
|
||||
puVar5 = (uint *)FUN_14003e840((longlong)(int)uVar11 * 2 + 10);
|
||||
if (puVar5 != (uint *)0x0) {
|
||||
*puVar5 = 0;
|
||||
puVar5[1] = 1;
|
||||
}
|
||||
*puVar5 = uVar11;
|
||||
uVar14 = 0;
|
||||
if ((local_res8 != (uint *)0x0) && (local_res8 != (uint *)PTR_DAT_14016f010)) {
|
||||
uVar14 = local_res8[-2];
|
||||
}
|
||||
puVar9 = (uint *)PTR_DAT_14016f010;
|
||||
if ((int)uVar11 < (int)uVar14) {
|
||||
LAB_140012c05:
|
||||
if (local_res8 != (uint *)0x0) {
|
||||
puVar9 = local_res8;
|
||||
}
|
||||
}
|
||||
else {
|
||||
uVar11 = uVar3;
|
||||
if (local_res8 != (uint *)0x0) {
|
||||
if (local_res8 != (uint *)PTR_DAT_14016f010) {
|
||||
uVar11 = local_res8[-2];
|
||||
}
|
||||
goto LAB_140012c05;
|
||||
}
|
||||
}
|
||||
uVar13 = (ulonglong)uVar11;
|
||||
FUN_14003e650(puVar5 + 2,puVar9,uVar11);
|
||||
FUN_140002190((longlong *)&local_res8,puVar9,uVar13,param_4);
|
||||
local_res8 = puVar5 + 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
FUN_140001df0((longlong *)&local_res8);
|
||||
puVar5 = local_res8;
|
||||
if (local_res8 == (uint *)0x0) {
|
||||
puVar5 = (uint *)PTR_DAT_14016f010;
|
||||
}
|
||||
FUN_14003e650(puVar5,param_3,uVar2);
|
||||
puVar5 = local_res8;
|
||||
if (local_res8 == (uint *)0x0) {
|
||||
puVar5 = (uint *)PTR_DAT_14016f010;
|
||||
}
|
||||
uVar3 = FUN_14003e620((short *)puVar5);
|
||||
pvVar1 = local_50;
|
||||
uVar14 = 0;
|
||||
uVar2 = 0;
|
||||
if (0 < (int)uVar3) {
|
||||
uVar2 = uVar3;
|
||||
}
|
||||
uVar3 = uVar14;
|
||||
if ((local_res8 != (uint *)0x0) && (local_res8 != (uint *)PTR_DAT_14016f010)) {
|
||||
uVar3 = local_res8[-2];
|
||||
}
|
||||
if (((int)uVar2 < (int)uVar3) || (uVar2 = uVar14, local_res8 == (uint *)0x0)) {
|
||||
LAB_140012c9a:
|
||||
if (((local_res8 != (uint *)PTR_DAT_14016f010) && (local_res8 != (uint *)0x0)) &&
|
||||
(local_res8 + -2 != (uint *)0x0)) {
|
||||
local_res8[-2] = uVar2;
|
||||
*(undefined2 *)((longlong)local_res8 + (longlong)(int)uVar2 * 2) = 0;
|
||||
}
|
||||
}
|
||||
else if (local_res8 != (uint *)PTR_DAT_14016f010) {
|
||||
uVar2 = local_res8[-2];
|
||||
goto LAB_140012c9a;
|
||||
}
|
||||
pvVar10 = local_50;
|
||||
if ((int)local_48 == 0) {
|
||||
pvVar10 = (LPVOID)0x0;
|
||||
}
|
||||
plVar7 = (longlong *)(param_1 + 0x48);
|
||||
puVar15 = &DAT_14016f5d0;
|
||||
uVar13 = local_48 & 0xffffffff;
|
||||
(**(code **)(*plVar7 + 0xa8))();
|
||||
puVar5 = local_res8;
|
||||
if (((local_res8 != (uint *)0x0) && (local_res8 != (uint *)PTR_DAT_14016f010)) &&
|
||||
(puVar9 = local_res8 + -2, puVar9 != (uint *)0x0)) {
|
||||
piVar4 = (int *)FUN_14003e7c0(plVar7,pvVar10,uVar13,puVar15);
|
||||
FUN_14003d040(piVar4);
|
||||
puVar5 = puVar5 + -1;
|
||||
*puVar5 = *puVar5 - 1;
|
||||
if (*puVar5 == 0) {
|
||||
FUN_14003e8b0(puVar9);
|
||||
}
|
||||
FUN_14003d0d0((longlong)piVar4);
|
||||
}
|
||||
if (pvVar1 != (LPVOID)0x0) {
|
||||
if (local_58 == (longlong *)0x0) {
|
||||
FUN_14003e8b0(pvVar1);
|
||||
}
|
||||
else {
|
||||
(**(code **)(*local_58 + 0x18))(local_58,pvVar1);
|
||||
}
|
||||
}
|
||||
LAB_140012d71:
|
||||
FUN_14003d0d0(param_1 + 0xe0);
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue