add agent manager release decomp
This commit is contained in:
parent
31ff800b2a
commit
fac6117145
7019 changed files with 254032 additions and 5 deletions
163
decomp/AgentManager_Release_x64/full/functions/0x1400c1230.c
Normal file
163
decomp/AgentManager_Release_x64/full/functions/0x1400c1230.c
Normal file
|
|
@ -0,0 +1,163 @@
|
|||
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
||||
* Ghidra 12.1.2 decompiler output for 0x1400c1230 FUN_1400c1230
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_1400c1230(longlong param_1,ulonglong param_2,undefined8 param_3,undefined8 param_4)
|
||||
|
||||
{
|
||||
uint uVar1;
|
||||
uint uVar2;
|
||||
uint uVar3;
|
||||
longlong lVar4;
|
||||
uint *puVar5;
|
||||
int *piVar6;
|
||||
longlong lVar7;
|
||||
longlong *plVar8;
|
||||
uint *puVar9;
|
||||
undefined8 uVar10;
|
||||
ulonglong uVar11;
|
||||
uint uVar12;
|
||||
undefined8 uVar13;
|
||||
uint **ppuVar14;
|
||||
uint uVar15;
|
||||
uint *local_res8;
|
||||
|
||||
uVar11 = param_2;
|
||||
(**(code **)(*(longlong *)(*(longlong *)(param_1 + 0x108) + 0x78) + 0x10))();
|
||||
lVar7 = *(longlong *)(param_1 + 0x108);
|
||||
lVar4 = FUN_14009c0f0(lVar7);
|
||||
*(undefined1 *)(lVar4 + 0x80) = 0;
|
||||
uVar1 = *(uint *)(param_2 + 8);
|
||||
if (-1 < (int)uVar1) {
|
||||
if (0 < (int)uVar1) {
|
||||
lVar7 = FUN_14009c0f0(*(longlong *)(param_1 + 0x108));
|
||||
uVar11 = (ulonglong)uVar1;
|
||||
FUN_140093c10((longlong *)(lVar7 + 0x170),uVar1);
|
||||
plVar8 = (longlong *)(*(longlong *)(param_1 + 0x108) + 0x660);
|
||||
*plVar8 = *plVar8 + (longlong)*(int *)(param_2 + 8);
|
||||
}
|
||||
lVar7 = FUN_14009c0f0(*(longlong *)(param_1 + 0x108));
|
||||
FUN_1400ce9a0(lVar7,uVar11,param_3,param_4);
|
||||
return;
|
||||
}
|
||||
FUN_14003e7c0(lVar7,uVar11,param_3,param_4);
|
||||
local_res8 = (uint *)PTR_DAT_14016f010;
|
||||
uVar1 = FUN_14003e620(L"compdatalength < 0 sendcomplete");
|
||||
uVar15 = 0;
|
||||
uVar3 = 0;
|
||||
uVar11 = 0;
|
||||
if ((local_res8 != (uint *)0x0) && (uVar11 = 0, local_res8 != (uint *)PTR_DAT_14016f010)) {
|
||||
uVar11 = (ulonglong)local_res8[-2];
|
||||
}
|
||||
uVar2 = uVar1;
|
||||
if ((((int)uVar1 <= (int)uVar11) && (uVar2 = uVar3, local_res8 != (uint *)0x0)) &&
|
||||
(local_res8 != (uint *)PTR_DAT_14016f010)) {
|
||||
uVar2 = local_res8[-2];
|
||||
}
|
||||
uVar12 = 1;
|
||||
if (1 < (int)uVar2) {
|
||||
uVar12 = uVar2;
|
||||
}
|
||||
uVar2 = uVar3;
|
||||
if ((local_res8 != (uint *)0x0) && (local_res8 != (uint *)PTR_DAT_14016f010)) {
|
||||
uVar2 = local_res8[-2];
|
||||
}
|
||||
if ((int)uVar2 < (int)uVar12) {
|
||||
if (local_res8 == (uint *)0x0) {
|
||||
local_res8 = (uint *)PTR_DAT_14016f010;
|
||||
}
|
||||
if ((int)uVar12 < 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14003dec0();
|
||||
}
|
||||
if (uVar12 == 0) {
|
||||
FUN_140002190((longlong *)&local_res8,PTR_DAT_14016f010,uVar11,param_4);
|
||||
}
|
||||
else {
|
||||
uVar2 = uVar3;
|
||||
if ((local_res8 != (uint *)0x0) && (local_res8 != (uint *)PTR_DAT_14016f010)) {
|
||||
uVar2 = local_res8[-2];
|
||||
}
|
||||
if (uVar12 != uVar2) {
|
||||
puVar5 = (uint *)FUN_14003e840((longlong)(int)uVar12 * 2 + 10);
|
||||
if (puVar5 != (uint *)0x0) {
|
||||
*puVar5 = 0;
|
||||
puVar5[1] = 1;
|
||||
}
|
||||
*puVar5 = uVar12;
|
||||
uVar2 = uVar3;
|
||||
if ((local_res8 != (uint *)0x0) && (local_res8 != (uint *)PTR_DAT_14016f010)) {
|
||||
uVar2 = local_res8[-2];
|
||||
}
|
||||
puVar9 = (uint *)PTR_DAT_14016f010;
|
||||
if ((int)uVar12 < (int)uVar2) {
|
||||
LAB_1400c1382:
|
||||
if (local_res8 != (uint *)0x0) {
|
||||
puVar9 = local_res8;
|
||||
}
|
||||
}
|
||||
else {
|
||||
uVar12 = uVar3;
|
||||
if (local_res8 != (uint *)0x0) {
|
||||
if (local_res8 != (uint *)PTR_DAT_14016f010) {
|
||||
uVar12 = local_res8[-2];
|
||||
}
|
||||
goto LAB_1400c1382;
|
||||
}
|
||||
}
|
||||
uVar11 = (ulonglong)uVar12;
|
||||
FUN_14003e650(puVar5 + 2,puVar9,uVar12);
|
||||
FUN_140002190((longlong *)&local_res8,puVar9,uVar11,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,L"compdatalength < 0 sendcomplete",uVar1);
|
||||
puVar5 = local_res8;
|
||||
if (local_res8 == (uint *)0x0) {
|
||||
puVar5 = (uint *)PTR_DAT_14016f010;
|
||||
}
|
||||
uVar3 = FUN_14003e620((short *)puVar5);
|
||||
uVar1 = uVar15;
|
||||
if (0 < (int)uVar3) {
|
||||
uVar1 = uVar3;
|
||||
}
|
||||
uVar3 = uVar15;
|
||||
if ((local_res8 != (uint *)0x0) && (local_res8 != (uint *)PTR_DAT_14016f010)) {
|
||||
uVar3 = local_res8[-2];
|
||||
}
|
||||
if (((int)uVar3 <= (int)uVar1) && (uVar1 = uVar15, local_res8 != (uint *)0x0)) {
|
||||
if (local_res8 == (uint *)PTR_DAT_14016f010) goto LAB_1400c143c;
|
||||
uVar1 = local_res8[-2];
|
||||
}
|
||||
if (((local_res8 != (uint *)PTR_DAT_14016f010) && (local_res8 != (uint *)0x0)) &&
|
||||
(local_res8 + -2 != (uint *)0x0)) {
|
||||
local_res8[-2] = uVar1;
|
||||
*(undefined2 *)((longlong)local_res8 + (longlong)(int)uVar1 * 2) = 0;
|
||||
}
|
||||
LAB_1400c143c:
|
||||
ppuVar14 = &local_res8;
|
||||
uVar10 = 0xb;
|
||||
uVar13 = 3;
|
||||
plVar8 = *(longlong **)(param_1 + 0x108);
|
||||
FUN_1400b4a80(plVar8,0xb,(undefined *)0x3,(longlong **)ppuVar14);
|
||||
puVar5 = local_res8;
|
||||
if (((local_res8 != (uint *)0x0) && (local_res8 != (uint *)PTR_DAT_14016f010)) &&
|
||||
(puVar9 = local_res8 + -2, puVar9 != (uint *)0x0)) {
|
||||
piVar6 = (int *)FUN_14003e7c0(plVar8,uVar10,uVar13,ppuVar14);
|
||||
FUN_14003d040(piVar6);
|
||||
puVar5 = puVar5 + -1;
|
||||
*puVar5 = *puVar5 - 1;
|
||||
if (*puVar5 == 0) {
|
||||
FUN_14003e8b0(puVar9);
|
||||
}
|
||||
FUN_14003d0d0((longlong)piVar6);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue