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

27 lines
1,021 B
C

/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
* Ghidra 12.1.2 decompiler output for 0x14003d110 FUN_14003d110
* Pseudocode, not original source. */
void FUN_14003d110(undefined4 *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)
{
exception local_58 [80];
if (*(char *)(param_1 + 0xc) == '\0') {
if ((*(longlong *)(param_1 + 6) != 0) && (*(longlong *)(param_1 + 6) != -1)) {
FUN_14003db10(local_58,L"Critical section is still in use! Destruction may cause problems!",
param_3,param_4);
/* WARNING: Subroutine does not return */
_CxxThrowException(local_58,(ThrowInfo *)&DAT_14016c210);
}
DeleteCriticalSection((LPCRITICAL_SECTION)(param_1 + 2));
*param_1 = 0;
*(undefined8 *)(param_1 + 2) = 0;
*(undefined8 *)(param_1 + 4) = 0;
*(undefined8 *)(param_1 + 6) = 0;
*(undefined8 *)(param_1 + 8) = 0;
*(undefined8 *)(param_1 + 10) = 0;
}
return;
}