/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186 * Ghidra 12.1.2 decompiler output for 0x14001df30 FUN_14001df30 * Pseudocode, not original source. */ /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ bool FUN_14001df30(wchar_t *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4) { undefined8 uVar1; bool bVar2; undefined8 local_res10; undefined8 local_res18; undefined8 local_res20; undefined1 auStack_648 [32]; wchar_t local_628; undefined1 local_626 [510]; wchar_t local_428; undefined1 local_426 [510]; wchar_t local_228; undefined1 local_226 [526]; ulonglong local_18; local_18 = DAT_14016f5a0 ^ (ulonglong)auStack_648; local_res10 = param_2; local_res18 = param_3; local_res20 = param_4; EnterCriticalSection((LPCRITICAL_SECTION)&DAT_14017ced8); local_428 = L'\0'; memset(local_426,0,0x1fe); vswprintf_s(&local_428,0x100,param_1,(va_list)&local_res10); local_228 = L'\0'; memset(local_226,0,0x206); local_628 = L'\0'; memset(local_626,0,0x1fe); uVar1 = FUN_14001d9e0(&local_628,&local_228,(longlong)&local_428); bVar2 = (int)uVar1 != 0; if (bVar2) { FUN_14001de10((longlong)&local_228,(longlong)&local_628); OutputDebugStringW(&local_628); wprintf(L"%s"); LeaveCriticalSection((LPCRITICAL_SECTION)&DAT_14017ced8); } else { LeaveCriticalSection((LPCRITICAL_SECTION)&DAT_14017ced8); } return bVar2; }