{"type": "func", "start": 6442581132, "end": 6442581189, "name": "sub_18001FC8C", "pseudocode": "// \n// sub_18001FC8C from 0x18001fc8c to 0x18001fcc5 (57 bytes)\n// \n// 3 xrefs:\n// > sub_18001F394 @ 0x18001f3be\n// > sub_18001F4AC @ 0x18001f4d8\n// > <???> @ 0x18004d19c\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\nchar sub_18001FC8C()\n{\n  int v0; // eax\n  PVOID StackBase; // rcx\n  signed __int64 v2; // rax\n\n  LOBYTE(v0) = __uncaught_exception();\n  if ( v0 )\n  {\n    StackBase = NtCurrentTeb()->NtTib.StackBase;\n    while ( 1 )\n    {\n      v2 = _InterlockedCompareExchange64(&qword_18004A580, (signed __int64)StackBase, 0);\n      if ( !v2 )\n        break;\n      if ( StackBase == (PVOID)v2 )\n        return 1;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_18001FC8C from 0x18001fc8c to 0x18001fcc5 (57 bytes)\n; \n; 3 xrefs:\n; > sub_18001F394 @ 0x18001f3be\n; > sub_18001F4AC @ 0x18001f4d8\n; > <???> @ 0x18004d19c\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; \nsub     rsp, 28h                                                       ; +0x0, 0x18001fc8c\ncall    ?__uncaught_exception@@YA_NXZ; __uncaught_exception(void)      ; +0x4, 0x18001fc90\ntest    eax, eax                                                       ; +0x9, 0x18001fc95\njz      short loc_18001FCBA                                            ; +0xb, 0x18001fc97\nmov     rax, gs:30h                                                    ; +0xd, 0x18001fc99\nmov     rcx, [rax+8]                                                   ; +0x16, 0x18001fca2\njmp     short loc_18001FCAD                                            ; +0x1a, 0x18001fca6\ncmp     rcx, rax                                                       ; +0x1c, 0x18001fca8\njz      short loc_18001FCC1                                            ; +0x1f, 0x18001fcab\nxor     eax, eax                                                       ; +0x21, 0x18001fcad\nlock cmpxchg cs:qword_18004A580, rcx                                   ; +0x23, 0x18001fcaf\njnz     short loc_18001FCA8                                            ; +0x2c, 0x18001fcb8\nxor     al, al                                                         ; +0x2e, 0x18001fcba\nadd     rsp, 28h                                                       ; +0x30, 0x18001fcbc\nretn                                                                   ; +0x34, 0x18001fcc0\nmov     al, 1                                                          ; +0x35, 0x18001fcc1\njmp     short loc_18001FCBC                                            ; +0x37, 0x18001fcc3", "xrefs": ["sub_18001F394 @ 0x18001f3be", "sub_18001F4AC @ 0x18001f4d8", "<???> @ 0x18004d19c"], "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"}