//
// ExFilterRethrow from 0x180126a88 to 0x180126b0f (135 bytes)
//
// 2 xrefs:
// > unknown_libname_19 @ 0x180142c61
// > ??> @ 0x18020293c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:54:55 +0000
//
__int64 __fastcall ExFilterRethrow(struct _EXCEPTION_POINTERS *a1, struct EHExceptionRecord *a2, int *a3)
{
PEXCEPTION_RECORD ExceptionRecord; // r9
__int64 v5; // rcx
ExceptionRecord = a1->ExceptionRecord;
*a3 = 0;
if ( ExceptionRecord->ExceptionCode != -529697949 )
return 0;
if ( ExceptionRecord->NumberParameters != 4 )
return 0;
if ( (unsigned int)(LODWORD(ExceptionRecord->ExceptionInformation[0]) - 429065504) <= 2
&& (void *)ExceptionRecord->ExceptionInformation[1] == a2->params.pExceptionObject )
{
*a3 = 1;
if ( ExceptionRecord->ExceptionCode != -529697949 )
return 0;
}
if ( ExceptionRecord->NumberParameters != 4 )
return 0;
v5 = (unsigned int)(LODWORD(ExceptionRecord->ExceptionInformation[0]) - 429065504);
if ( (unsigned int)v5 > 2 || ExceptionRecord->ExceptionInformation[2] )
return 0;
*(_DWORD *)(_vcrt_getptd(v5) + 64) = 1;
*a3 = 1;
return 1;
}