{"type": "func", "start": 6442542928, "end": 6442543210, "name": "sub_180016750", "pseudocode": "// \n// sub_180016750 from 0x180016750 to 0x18001686a (282 bytes)\n// \n// 5 xrefs:\n// > DS_Dictionary::copyFile @ 0x18001928e\n// > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x18001d85c\n// > DS_Dictionary::saveRootSubDictToFile @ 0x18001df6d\n// > <???> @ 0x1801b8608\n// > <???> @ 0x1801b8614\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:24 +0000\n// \n\n// Hidden C++ exception states: #wind=3\n__int64 __fastcall sub_180016750(__int64 a1, __int64 a2, int a3, unsigned int a4, int a5)\n{\n  if ( a5 )\n  {\n    *(_QWORD *)a1 = &unk_1800ED110;\n    std::ios::ios(a1 + 168);\n  }\n  std::ostream::ostream(a1, a1 + 8, 0, 0);\n  *(_QWORD *)(*(int *)(*(_QWORD *)a1 + 4LL) + a1) = &std::ofstream::`vftable';\n  *(_DWORD *)(*(int *)(*(_QWORD *)a1 + 4LL) + a1 - 4) = *(_DWORD *)(*(_QWORD *)a1 + 4LL) - 168;\n  std::streambuf::streambuf(a1 + 8);\n  *(_QWORD *)(a1 + 8) = &std::filebuf::`vftable';\n  *(_BYTE *)(a1 + 132) = 0;\n  *(_BYTE *)(a1 + 121) = 0;\n  std::streambuf::_Init(a1 + 8);\n  *(_QWORD *)(a1 + 136) = 0;\n  *(_QWORD *)(a1 + 124) = qword_1801B2388;\n  *(_QWORD *)(a1 + 112) = 0;\n  if ( !sub_18001C0E0(a1 + 8, a2, a3 | 2u, a4) )\n    std::ios::setstate(a1 + *(int *)(*(_QWORD *)a1 + 4LL), 2, 0);\n  return a1;\n}", "assembly": "; \n; sub_180016750 from 0x180016750 to 0x18001686a (282 bytes)\n; \n; 5 xrefs:\n; > DS_Dictionary::copyFile @ 0x18001928e\n; > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x18001d85c\n; > DS_Dictionary::saveRootSubDictToFile @ 0x18001df6d\n; > <???> @ 0x1801b8608\n; > <???> @ 0x1801b8614\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:24 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180016750\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x180016755\nmov     [rsp+arg_0], rcx                                               ; +0xa, 0x18001675a\npush    rsi                                                            ; +0xf, 0x18001675f\npush    rdi                                                            ; +0x10, 0x180016760\npush    r14                                                            ; +0x11, 0x180016761\nsub     rsp, 30h                                                       ; +0x13, 0x180016763\nmov     ebp, r9d                                                       ; +0x17, 0x180016767\nmov     esi, r8d                                                       ; +0x1a, 0x18001676a\nmov     r14, rdx                                                       ; +0x1d, 0x18001676d\nmov     rdi, rcx                                                       ; +0x20, 0x180016770\nmov     [rsp+48h+arg_10], 0                                            ; +0x23, 0x180016773\ncmp     [rsp+48h+arg_20], 0                                            ; +0x2b, 0x18001677b\njz      short loc_1800167A2                                            ; +0x30, 0x180016780\nlea     rax, unk_1800ED110                                             ; +0x32, 0x180016782\nmov     [rcx], rax                                                     ; +0x39, 0x180016789\nadd     rcx, 0A8h                                                      ; +0x3c, 0x18001678c\ncall    cs:??0?$basic_ios@DU?$char_traits@D@std@@@std@@IEAA@XZ; std::ios::ios(void) ; +0x43, 0x180016793\nnop                                                                    ; +0x49, 0x180016799\nmov     [rsp+48h+arg_10], 1                                            ; +0x4a, 0x18001679a\nxor     r9d, r9d                                                       ; +0x52, 0x1800167a2\nxor     r8d, r8d                                                       ; +0x55, 0x1800167a5\nlea     rdx, [rdi+8]                                                   ; +0x58, 0x1800167a8\nmov     rcx, rdi                                                       ; +0x5c, 0x1800167ac\ncall    cs:??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z; std::ostream::ostream(std::streambuf *,bool) ; +0x5f, 0x1800167af\nnop                                                                    ; +0x65, 0x1800167b5\nmov     rax, [rdi]                                                     ; +0x66, 0x1800167b6\nmovsxd  rcx, dword ptr [rax+4]                                         ; +0x69, 0x1800167b9\nlea     rax, ??_7?$basic_ofstream@DU?$char_traits@D@std@@@std@@6B@; const std::ofstream::`vftable' ; +0x6d, 0x1800167bd\nmov     [rcx+rdi], rax                                                 ; +0x74, 0x1800167c4\nmov     rax, [rdi]                                                     ; +0x78, 0x1800167c8\nmovsxd  rcx, dword ptr [rax+4]                                         ; +0x7b, 0x1800167cb\nlea     edx, [rcx-0A8h]                                                ; +0x7f, 0x1800167cf\nmov     [rcx+rdi-4], edx                                               ; +0x85, 0x1800167d5\nlea     rcx, [rdi+8]                                                   ; +0x89, 0x1800167d9\ncall    cs:??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@XZ; std::streambuf::streambuf(void) ; +0x8d, 0x1800167dd\nlea     rax, ??_7?$basic_filebuf@DU?$char_traits@D@std@@@std@@6B@; const std::filebuf::`vftable' ; +0x93, 0x1800167e3\nmov     [rdi+8], rax                                                   ; +0x9a, 0x1800167ea\nmov     byte ptr [rdi+84h], 0                                          ; +0x9e, 0x1800167ee\nmov     byte ptr [rdi+79h], 0                                          ; +0xa5, 0x1800167f5\nlea     rcx, [rdi+8]                                                   ; +0xa9, 0x1800167f9\ncall    cs:?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXXZ; std::streambuf::_Init(void) ; +0xad, 0x1800167fd\nmov     qword ptr [rdi+88h], 0                                         ; +0xb3, 0x180016803\nmov     rax, cs:qword_1801B2388                                        ; +0xbe, 0x18001680e\nmov     [rdi+7Ch], rax                                                 ; +0xc5, 0x180016815\nmov     qword ptr [rdi+70h], 0                                         ; +0xc9, 0x180016819\nor      esi, 2                                                         ; +0xd1, 0x180016821\nmov     r9d, ebp                                                       ; +0xd4, 0x180016824\nmov     r8d, esi                                                       ; +0xd7, 0x180016827\nmov     rdx, r14                                                       ; +0xda, 0x18001682a\nlea     rcx, [rdi+8]                                                   ; +0xdd, 0x18001682d\ncall    sub_18001C0E0                                                  ; +0xe1, 0x180016831\ntest    rax, rax                                                       ; +0xe6, 0x180016836\njnz     short loc_180016854                                            ; +0xe9, 0x180016839\nmov     rax, [rdi]                                                     ; +0xeb, 0x18001683b\nmovsxd  rcx, dword ptr [rax+4]                                         ; +0xee, 0x18001683e\nadd     rcx, rdi                                                       ; +0xf2, 0x180016842\nxor     r8d, r8d                                                       ; +0xf5, 0x180016845\nmov     edx, 2                                                         ; +0xf8, 0x180016848\ncall    cs:?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z; std::ios::setstate(int,bool) ; +0xfd, 0x18001684d\nnop                                                                    ; +0x103, 0x180016853\nmov     rax, rdi                                                       ; +0x104, 0x180016854\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x107, 0x180016857\nmov     rbp, [rsp+48h+arg_18]                                          ; +0x10c, 0x18001685c\nadd     rsp, 30h                                                       ; +0x111, 0x180016861\npop     r14                                                            ; +0x115, 0x180016865\npop     rdi                                                            ; +0x117, 0x180016867\npop     rsi                                                            ; +0x118, 0x180016868\nretn                                                                   ; +0x119, 0x180016869", "xrefs": ["DS_Dictionary::copyFile @ 0x18001928e", "DS_Dictionary::saveRootSubDictToCompressedFile @ 0x18001d85c", "DS_Dictionary::saveRootSubDictToFile @ 0x18001df6d", "<???> @ 0x1801b8608", "<???> @ 0x1801b8614"], "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"}