{"type": "func", "start": 6442564048, "end": 6442564128, "name": "sub_18001B9D0", "pseudocode": "// \n// sub_18001B9D0 from 0x18001b9d0 to 0x18001ba20 (80 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800e7080\n// > <???> @ 0x1801aea7c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nchar __fastcall sub_18001B9D0(__int64 a1, __int64 a2)\n{\n  struct std::_Facet_base *v3; // rdi\n  char result; // al\n\n  v3 = sub_180016880(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_18001B9D0 from 0x18001b9d0 to 0x18001ba20 (80 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800e7080\n; > <???> @ 0x1801aea7c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18001b9d0\npush    rdi                                                            ; +0x5, 0x18001b9d5\nsub     rsp, 20h                                                       ; +0x6, 0x18001b9d6\nmov     rbx, rcx                                                       ; +0xa, 0x18001b9da\nmov     rcx, rdx                                                       ; +0xd, 0x18001b9dd\ncall    sub_180016880                                                  ; +0x10, 0x18001b9e0\nmov     rcx, rax                                                       ; +0x15, 0x18001b9e5\nmov     rdi, rax                                                       ; +0x18, 0x18001b9e8\ncall    cs:?always_noconv@codecvt_base@std@@QEBA_NXZ; std::codecvt_base::always_noconv(void) ; +0x1b, 0x18001b9eb\ntest    al, al                                                         ; +0x21, 0x18001b9f1\njz      short loc_18001BA08                                            ; +0x23, 0x18001b9f3\nmov     qword ptr [rbx+68h], 0                                         ; +0x25, 0x18001b9f5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x2d, 0x18001b9fd\nadd     rsp, 20h                                                       ; +0x32, 0x18001ba02\npop     rdi                                                            ; +0x36, 0x18001ba06\nretn                                                                   ; +0x37, 0x18001ba07\nmov     rcx, rbx                                                       ; +0x38, 0x18001ba08\nmov     [rbx+68h], rdi                                                 ; +0x3b, 0x18001ba0b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3f, 0x18001ba0f\nadd     rsp, 20h                                                       ; +0x44, 0x18001ba14\npop     rdi                                                            ; +0x48, 0x18001ba18\njmp     cs:?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXXZ; std::streambuf::_Init(void) ; +0x49, 0x18001ba19", "xrefs": ["<???> @ 0x1800e7080", "<???> @ 0x1801aea7c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}