{"type": "func", "start": 6442546192, "end": 6442546399, "name": "sub_180017410", "pseudocode": "// \n// sub_180017410 from 0x180017410 to 0x1800174df (207 bytes)\n// \n// 14 xrefs:\n// > sub_180017FC0 @ 0x180017ffd\n// > sub_180018020 @ 0x18001805d\n// > sub_1800182D0 @ 0x1800182df\n// > sub_180018310 @ 0x18001835b\n// > sub_1800183A0 @ 0x1800183eb\n// > DS_Dictionary::copyFile @ 0x18001939d\n// > DS_Dictionary::copyFile @ 0x1800193e2\n// > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x18001d96d\n// > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x18001d9b5\n// > DS_Dictionary::saveRootSubDictToFile @ 0x18001e07c\n// > DS_Dictionary::saveRootSubDictToFile @ 0x18001e0c1\n// > sub_1800E63F0 @ 0x1800e63fb\n// > int `Concurrency::agent::agent @ 0x1800e645b\n// > <???> @ 0x1801b8740\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_180017410(__int64 a1)\n{\n  *(_QWORD *)a1 = &std::filebuf::`vftable';\n  if ( *(_QWORD *)(a1 + 128) && ((__int64 (*)(void))std::streambuf::eback)() == a1 + 112 )\n    std::streambuf::setg(a1, *(_QWORD *)(a1 + 136), *(_QWORD *)(a1 + 136), *(_QWORD *)(a1 + 144));\n  if ( *(_BYTE *)(a1 + 124) )\n  {\n    if ( *(_QWORD *)(a1 + 128) )\n    {\n      if ( std::streambuf::eback(a1) == a1 + 112 )\n        std::streambuf::setg(a1, *(_QWORD *)(a1 + 136), *(_QWORD *)(a1 + 136), *(_QWORD *)(a1 + 144));\n      sub_180018740(a1);\n      fclose(*(FILE **)(a1 + 128));\n    }\n    *(_BYTE *)(a1 + 124) = 0;\n    *(_BYTE *)(a1 + 113) = 0;\n    std::streambuf::_Init(a1);\n    *(_QWORD *)(a1 + 128) = 0;\n    *(_QWORD *)(a1 + 116) = qword_1801B2388;\n    *(_QWORD *)(a1 + 104) = 0;\n  }\n  return std::streambuf::~streambuf<char,std::char_traits<char>>(a1);\n}", "assembly": "; \n; sub_180017410 from 0x180017410 to 0x1800174df (207 bytes)\n; \n; 14 xrefs:\n; > sub_180017FC0 @ 0x180017ffd\n; > sub_180018020 @ 0x18001805d\n; > sub_1800182D0 @ 0x1800182df\n; > sub_180018310 @ 0x18001835b\n; > sub_1800183A0 @ 0x1800183eb\n; > DS_Dictionary::copyFile @ 0x18001939d\n; > DS_Dictionary::copyFile @ 0x1800193e2\n; > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x18001d96d\n; > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x18001d9b5\n; > DS_Dictionary::saveRootSubDictToFile @ 0x18001e07c\n; > DS_Dictionary::saveRootSubDictToFile @ 0x18001e0c1\n; > sub_1800E63F0 @ 0x1800e63fb\n; > int `Concurrency::agent::agent @ 0x1800e645b\n; > <???> @ 0x1801b8740\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, 0x180017410\nsub     rsp, 20h                                                       ; +0x2, 0x180017412\nmov     rbx, rcx                                                       ; +0x6, 0x180017416\nlea     rax, ??_7?$basic_filebuf@DU?$char_traits@D@std@@@std@@6B@; const std::filebuf::`vftable' ; +0x9, 0x180017419\nmov     [rcx], rax                                                     ; +0x10, 0x180017420\ncmp     qword ptr [rcx+80h], 0                                         ; +0x13, 0x180017423\njz      short loc_180017456                                            ; +0x1b, 0x18001742b\ncall    cs:?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ; std::streambuf::eback(void) ; +0x1d, 0x18001742d\nlea     rdx, [rbx+70h]                                                 ; +0x23, 0x180017433\ncmp     rax, rdx                                                       ; +0x27, 0x180017437\njnz     short loc_180017456                                            ; +0x2a, 0x18001743a\nmov     rdx, [rbx+88h]                                                 ; +0x2c, 0x18001743c\nmov     r9, [rbx+90h]                                                  ; +0x33, 0x180017443\nmov     r8, rdx                                                        ; +0x3a, 0x18001744a\nmov     rcx, rbx                                                       ; +0x3d, 0x18001744d\ncall    cs:?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z; std::streambuf::setg(char *,char *,char *) ; +0x40, 0x180017450\ncmp     byte ptr [rbx+7Ch], 0                                          ; +0x46, 0x180017456\njz      short loc_1800174D0                                            ; +0x4a, 0x18001745a\ncmp     qword ptr [rbx+80h], 0                                         ; +0x4c, 0x18001745c\njz      short loc_1800174A7                                            ; +0x54, 0x180017464\nmov     rcx, rbx                                                       ; +0x56, 0x180017466\ncall    cs:?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ; std::streambuf::eback(void) ; +0x59, 0x180017469\nlea     rcx, [rbx+70h]                                                 ; +0x5f, 0x18001746f\ncmp     rax, rcx                                                       ; +0x63, 0x180017473\njnz     short loc_180017492                                            ; +0x66, 0x180017476\nmov     rdx, [rbx+88h]                                                 ; +0x68, 0x180017478\nmov     r9, [rbx+90h]                                                  ; +0x6f, 0x18001747f\nmov     r8, rdx                                                        ; +0x76, 0x180017486\nmov     rcx, rbx                                                       ; +0x79, 0x180017489\ncall    cs:?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z; std::streambuf::setg(char *,char *,char *) ; +0x7c, 0x18001748c\nmov     rcx, rbx                                                       ; +0x82, 0x180017492\ncall    sub_180018740                                                  ; +0x85, 0x180017495\nmov     rcx, [rbx+80h]; Stream                                         ; +0x8a, 0x18001749a\ncall    cs:fclose                                                      ; +0x91, 0x1800174a1\nmov     byte ptr [rbx+7Ch], 0                                          ; +0x97, 0x1800174a7\nmov     byte ptr [rbx+71h], 0                                          ; +0x9b, 0x1800174ab\nmov     rcx, rbx                                                       ; +0x9f, 0x1800174af\ncall    cs:?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXXZ; std::streambuf::_Init(void) ; +0xa2, 0x1800174b2\nxor     ecx, ecx                                                       ; +0xa8, 0x1800174b8\nmov     [rbx+80h], rcx                                                 ; +0xaa, 0x1800174ba\nmov     rax, cs:qword_1801B2388                                        ; +0xb1, 0x1800174c1\nmov     [rbx+74h], rax                                                 ; +0xb8, 0x1800174c8\nmov     [rbx+68h], rcx                                                 ; +0xbc, 0x1800174cc\nmov     rcx, rbx                                                       ; +0xc0, 0x1800174d0\nadd     rsp, 20h                                                       ; +0xc3, 0x1800174d3\npop     rbx                                                            ; +0xc7, 0x1800174d7\njmp     cs:__imp_??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UEAA@XZ; std::streambuf::~streambuf<char,std::char_traits<char>>(void) ; +0xc8, 0x1800174d8", "xrefs": ["sub_180017FC0 @ 0x180017ffd", "sub_180018020 @ 0x18001805d", "sub_1800182D0 @ 0x1800182df", "sub_180018310 @ 0x18001835b", "sub_1800183A0 @ 0x1800183eb", "DS_Dictionary::copyFile @ 0x18001939d", "DS_Dictionary::copyFile @ 0x1800193e2", "DS_Dictionary::saveRootSubDictToCompressedFile @ 0x18001d96d", "DS_Dictionary::saveRootSubDictToCompressedFile @ 0x18001d9b5", "DS_Dictionary::saveRootSubDictToFile @ 0x18001e07c", "DS_Dictionary::saveRootSubDictToFile @ 0x18001e0c1", "sub_1800E63F0 @ 0x1800e63fb", "int `Concurrency::agent::agent @ 0x1800e645b", "<???> @ 0x1801b8740"], "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"}