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/0x140005020.c
Normal file
50
decomp/AgentManager_Release_x64/full/functions/0x140005020.c
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
||||
* Ghidra 12.1.2 decompiler output for 0x140005020 FUN_140005020
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_140005020(longlong *param_1,int param_2,void *param_3,int param_4)
|
||||
|
||||
{
|
||||
void *pvVar1;
|
||||
|
||||
if (param_1 == (longlong *)0x0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_1400050d0(0x80070057);
|
||||
}
|
||||
if (param_2 < 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_1400050d0(0x80070057);
|
||||
}
|
||||
if (param_3 == (void *)0x0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_1400050d0(0x80070057);
|
||||
}
|
||||
pvVar1 = (void *)*param_1;
|
||||
if (pvVar1 == param_3) {
|
||||
if (param_2 <= param_4) {
|
||||
*param_1 = (longlong)param_3;
|
||||
goto LAB_1400050b1;
|
||||
}
|
||||
pvVar1 = calloc((longlong)param_2,2);
|
||||
}
|
||||
else {
|
||||
if (param_2 <= param_4) {
|
||||
free(pvVar1);
|
||||
*param_1 = (longlong)param_3;
|
||||
goto LAB_1400050b1;
|
||||
}
|
||||
pvVar1 = _recalloc(pvVar1,(longlong)param_2,2);
|
||||
if (pvVar1 == (void *)0x0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_1400050d0(0x8007000e);
|
||||
}
|
||||
}
|
||||
*param_1 = (longlong)pvVar1;
|
||||
LAB_1400050b1:
|
||||
if (*param_1 == 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_1400050d0(0x8007000e);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue