//
// __FrameHandler3::UnwindNestedFrames from 0x180125604 to 0x180125707 (259 bytes)
//
// 3 xrefs:
// > CatchIt<__FrameHandler3> @ 0x180125cf8
// > FindHandler<__FrameHandler3> @ 0x180126120
// > ??> @ 0x18020281c
//
// 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:54 +0000
//
void __fastcall __FrameHandler3::UnwindNestedFrames(
void **a1,
struct EHExceptionRecord *a2,
struct _CONTEXT *a3,
unsigned __int64 *a4,
void *a5,
const struct _s_FuncInfo *a6,
int a7,
int a8,
const struct _s_HandlerType *a9,
struct _xDISPATCHER_CONTEXT *a10,
unsigned __int8 a11)
{
void *v11; // rcx
struct _CONTEXT *ContextRecord; // rax
void *ControlPc; // rdx
struct _UNWIND_HISTORY_TABLE *HistoryTable; // [rsp+28h] [rbp-99h]
EXCEPTION_RECORD ExceptionRecord; // [rsp+30h] [rbp-91h] BYREF
ExceptionRecord = *(EXCEPTION_RECORD *)byte_180170B30;
v11 = *a1;
ExceptionRecord.ExceptionInformation[0] = (ULONG_PTR)unknown_libname_19;
ExceptionRecord.ExceptionInformation[2] = (ULONG_PTR)a5;
ExceptionRecord.ExceptionInformation[3] = a7;
ExceptionRecord.ExceptionInformation[5] = (ULONG_PTR)a6;
ExceptionRecord.ExceptionInformation[7] = a11;
HistoryTable = a10->HistoryTable;
ContextRecord = a10->ContextRecord;
ExceptionRecord.ExceptionInformation[1] = (ULONG_PTR)a4;
ExceptionRecord.ExceptionInformation[4] = (ULONG_PTR)a3;
ExceptionRecord.ExceptionInformation[6] = (ULONG_PTR)a2;
ControlPc = (void *)a10->ControlPc;
ExceptionRecord.ExceptionInformation[8] = 429065504;
RtlUnwindEx(v11, ControlPc, &ExceptionRecord, nullptr, ContextRecord, HistoryTable);
}