//
// __except_validate_context_record from 0x180124d84 to 0x180124dbb (55 bytes)
//
// 3 xrefs:
// > __C_specific_handler @ 0x180124953
// > __InternalCxxFrameHandler<__FrameHandler3> @ 0x180126560
// > unknown_libname_19 @ 0x180126919
//
// 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
//
struct _TEB *__fastcall _except_validate_context_record(__int64 a1)
{
struct _TEB *result; // rax
PVOID v2; // rcx
result = (struct _TEB *)_guard_check_icall_fptr[0];
if ( (void (*)())_guard_check_icall_fptr[0] != guard_check_icall_nop )
{
result = NtCurrentTeb();
v2 = *(PVOID *)(a1 + 152);
if ( v2 < result->NtTib.StackLimit || v2 > result->NtTib.StackBase )
__fastfail(0xDu);
}
return result;
}