55 lines
1.7 KiB
C
55 lines
1.7 KiB
C
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
|
* Ghidra 12.1.2 decompiler output for 0x140077c44 __report_gsfailure
|
|
* Pseudocode, not original source. */
|
|
|
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
|
|
/* Library Function - Single Match
|
|
__report_gsfailure
|
|
|
|
Libraries: Visual Studio 2005 Debug, Visual Studio 2005 Release, Visual Studio 2010 Debug, Visual
|
|
Studio 2010 Release */
|
|
|
|
void __cdecl __report_gsfailure(uintptr_t _StackCookie)
|
|
|
|
{
|
|
HANDLE hProcess;
|
|
DWORD64 unaff_retaddr;
|
|
uintptr_t local_res8 [4];
|
|
PVOID local_48;
|
|
ulonglong local_40;
|
|
PRUNTIME_FUNCTION local_38;
|
|
DWORD64 local_30;
|
|
DWORD64 local_28;
|
|
undefined8 local_20;
|
|
undefined8 local_18;
|
|
|
|
local_res8[0] = _StackCookie;
|
|
RtlCaptureContext(&DAT_1401b5c30);
|
|
local_30 = DAT_1401b5d28;
|
|
local_38 = RtlLookupFunctionEntry(DAT_1401b5d28,&local_28,(PUNWIND_HISTORY_TABLE)0x0);
|
|
if (local_38 == (PRUNTIME_FUNCTION)0x0) {
|
|
_DAT_1401b5cc8 = local_res8;
|
|
DAT_1401b5d28 = unaff_retaddr;
|
|
}
|
|
else {
|
|
RtlVirtualUnwind(0,local_28,local_30,local_38,(PCONTEXT)&DAT_1401b5c30,&local_48,&local_40,
|
|
(PKNONVOLATILE_CONTEXT_POINTERS)0x0);
|
|
}
|
|
_DAT_1401b5ba0 = DAT_1401b5d28;
|
|
_DAT_1401b5cb0 = local_res8[0];
|
|
_DAT_1401b5b90 = 0xc0000409;
|
|
_DAT_1401b5b94 = 1;
|
|
local_20 = DAT_1401ac5a0;
|
|
local_18 = DAT_1401ac5a8;
|
|
DAT_1401b5c28 = IsDebuggerPresent();
|
|
__crt_debugger_hook(1);
|
|
SetUnhandledExceptionFilter((LPTOP_LEVEL_EXCEPTION_FILTER)0x0);
|
|
UnhandledExceptionFilter((_EXCEPTION_POINTERS *)&PTR_DAT_140133a78);
|
|
if (DAT_1401b5c28 == 0) {
|
|
__crt_debugger_hook(1);
|
|
}
|
|
hProcess = GetCurrentProcess();
|
|
TerminateProcess(hProcess,0xc0000409);
|
|
return;
|
|
}
|
|
|