{"type": "func", "start": 6442549280, "end": 6442549374, "name": "sub_180018020", "pseudocode": "// \n// sub_180018020 from 0x180018020 to 0x18001807e (94 bytes)\n// \n// 6 xrefs:\n// > sub_1800E6520 @ 0x1800e6527\n// > sub_1800E6700 @ 0x1800e6707\n// > <???> @ 0x18013bf52\n// > <???> @ 0x18013bfd4\n// > <???> @ 0x18013c747\n// > <???> @ 0x1801b8854\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\n__int64 __fastcall sub_180018020(__int64 a1)\n{\n  __int64 v1; // rbx\n\n  v1 = a1 + 168;\n  *(_QWORD *)(*(int *)(*(_QWORD *)a1 + 4LL) + v1 - 168) = &std::ofstream::`vftable';\n  *(_DWORD *)(*(int *)(*(_QWORD *)a1 + 4LL) + v1 - 172) = *(_DWORD *)(*(_QWORD *)a1 + 4LL) - 168;\n  sub_180017410(a1 + 8);\n  std::ostream::~ostream<char,std::char_traits<char>>(v1 - 152);\n  return std::ios::~ios<char,std::char_traits<char>>(v1);\n}", "assembly": "; \n; sub_180018020 from 0x180018020 to 0x18001807e (94 bytes)\n; \n; 6 xrefs:\n; > sub_1800E6520 @ 0x1800e6527\n; > sub_1800E6700 @ 0x1800e6707\n; > <???> @ 0x18013bf52\n; > <???> @ 0x18013bfd4\n; > <???> @ 0x18013c747\n; > <???> @ 0x1801b8854\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; \npush    rbx                                                            ; +0x0, 0x180018020\nsub     rsp, 20h                                                       ; +0x2, 0x180018022\nmov     rax, [rcx]                                                     ; +0x6, 0x180018026\nlea     rbx, [rcx+0A8h]                                                ; +0x9, 0x180018029\nmovsxd  rdx, dword ptr [rax+4]                                         ; +0x10, 0x180018030\nlea     rax, ??_7?$basic_ofstream@DU?$char_traits@D@std@@@std@@6B@; const std::ofstream::`vftable' ; +0x14, 0x180018034\nmov     [rdx+rbx-0A8h], rax                                            ; +0x1b, 0x18001803b\nmov     rax, [rcx]                                                     ; +0x23, 0x180018043\nadd     rcx, 8                                                         ; +0x26, 0x180018046\nmovsxd  rdx, dword ptr [rax+4]                                         ; +0x2a, 0x18001804a\nlea     r8d, [rdx-0A8h]                                                ; +0x2e, 0x18001804e\nmov     [rdx+rbx-0ACh], r8d                                            ; +0x35, 0x180018055\ncall    sub_180017410                                                  ; +0x3d, 0x18001805d\nlea     rcx, [rbx-98h]                                                 ; +0x42, 0x180018062\ncall    cs:??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UEAA@XZ; std::ostream::~ostream<char,std::char_traits<char>>(void) ; +0x49, 0x180018069\nmov     rcx, rbx                                                       ; +0x4f, 0x18001806f\nadd     rsp, 20h                                                       ; +0x52, 0x180018072\npop     rbx                                                            ; +0x56, 0x180018076\njmp     cs:??1?$basic_ios@DU?$char_traits@D@std@@@std@@UEAA@XZ; std::ios::~ios<char,std::char_traits<char>>(void) ; +0x57, 0x180018077", "xrefs": ["sub_1800E6520 @ 0x1800e6527", "sub_1800E6700 @ 0x1800e6707", "<???> @ 0x18013bf52", "<???> @ 0x18013bfd4", "<???> @ 0x18013c747", "<???> @ 0x1801b8854"], "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"}