add agent manager release decomp

This commit is contained in:
Benjamin Palko 2026-10-15 09:58:24 -04:00
parent 31ff800b2a
commit fac6117145
7019 changed files with 254032 additions and 5 deletions

View file

@ -0,0 +1,53 @@
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
* Ghidra 12.1.2 decompiler output for 0x1400db0b0 FUN_1400db0b0
* Pseudocode, not original source. */
ulonglong FUN_1400db0b0(longlong param_1,int param_2,undefined8 param_3,uint param_4)
{
int iVar1;
uint uVar2;
ulonglong uVar3;
byte *_Memory;
bool bVar4;
int local_res8 [2];
if (param_1 == 0) {
return 0x10;
}
bVar4 = param_2 < 0;
if (bVar4) {
param_2 = -param_2;
}
if (0x1fe < param_2 - 2U) {
return 0x17;
}
uVar3 = FUN_1400d58f0(param_4);
if ((int)uVar3 == 0) {
_Memory = calloc(1,(longlong)param_2);
if (_Memory == (byte *)0x0) {
uVar3 = 0xd;
}
else {
do {
iVar1 = (**(code **)(&DAT_140179568 + (longlong)(int)param_4 * 0x50))
(_Memory,param_2,param_3);
if (iVar1 != param_2) {
free(_Memory);
return 9;
}
*_Memory = *_Memory | 0xc0;
_Memory[(longlong)param_2 - 1] = _Memory[(longlong)param_2 - 1] | bVar4 * '\x02' | 1U;
uVar2 = (*DAT_14017d520)(param_1,_Memory,param_2);
if ((uVar2 != 0) || (uVar2 = (*DAT_14017d5c8)(param_1,local_res8), uVar2 != 0)) {
free(_Memory);
return (ulonglong)uVar2;
}
} while (local_res8[0] == 0);
free(_Memory);
uVar3 = 0;
}
}
return uVar3;
}