//
// _CxxThrowException from 0x1801270a0 to 0x180127140 (160 bytes)
//
// 2 xrefs:
// > FindHandler<__FrameHandler3> @ 0x1801261ae
// > ??> @ 0x1802029c0
//
// 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
//
void __stdcall __noreturn CxxThrowException(void *pExceptionObject, _ThrowInfo *pThrowInfo)
{
_ThrowInfo *v2; // rbx
ULONG_PTR v4; // rdi
__int64 v5; // rcx
PVOID v6; // rax
PVOID BaseOfImage; // [rsp+20h] [rbp-38h] BYREF
ULONG_PTR Arguments[6]; // [rsp+28h] [rbp-30h] BYREF
v2 = pThrowInfo;
v4 = 429065504;
if ( pThrowInfo && (pThrowInfo->attributes & 0x10) != 0 )
{
v5 = *(_QWORD *)pExceptionObject - 8LL;
v2 = *(_ThrowInfo **)(*(_QWORD *)v5 + 48LL);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5);
}
v6 = RtlPcToFileHeader(v2, &BaseOfImage);
BaseOfImage = v6;
if ( v2 && ((v2->attributes & 8) != 0 || !v6) )
v4 = 26820608;
Arguments[0] = v4;
Arguments[1] = (ULONG_PTR)pExceptionObject;
Arguments[2] = (ULONG_PTR)v2;
Arguments[3] = (ULONG_PTR)v6;
RaiseException(0xE06D7363, 1u, 4u, Arguments);
}