server-re/decomp/AgentManager_Release_x64/full/functions/0x14003b780.c
2026-10-15 09:58:24 -04:00

48 lines
1.5 KiB
C

/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
* Ghidra 12.1.2 decompiler output for 0x14003b780 FUN_14003b780
* Pseudocode, not original source. */
longlong * FUN_14003b780(longlong *param_1,longlong *param_2,undefined4 *param_3)
{
void *_Dst;
longlong *plVar1;
char *local_res8;
longlong *local_168;
void *local_160;
undefined2 local_158;
undefined **local_150 [3];
undefined8 local_138;
undefined8 local_128 [36];
local_138 = 0xfffffffffffffffe;
local_160 = (void *)0x0;
local_158 = 0;
local_168 = param_1;
_Dst = operator_new(0x118);
if (_Dst != (void *)0x0) {
local_128[0] = 0;
local_160 = _Dst;
memcpy(_Dst,local_128,0x118);
local_158 = CONCAT11(local_158._1_1_,1);
if ((undefined4 *)((longlong)_Dst + 8) != (undefined4 *)0x0) {
*(undefined4 *)((longlong)_Dst + 8) = *param_3;
memcpy((void *)((longlong)_Dst + 0xc),param_3 + 1,0x108);
}
local_158 = CONCAT11(1,(undefined1)local_158);
plVar1 = FUN_14003b8b0(param_1,(longlong *)local_150,(longlong)&local_168);
*param_2 = *plVar1;
param_2[1] = plVar1[1];
*(undefined1 *)(param_2 + 2) = 1;
if (local_160 != (void *)0x0) {
operator_delete(local_160);
}
return param_2;
}
local_res8 = (char *)0x0;
std::exception::exception((exception *)local_150,&local_res8);
local_150[0] = std::bad_alloc::vftable;
/* WARNING: Subroutine does not return */
_CxxThrowException(local_150,(ThrowInfo *)&DAT_14016c158);
}