{"type": "func", "start": 6442578836, "end": 6442579114, "name": "sub_18001F394", "pseudocode": "// \n// sub_18001F394 from 0x18001f394 to 0x18001f4aa (278 bytes)\n// \n// 3 xrefs:\n// > sub_18001F344 @ 0x18001f380\n// > <???> @ 0x18004d0e8\n// > <???> @ 0x18004d0f4\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\n__int64 sub_18001F394()\n{\n  char v0; // bl\n  char v1; // di\n  __int64 v2; // rcx\n  _QWORD *v3; // rax\n\n  if ( !(unsigned __int8)sub_18001FDF8(0) )\n    return 0;\n  v0 = sub_18001FC8C();\n  v1 = 1;\n  if ( dword_18004A578 )\n  {\n    sub_18001FFBC(7);\n    __debugbreak();\n    JUMPOUT(0x18001F4AALL);\n  }\n  dword_18004A578 = 1;\n  if ( (unsigned __int8)sub_18001FCFC() )\n  {\n    sub_180020108();\n    sub_18001FC4C();\n    sub_18001FC70();\n    if ( !initterm_e((_PIFV *)&First, (_PIFV *)&Last) )\n    {\n      if ( (unsigned __int8)sub_18001FCC8() )\n      {\n        initterm((_PVFV *)&qword_1800231F0, (_PVFV *)&qword_180023250);\n        dword_18004A578 = 2;\n        v1 = 0;\n      }\n    }\n  }\n  LOBYTE(v2) = v0;\n  sub_18001FF58(v2);\n  if ( v1 )\n    return 0;\n  v3 = (_QWORD *)sub_18001FFA8();\n  if ( *v3 )\n  {\n    if ( (unsigned __int8)sub_18001FEC0(v3) )\n      _guard_dispatch_icall_fptr();\n  }\n  ++dword_180049FD0;\n  return 1;\n}", "assembly": "; \n; sub_18001F394 from 0x18001f394 to 0x18001f4aa (278 bytes)\n; \n; 3 xrefs:\n; > sub_18001F344 @ 0x18001f380\n; > <???> @ 0x18004d0e8\n; > <???> @ 0x18004d0f4\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+arg_0], rbx                                               ; +0x0, 0x18001f394\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18001f399\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x18001f39e\npush    r14                                                            ; +0xf, 0x18001f3a3\nsub     rsp, 20h                                                       ; +0x11, 0x18001f3a5\nmov     rsi, rdx                                                       ; +0x15, 0x18001f3a9\nmov     r14, rcx                                                       ; +0x18, 0x18001f3ac\nxor     ecx, ecx                                                       ; +0x1b, 0x18001f3af\ncall    sub_18001FDF8                                                  ; +0x1d, 0x18001f3b1\ntest    al, al                                                         ; +0x22, 0x18001f3b6\njz      loc_18001F486                                                  ; +0x24, 0x18001f3b8\ncall    sub_18001FC8C                                                  ; +0x2a, 0x18001f3be\nmov     bl, al                                                         ; +0x2f, 0x18001f3c3\nmov     [rsp+28h+arg_10], al                                           ; +0x31, 0x18001f3c5\nmov     dil, 1                                                         ; +0x35, 0x18001f3c9\ncmp     cs:dword_18004A578, 0                                          ; +0x38, 0x18001f3cc\njnz     loc_18001F49E                                                  ; +0x3f, 0x18001f3d3\nmov     cs:dword_18004A578, 1                                          ; +0x45, 0x18001f3d9\ncall    sub_18001FCFC                                                  ; +0x4f, 0x18001f3e3\ntest    al, al                                                         ; +0x54, 0x18001f3e8\njz      short loc_18001F43B                                            ; +0x56, 0x18001f3ea\ncall    sub_180020108                                                  ; +0x58, 0x18001f3ec\ncall    sub_18001FC4C                                                  ; +0x5d, 0x18001f3f1\ncall    sub_18001FC70                                                  ; +0x62, 0x18001f3f6\nlea     rdx, Last; Last                                                ; +0x67, 0x18001f3fb\nlea     rcx, First; First                                              ; +0x6e, 0x18001f402\ncall    _initterm_e                                                    ; +0x75, 0x18001f409\ntest    eax, eax                                                       ; +0x7a, 0x18001f40e\njnz     short loc_18001F43B                                            ; +0x7c, 0x18001f410\ncall    sub_18001FCC8                                                  ; +0x7e, 0x18001f412\ntest    al, al                                                         ; +0x83, 0x18001f417\njz      short loc_18001F43B                                            ; +0x85, 0x18001f419\nlea     rdx, qword_180023250; Last                                     ; +0x87, 0x18001f41b\nlea     rcx, qword_1800231F0; First                                    ; +0x8e, 0x18001f422\ncall    _initterm                                                      ; +0x95, 0x18001f429\nmov     cs:dword_18004A578, 2                                          ; +0x9a, 0x18001f42e\nxor     dil, dil                                                       ; +0xa4, 0x18001f438\nmov     cl, bl                                                         ; +0xa7, 0x18001f43b\ncall    sub_18001FF58                                                  ; +0xa9, 0x18001f43d\ntest    dil, dil                                                       ; +0xae, 0x18001f442\njnz     short loc_18001F486                                            ; +0xb1, 0x18001f445\ncall    sub_18001FFA8                                                  ; +0xb3, 0x18001f447\nmov     rbx, rax                                                       ; +0xb8, 0x18001f44c\ncmp     qword ptr [rax], 0                                             ; +0xbb, 0x18001f44f\njz      short loc_18001F479                                            ; +0xbf, 0x18001f453\nmov     rcx, rax                                                       ; +0xc1, 0x18001f455\ncall    sub_18001FEC0                                                  ; +0xc4, 0x18001f458\ntest    al, al                                                         ; +0xc9, 0x18001f45d\njz      short loc_18001F479                                            ; +0xcb, 0x18001f45f\nmov     r8, rsi                                                        ; +0xcd, 0x18001f461\nmov     edx, 2                                                         ; +0xd0, 0x18001f464\nmov     rcx, r14                                                       ; +0xd5, 0x18001f469\nmov     rax, [rbx]                                                     ; +0xd8, 0x18001f46c\nmov     r9, cs:__guard_dispatch_icall_fptr                             ; +0xdb, 0x18001f46f\ncall    r9 ; _guard_dispatch_icall_nop                                 ; +0xe2, 0x18001f476\ninc     cs:dword_180049FD0                                             ; +0xe5, 0x18001f479\nmov     eax, 1                                                         ; +0xeb, 0x18001f47f\njmp     short loc_18001F488                                            ; +0xf0, 0x18001f484\nxor     eax, eax                                                       ; +0xf2, 0x18001f486\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xf4, 0x18001f488\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xf9, 0x18001f48d\nmov     rdi, [rsp+28h+arg_18]                                          ; +0xfe, 0x18001f492\nadd     rsp, 20h                                                       ; +0x103, 0x18001f497\npop     r14                                                            ; +0x107, 0x18001f49b\nretn                                                                   ; +0x109, 0x18001f49d\nmov     ecx, 7                                                         ; +0x10a, 0x18001f49e\ncall    sub_18001FFBC                                                  ; +0x10f, 0x18001f4a3\nnop                                                                    ; +0x114, 0x18001f4a8\nint     3; Trap to Debugger                                            ; +0x115, 0x18001f4a9", "xrefs": ["sub_18001F344 @ 0x18001f380", "<???> @ 0x18004d0e8", "<???> @ 0x18004d0f4"], "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"}