{"type": "func", "start": 6442563824, "end": 6442563904, "name": "sub_18001B8F0", "pseudocode": "// \n// sub_18001B8F0 from 0x18001b8f0 to 0x18001b940 (80 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800ed0e0\n// > <???> @ 0x1801b8ad0\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 11:21:26 +0000\n// \n\nchar __fastcall sub_18001B8F0(__int64 a1, __int64 a2)\n{\n  std::codecvt_base *v3; // rdi\n  char result; // al\n\n  v3 = (std::codecvt_base *)sub_180016430(a2);\n  result = std::codecvt_base::always_noconv(v3);\n  if ( result )\n  {\n    *(_QWORD *)(a1 + 104) = 0;\n  }\n  else\n  {\n    *(_QWORD *)(a1 + 104) = v3;\n    return std::streambuf::_Init(a1);\n  }\n  return result;\n}", "assembly": "; \n; sub_18001B8F0 from 0x18001b8f0 to 0x18001b940 (80 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800ed0e0\n; > <???> @ 0x1801b8ad0\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 11:21:26 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18001b8f0\npush    rdi                                                            ; +0x5, 0x18001b8f5\nsub     rsp, 20h                                                       ; +0x6, 0x18001b8f6\nmov     rbx, rcx                                                       ; +0xa, 0x18001b8fa\nmov     rcx, rdx                                                       ; +0xd, 0x18001b8fd\ncall    sub_180016430                                                  ; +0x10, 0x18001b900\nmov     rcx, rax                                                       ; +0x15, 0x18001b905\nmov     rdi, rax                                                       ; +0x18, 0x18001b908\ncall    cs:?always_noconv@codecvt_base@std@@QEBA_NXZ; std::codecvt_base::always_noconv(void) ; +0x1b, 0x18001b90b\ntest    al, al                                                         ; +0x21, 0x18001b911\njz      short loc_18001B928                                            ; +0x23, 0x18001b913\nmov     qword ptr [rbx+68h], 0                                         ; +0x25, 0x18001b915\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x2d, 0x18001b91d\nadd     rsp, 20h                                                       ; +0x32, 0x18001b922\npop     rdi                                                            ; +0x36, 0x18001b926\nretn                                                                   ; +0x37, 0x18001b927\nmov     rcx, rbx                                                       ; +0x38, 0x18001b928\nmov     [rbx+68h], rdi                                                 ; +0x3b, 0x18001b92b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3f, 0x18001b92f\nadd     rsp, 20h                                                       ; +0x44, 0x18001b934\npop     rdi                                                            ; +0x48, 0x18001b938\njmp     cs:?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXXZ; std::streambuf::_Init(void) ; +0x49, 0x18001b939", "xrefs": ["<???> @ 0x1800ed0e0", "<???> @ 0x1801b8ad0"], "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"}