{"type": "func", "start": 6442581948, "end": 6442582279, "name": "sub_18001FFBC", "pseudocode": "// \n// sub_18001FFBC from 0x18001ffbc to 0x180020107 (331 bytes)\n// \n// 4 xrefs:\n// > sub_18001F394 @ 0x18001f4a3\n// > sub_18001F4AC @ 0x18001f527\n// > sub_18001FE34 @ 0x18001feb9\n// > <???> @ 0x18004d238\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:15:45 +0000\n// \n\nvoid __fastcall sub_18001FFBC(unsigned int a1)\n{\n  ULONG64 Rip; // rbx\n  struct _IMAGE_RUNTIME_FUNCTION_ENTRY *v3; // rax\n  BOOL v4; // ebx\n  struct _EXCEPTION_POINTERS ExceptionInfo; // [rsp+40h] [rbp-C0h] BYREF\n  _QWORD v6[20]; // [rsp+50h] [rbp-B0h] BYREF\n  struct _CONTEXT ContextRecord; // [rsp+F0h] [rbp-10h] BYREF\n  DWORD64 retaddr; // [rsp+5C8h] [rbp+4C8h]\n  __int64 v9; // [rsp+5D0h] [rbp+4D0h] BYREF\n  unsigned __int64 ImageBase; // [rsp+5D8h] [rbp+4D8h] BYREF\n  unsigned __int64 EstablisherFrame; // [rsp+5E0h] [rbp+4E0h] BYREF\n  PVOID HandlerData; // [rsp+5E8h] [rbp+4E8h] BYREF\n\n  if ( IsProcessorFeaturePresent(0x17u) )\n    __fastfail(a1);\n  sub_18001FFB0();\n  memset(&ContextRecord, 0, sizeof(ContextRecord));\n  RtlCaptureContext(&ContextRecord);\n  Rip = ContextRecord.Rip;\n  v3 = RtlLookupFunctionEntry(ContextRecord.Rip, &ImageBase, nullptr);\n  if ( v3 )\n    RtlVirtualUnwind(0, ImageBase, Rip, v3, &ContextRecord, &HandlerData, &EstablisherFrame, nullptr);\n  ContextRecord.Rip = retaddr;\n  ContextRecord.Rsp = (DWORD64)&v9;\n  memset(v6, 0, 0x98u);\n  v6[2] = retaddr;\n  v6[0] = 0x140000015LL;\n  v4 = IsDebuggerPresent();\n  ExceptionInfo.ExceptionRecord = (PEXCEPTION_RECORD)v6;\n  ExceptionInfo.ContextRecord = &ContextRecord;\n  SetUnhandledExceptionFilter(nullptr);\n  if ( !UnhandledExceptionFilter(&ExceptionInfo) && !v4 )\n    sub_18001FFB0();\n}", "assembly": "; \n; sub_18001FFBC from 0x18001ffbc to 0x180020107 (331 bytes)\n; \n; 4 xrefs:\n; > sub_18001F394 @ 0x18001f4a3\n; > sub_18001F4AC @ 0x18001f527\n; > sub_18001FE34 @ 0x18001feb9\n; > <???> @ 0x18004d238\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:15:45 +0000\n; \nmov     [rsp-8+arg_0], rbx                                             ; +0x0, 0x18001ffbc\npush    rbp                                                            ; +0x5, 0x18001ffc1\nlea     rbp, [rsp-4C0h]                                                ; +0x6, 0x18001ffc2\nsub     rsp, 5C0h                                                      ; +0xe, 0x18001ffca\nmov     ebx, ecx                                                       ; +0x15, 0x18001ffd1\nmov     ecx, 17h; ProcessorFeature                                     ; +0x17, 0x18001ffd3\ncall    cs:IsProcessorFeaturePresent                                   ; +0x1c, 0x18001ffd8\ntest    eax, eax                                                       ; +0x22, 0x18001ffde\njz      short loc_18001FFE6                                            ; +0x24, 0x18001ffe0\nmov     ecx, ebx                                                       ; +0x26, 0x18001ffe2\nint     29h; Win8: RtlFailFast(ecx)                                    ; +0x28, 0x18001ffe4\nmov     ecx, 3                                                         ; +0x2a, 0x18001ffe6\ncall    sub_18001FFB0                                                  ; +0x2f, 0x18001ffeb\nxor     edx, edx; Val                                                  ; +0x34, 0x18001fff0\nlea     rcx, [rbp+4C0h+ContextRecord]; void *                          ; +0x36, 0x18001fff2\nmov     r8d, 4D0h; Size                                                ; +0x3a, 0x18001fff6\ncall    memset                                                         ; +0x40, 0x18001fffc\nlea     rcx, [rbp+4C0h+ContextRecord]; ContextRecord                   ; +0x45, 0x180020001\ncall    cs:RtlCaptureContext                                           ; +0x49, 0x180020005\nmov     rbx, [rbp+4C0h+ContextRecord.Rip]                              ; +0x4f, 0x18002000b\nlea     rdx, [rbp+4C0h+ImageBase]; ImageBase                           ; +0x56, 0x180020012\nmov     rcx, rbx; ControlPc                                            ; +0x5d, 0x180020019\nxor     r8d, r8d; HistoryTable                                         ; +0x60, 0x18002001c\ncall    cs:RtlLookupFunctionEntry                                      ; +0x63, 0x18002001f\ntest    rax, rax                                                       ; +0x69, 0x180020025\njz      short loc_180020069                                            ; +0x6c, 0x180020028\nmov     rdx, [rbp+4C0h+ImageBase]; ImageBase                           ; +0x6e, 0x18002002a\nlea     rcx, [rbp+4C0h+arg_10]                                         ; +0x75, 0x180020031\nmov     [rsp+5C0h+ContextPointers], 0; ContextPointers                 ; +0x7c, 0x180020038\nmov     r9, rax; FunctionEntry                                         ; +0x85, 0x180020041\nmov     [rsp+5C0h+EstablisherFrame], rcx; EstablisherFrame             ; +0x88, 0x180020044\nmov     r8, rbx; ControlPc                                             ; +0x8d, 0x180020049\nlea     rcx, [rbp+4C0h+arg_18]                                         ; +0x90, 0x18002004c\nmov     [rsp+5C0h+HandlerData], rcx; HandlerData                       ; +0x97, 0x180020053\nlea     rcx, [rbp+4C0h+ContextRecord]                                  ; +0x9c, 0x180020058\nmov     [rsp+5C0h+var_5A0], rcx; ContextRecord                         ; +0xa0, 0x18002005c\nxor     ecx, ecx; HandlerType                                          ; +0xa5, 0x180020061\ncall    cs:RtlVirtualUnwind                                            ; +0xa7, 0x180020063\nmov     rax, [rbp+4C8h]                                                ; +0xad, 0x180020069\nlea     rcx, [rsp+5C0h+var_570]; void *                                ; +0xb4, 0x180020070\nmov     [rbp+4C0h+ContextRecord.Rip], rax                              ; +0xb9, 0x180020075\nxor     edx, edx; Val                                                  ; +0xc0, 0x18002007c\nlea     rax, [rbp+4C8h]                                                ; +0xc2, 0x18002007e\nmov     r8d, 98h; Size                                                 ; +0xc9, 0x180020085\nadd     rax, 8                                                         ; +0xcf, 0x18002008b\nmov     [rbp+4C0h+ContextRecord.Rsp], rax                              ; +0xd3, 0x18002008f\ncall    memset                                                         ; +0xda, 0x180020096\nmov     rax, [rbp+4C8h]                                                ; +0xdf, 0x18002009b\nmov     [rsp+5C0h+var_560], rax                                        ; +0xe6, 0x1800200a2\nmov     [rsp+5C0h+var_570], 40000015h                                  ; +0xeb, 0x1800200a7\nmov     [rsp+5C0h+var_56C], 1                                          ; +0xf3, 0x1800200af\ncall    cs:IsDebuggerPresent                                           ; +0xfb, 0x1800200b7\nmov     ebx, eax                                                       ; +0x101, 0x1800200bd\nxor     ecx, ecx; lpTopLevelExceptionFilter                            ; +0x103, 0x1800200bf\nlea     rax, [rsp+5C0h+var_570]                                        ; +0x105, 0x1800200c1\nmov     [rsp+5C0h+ExceptionInfo.ExceptionRecord], rax                  ; +0x10a, 0x1800200c6\nlea     rax, [rbp+4C0h+ContextRecord]                                  ; +0x10f, 0x1800200cb\nmov     [rsp+5C0h+ExceptionInfo.ContextRecord], rax                    ; +0x113, 0x1800200cf\ncall    cs:SetUnhandledExceptionFilter                                 ; +0x118, 0x1800200d4\nlea     rcx, [rsp+5C0h+ExceptionInfo]; ExceptionInfo                   ; +0x11e, 0x1800200da\ncall    cs:UnhandledExceptionFilter                                    ; +0x123, 0x1800200df\ntest    eax, eax                                                       ; +0x129, 0x1800200e5\njnz     short loc_1800200F6                                            ; +0x12b, 0x1800200e7\ncmp     ebx, 1                                                         ; +0x12d, 0x1800200e9\njz      short loc_1800200F6                                            ; +0x130, 0x1800200ec\nlea     ecx, [rax+3]                                                   ; +0x132, 0x1800200ee\ncall    sub_18001FFB0                                                  ; +0x135, 0x1800200f1\nmov     rbx, [rsp+5C0h+arg_0]                                          ; +0x13a, 0x1800200f6\nadd     rsp, 5C0h                                                      ; +0x142, 0x1800200fe\npop     rbp                                                            ; +0x149, 0x180020105\nretn                                                                   ; +0x14a, 0x180020106", "xrefs": ["sub_18001F394 @ 0x18001f4a3", "sub_18001F4AC @ 0x18001f527", "sub_18001FE34 @ 0x18001feb9", "<???> @ 0x18004d238"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}