//
// __scrt_unhandled_exception_filter from 0x1404d1490 to 0x1404d14eb (91 bytes)
//
// 2 xrefs:
// > __scrt_set_unhandled_exception_filter @ 0x1404d1480
// > ??> @ 0x1406dd7c0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall _scrt_unhandled_exception_filter(_QWORD *a1)
{
_DWORD *v1; // rbx
int v3; // edx
__int64 v5; // rbx
v1 = (_DWORD *)*a1;
if ( *(_DWORD *)*a1 == -529697949 && v1[6] == 4 )
{
v3 = v1[8];
if ( (unsigned int)(v3 - 429065504) <= 2 || v3 == 26820608 )
{
*(_QWORD *)_current_exception() = v1;
v5 = a1[1];
*(_QWORD *)_current_exception_context() = v5;
terminate();
}
}
return 0;
}