{"type": "func", "start": 6442550384, "end": 6442550521, "name": "sub_180018470", "pseudocode": "// \n// sub_180018470 from 0x180018470 to 0x1800184f9 (137 bytes)\n// \n// 2 xrefs:\n// > sub_1800180F4 @ 0x1800180fb\n// > <???> @ 0x1801b88c0\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:25 +0000\n// \n\nvoid *__fastcall sub_180018470(__int64 a1, char a2)\n{\n  void *v2; // rsi\n  __int64 v5; // r8\n\n  v2 = (void *)(a1 - 152);\n  *(_QWORD *)(*(int *)(*(_QWORD *)(a1 - 152) + 4LL) + a1 - 152) = &std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::`vftable';\n  v5 = *(int *)(*(_QWORD *)(a1 - 152) + 4LL);\n  *(_DWORD *)(v5 + a1 - 156) = v5 - 152;\n  sub_1800174E0(a1 - 152 + 24);\n  std::iostream::~iostream<char,std::char_traits<char>>(a1 - 120);\n  std::ios::~ios<char,std::char_traits<char>>(a1);\n  if ( (a2 & 1) != 0 )\n    j_j_free_0(v2);\n  return v2;\n}", "assembly": "; \n; sub_180018470 from 0x180018470 to 0x1800184f9 (137 bytes)\n; \n; 2 xrefs:\n; > sub_1800180F4 @ 0x1800180fb\n; > <???> @ 0x1801b88c0\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:25 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180018470\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180018475\npush    rdi                                                            ; +0xa, 0x18001847a\nsub     rsp, 20h                                                       ; +0xb, 0x18001847b\nlea     rsi, [rcx-98h]                                                 ; +0xf, 0x18001847f\nmov     rbx, rcx                                                       ; +0x16, 0x180018486\nmov     rax, [rsi]                                                     ; +0x19, 0x180018489\nmov     edi, edx                                                       ; +0x1c, 0x18001848c\nmovsxd  r8, dword ptr [rax+4]                                          ; +0x1e, 0x18001848e\nlea     rax, ??_7?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@; const std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::`vftable' ; +0x22, 0x180018492\nmov     [r8+rcx-98h], rax                                              ; +0x29, 0x180018499\nmov     rax, [rsi]                                                     ; +0x31, 0x1800184a1\nmovsxd  r8, dword ptr [rax+4]                                          ; +0x34, 0x1800184a4\nlea     r9d, [r8-98h]                                                  ; +0x38, 0x1800184a8\nmov     [r8+rcx-9Ch], r9d                                              ; +0x3f, 0x1800184af\nlea     rcx, [rsi+18h]                                                 ; +0x47, 0x1800184b7\ncall    sub_1800174E0                                                  ; +0x4b, 0x1800184bb\nlea     rcx, [rbx-78h]                                                 ; +0x50, 0x1800184c0\ncall    cs:??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UEAA@XZ; std::iostream::~iostream<char,std::char_traits<char>>(void) ; +0x54, 0x1800184c4\nmov     rcx, rbx                                                       ; +0x5a, 0x1800184ca\ncall    cs:??1?$basic_ios@DU?$char_traits@D@std@@@std@@UEAA@XZ; std::ios::~ios<char,std::char_traits<char>>(void) ; +0x5d, 0x1800184cd\ntest    dil, 1                                                         ; +0x63, 0x1800184d3\njz      short loc_1800184E6                                            ; +0x67, 0x1800184d7\nmov     edx, 0F8h                                                      ; +0x69, 0x1800184d9\nmov     rcx, rsi; Block                                                ; +0x6e, 0x1800184de\ncall    j_j_free_0                                                     ; +0x71, 0x1800184e1\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x76, 0x1800184e6\nmov     rax, rsi                                                       ; +0x7b, 0x1800184eb\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x7e, 0x1800184ee\nadd     rsp, 20h                                                       ; +0x83, 0x1800184f3\npop     rdi                                                            ; +0x87, 0x1800184f7\nretn                                                                   ; +0x88, 0x1800184f8", "xrefs": ["sub_1800180F4 @ 0x1800180fb", "<???> @ 0x1801b88c0"], "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"}