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

22 lines
672 B
C

/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
* Ghidra 12.1.2 decompiler output for 0x14001c4a0 FUN_14001c4a0
* Pseudocode, not original source. */
undefined8 * FUN_14001c4a0(undefined8 *param_1,uint param_2)
{
LPCRITICAL_SECTION lpCriticalSection;
lpCriticalSection = DAT_14017cf60;
*param_1 = MBMultiThreadSync<MBCLog>::vftable;
if (lpCriticalSection != (LPCRITICAL_SECTION)0x0) {
DeleteCriticalSection(lpCriticalSection);
operator_delete(lpCriticalSection);
}
DAT_14017cf60 = (LPCRITICAL_SECTION)0x0;
if ((param_2 & 1) != 0) {
operator_delete(param_1);
}
return param_1;
}