add agent manager release decomp
This commit is contained in:
parent
31ff800b2a
commit
fac6117145
7019 changed files with 254032 additions and 5 deletions
50
decomp/AgentManager_Release_x64/full/functions/0x1400e38e0.c
Normal file
50
decomp/AgentManager_Release_x64/full/functions/0x1400e38e0.c
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
||||
* Ghidra 12.1.2 decompiler output for 0x1400e38e0 FUN_1400e38e0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
ulonglong FUN_1400e38e0(uint param_1,longlong param_2,undefined4 param_3,longlong param_4,
|
||||
uint *param_5)
|
||||
|
||||
{
|
||||
uint uVar1;
|
||||
ulonglong uVar2;
|
||||
void *_Memory;
|
||||
longlong lVar3;
|
||||
|
||||
if ((param_2 != 0) && (param_4 != 0)) {
|
||||
if (param_5 != (uint *)0x0) {
|
||||
uVar2 = FUN_1400db770(param_1);
|
||||
if ((int)uVar2 == 0) {
|
||||
lVar3 = (longlong)(int)param_1 * 0x80;
|
||||
if (*param_5 < *(uint *)(&DAT_140179f4c + lVar3)) {
|
||||
*param_5 = *(uint *)(&DAT_140179f4c + lVar3);
|
||||
uVar2 = 6;
|
||||
}
|
||||
else {
|
||||
_Memory = malloc(0x70);
|
||||
if (_Memory == (void *)0x0) {
|
||||
uVar2 = 0xd;
|
||||
}
|
||||
else {
|
||||
uVar1 = (**(code **)(lVar3 + 0x140179f98))(_Memory);
|
||||
uVar2 = (ulonglong)uVar1;
|
||||
if (uVar1 == 0) {
|
||||
uVar1 = (**(code **)(lVar3 + 0x140179fa0))(_Memory,param_2,param_3);
|
||||
uVar2 = (ulonglong)uVar1;
|
||||
if (uVar1 == 0) {
|
||||
uVar1 = (**(code **)(lVar3 + 0x140179fa8))(_Memory,param_4);
|
||||
uVar2 = (ulonglong)uVar1;
|
||||
*param_5 = *(uint *)(&DAT_140179f4c + lVar3);
|
||||
}
|
||||
}
|
||||
free(_Memory);
|
||||
}
|
||||
}
|
||||
}
|
||||
return uVar2;
|
||||
}
|
||||
return 0x10;
|
||||
}
|
||||
return 0x10;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue