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

25 lines
783 B
C

/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
* Ghidra 12.1.2 decompiler output for 0x14004d040 FUN_14004d040
* Pseudocode, not original source. */
void * FUN_14004d040(undefined8 param_1,ulonglong param_2)
{
void *pvVar1;
char *local_res10 [3];
undefined **local_28 [5];
if (param_2 == 0) {
return (void *)0x0;
}
if ((param_2 < 0x2000000000000000) && (pvVar1 = operator_new(param_2 * 8), pvVar1 != (void *)0x0))
{
return pvVar1;
}
local_res10[0] = (char *)0x0;
std::exception::exception((exception *)local_28,local_res10);
local_28[0] = std::bad_alloc::vftable;
/* WARNING: Subroutine does not return */
_CxxThrowException(local_28,(ThrowInfo *)&DAT_14016c158);
}