{"type": "func", "start": 6442547408, "end": 6442547615, "name": "sub_1800178D0", "pseudocode": "// \n// sub_1800178D0 from 0x1800178d0 to 0x18001799f (207 bytes)\n// \n// 12 xrefs:\n// > sub_180018350 @ 0x180018390\n// > sub_1800183C0 @ 0x180018400\n// > sub_180018680 @ 0x18001868f\n// > DS_Dictionary::copyFile @ 0x180019820\n// > DS_Dictionary::copyFile @ 0x180019865\n// > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x18001d8b0\n// > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x18001d8f8\n// > DS_Dictionary::saveRootSubDictToFile @ 0x18001dfce\n// > DS_Dictionary::saveRootSubDictToFile @ 0x18001e013\n// > sub_1800E0D80 @ 0x1800e0d8b\n// > int `Concurrency::agent::agent @ 0x1800e0deb\n// > <???> @ 0x1801ae6ec\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\n__int64 __fastcall sub_1800178D0(__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_180018A50(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_1801A8360;\n    *(_QWORD *)(a1 + 104) = 0;\n  }\n  return std::streambuf::~streambuf<char,std::char_traits<char>>(a1);\n}", "assembly": "; \n; sub_1800178D0 from 0x1800178d0 to 0x18001799f (207 bytes)\n; \n; 12 xrefs:\n; > sub_180018350 @ 0x180018390\n; > sub_1800183C0 @ 0x180018400\n; > sub_180018680 @ 0x18001868f\n; > DS_Dictionary::copyFile @ 0x180019820\n; > DS_Dictionary::copyFile @ 0x180019865\n; > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x18001d8b0\n; > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x18001d8f8\n; > DS_Dictionary::saveRootSubDictToFile @ 0x18001dfce\n; > DS_Dictionary::saveRootSubDictToFile @ 0x18001e013\n; > sub_1800E0D80 @ 0x1800e0d8b\n; > int `Concurrency::agent::agent @ 0x1800e0deb\n; > <???> @ 0x1801ae6ec\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\npush    rbx                                                            ; +0x0, 0x1800178d0\nsub     rsp, 20h                                                       ; +0x2, 0x1800178d2\nmov     rbx, rcx                                                       ; +0x6, 0x1800178d6\nlea     rax, ??_7?$basic_filebuf@DU?$char_traits@D@std@@@std@@6B@; const std::filebuf::`vftable' ; +0x9, 0x1800178d9\nmov     [rcx], rax                                                     ; +0x10, 0x1800178e0\ncmp     qword ptr [rcx+80h], 0                                         ; +0x13, 0x1800178e3\njz      short loc_180017916                                            ; +0x1b, 0x1800178eb\ncall    cs:?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ; std::streambuf::eback(void) ; +0x1d, 0x1800178ed\nlea     rdx, [rbx+70h]                                                 ; +0x23, 0x1800178f3\ncmp     rax, rdx                                                       ; +0x27, 0x1800178f7\njnz     short loc_180017916                                            ; +0x2a, 0x1800178fa\nmov     rdx, [rbx+88h]                                                 ; +0x2c, 0x1800178fc\nmov     r9, [rbx+90h]                                                  ; +0x33, 0x180017903\nmov     r8, rdx                                                        ; +0x3a, 0x18001790a\nmov     rcx, rbx                                                       ; +0x3d, 0x18001790d\ncall    cs:?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z; std::streambuf::setg(char *,char *,char *) ; +0x40, 0x180017910\ncmp     byte ptr [rbx+7Ch], 0                                          ; +0x46, 0x180017916\njz      short loc_180017990                                            ; +0x4a, 0x18001791a\ncmp     qword ptr [rbx+80h], 0                                         ; +0x4c, 0x18001791c\njz      short loc_180017967                                            ; +0x54, 0x180017924\nmov     rcx, rbx                                                       ; +0x56, 0x180017926\ncall    cs:?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ; std::streambuf::eback(void) ; +0x59, 0x180017929\nlea     rcx, [rbx+70h]                                                 ; +0x5f, 0x18001792f\ncmp     rax, rcx                                                       ; +0x63, 0x180017933\njnz     short loc_180017952                                            ; +0x66, 0x180017936\nmov     rdx, [rbx+88h]                                                 ; +0x68, 0x180017938\nmov     r9, [rbx+90h]                                                  ; +0x6f, 0x18001793f\nmov     r8, rdx                                                        ; +0x76, 0x180017946\nmov     rcx, rbx                                                       ; +0x79, 0x180017949\ncall    cs:?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z; std::streambuf::setg(char *,char *,char *) ; +0x7c, 0x18001794c\nmov     rcx, rbx                                                       ; +0x82, 0x180017952\ncall    sub_180018A50                                                  ; +0x85, 0x180017955\nmov     rcx, [rbx+80h]; Stream                                         ; +0x8a, 0x18001795a\ncall    cs:fclose                                                      ; +0x91, 0x180017961\nmov     byte ptr [rbx+7Ch], 0                                          ; +0x97, 0x180017967\nmov     byte ptr [rbx+71h], 0                                          ; +0x9b, 0x18001796b\nmov     rcx, rbx                                                       ; +0x9f, 0x18001796f\ncall    cs:?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXXZ; std::streambuf::_Init(void) ; +0xa2, 0x180017972\nxor     ecx, ecx                                                       ; +0xa8, 0x180017978\nmov     [rbx+80h], rcx                                                 ; +0xaa, 0x18001797a\nmov     rax, cs:qword_1801A8360                                        ; +0xb1, 0x180017981\nmov     [rbx+74h], rax                                                 ; +0xb8, 0x180017988\nmov     [rbx+68h], rcx                                                 ; +0xbc, 0x18001798c\nmov     rcx, rbx                                                       ; +0xc0, 0x180017990\nadd     rsp, 20h                                                       ; +0xc3, 0x180017993\npop     rbx                                                            ; +0xc7, 0x180017997\njmp     cs:__imp_??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UEAA@XZ; std::streambuf::~streambuf<char,std::char_traits<char>>(void) ; +0xc8, 0x180017998", "xrefs": ["sub_180018350 @ 0x180018390", "sub_1800183C0 @ 0x180018400", "sub_180018680 @ 0x18001868f", "DS_Dictionary::copyFile @ 0x180019820", "DS_Dictionary::copyFile @ 0x180019865", "DS_Dictionary::saveRootSubDictToCompressedFile @ 0x18001d8b0", "DS_Dictionary::saveRootSubDictToCompressedFile @ 0x18001d8f8", "DS_Dictionary::saveRootSubDictToFile @ 0x18001dfce", "DS_Dictionary::saveRootSubDictToFile @ 0x18001e013", "sub_1800E0D80 @ 0x1800e0d8b", "int `Concurrency::agent::agent @ 0x1800e0deb", "<???> @ 0x1801ae6ec"], "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"}