// // sub_18001FFBC from 0x18001ffbc to 0x180020107 (331 bytes) // // 4 xrefs: // > sub_18001F394 @ 0x18001f4a3 // > sub_18001F4AC @ 0x18001f527 // > sub_18001FE34 @ 0x18001feb9 // > @ 0x18004d238 // // 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 12:15:45 +0000 // void __fastcall sub_18001FFBC(unsigned int a1) { ULONG64 Rip; // rbx struct _IMAGE_RUNTIME_FUNCTION_ENTRY *v3; // rax BOOL v4; // ebx struct _EXCEPTION_POINTERS ExceptionInfo; // [rsp+40h] [rbp-C0h] BYREF _QWORD v6[20]; // [rsp+50h] [rbp-B0h] BYREF struct _CONTEXT ContextRecord; // [rsp+F0h] [rbp-10h] BYREF DWORD64 retaddr; // [rsp+5C8h] [rbp+4C8h] __int64 v9; // [rsp+5D0h] [rbp+4D0h] BYREF unsigned __int64 ImageBase; // [rsp+5D8h] [rbp+4D8h] BYREF unsigned __int64 EstablisherFrame; // [rsp+5E0h] [rbp+4E0h] BYREF PVOID HandlerData; // [rsp+5E8h] [rbp+4E8h] BYREF if ( IsProcessorFeaturePresent(0x17u) ) __fastfail(a1); sub_18001FFB0(); memset(&ContextRecord, 0, sizeof(ContextRecord)); RtlCaptureContext(&ContextRecord); Rip = ContextRecord.Rip; v3 = RtlLookupFunctionEntry(ContextRecord.Rip, &ImageBase, nullptr); if ( v3 ) RtlVirtualUnwind(0, ImageBase, Rip, v3, &ContextRecord, &HandlerData, &EstablisherFrame, nullptr); ContextRecord.Rip = retaddr; ContextRecord.Rsp = (DWORD64)&v9; memset(v6, 0, 0x98u); v6[2] = retaddr; v6[0] = 0x140000015LL; v4 = IsDebuggerPresent(); ExceptionInfo.ExceptionRecord = (PEXCEPTION_RECORD)v6; ExceptionInfo.ContextRecord = &ContextRecord; SetUnhandledExceptionFilter(nullptr); if ( !UnhandledExceptionFilter(&ExceptionInfo) && !v4 ) sub_18001FFB0(); }