{"type": "func", "start": 6442548160, "end": 6442548228, "name": "sub_180017BC0", "pseudocode": "// \n// sub_180017BC0 from 0x180017bc0 to 0x180017c04 (68 bytes)\n// \n// 3 xrefs:\n// > int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1800e0c17\n// > <???> @ 0x180133c39\n// > <???> @ 0x1801ae734\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// Hidden C++ exception states: #wind=1\n__int64 __fastcall sub_180017BC0(_QWORD *a1)\n{\n  __int64 result; // rax\n\n  if ( !std::uncaught_exception() )\n    std::ostream::_Osfx(*a1);\n  result = std::ios::rdbuf(*a1 + *(int *)(*(_QWORD *)*a1 + 4LL));\n  if ( result )\n    return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 16LL))(result);\n  return result;\n}", "assembly": "; \n; sub_180017BC0 from 0x180017bc0 to 0x180017c04 (68 bytes)\n; \n; 3 xrefs:\n; > int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1800e0c17\n; > <???> @ 0x180133c39\n; > <???> @ 0x1801ae734\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, 0x180017bc0\nsub     rsp, 20h                                                       ; +0x2, 0x180017bc2\nmov     rbx, rcx                                                       ; +0x6, 0x180017bc6\ncall    ?uncaught_exception@std@@YA_NXZ; std::uncaught_exception(void) ; +0x9, 0x180017bc9\ntest    al, al                                                         ; +0xe, 0x180017bce\njnz     short loc_180017BDC                                            ; +0x10, 0x180017bd0\nmov     rcx, [rbx]                                                     ; +0x12, 0x180017bd2\ncall    cs:?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ; std::ostream::_Osfx(void) ; +0x15, 0x180017bd5\nnop                                                                    ; +0x1b, 0x180017bdb\nmov     rdx, [rbx]                                                     ; +0x1c, 0x180017bdc\nmov     rax, [rdx]                                                     ; +0x1f, 0x180017bdf\nmovsxd  rcx, dword ptr [rax+4]                                         ; +0x22, 0x180017be2\nadd     rcx, rdx                                                       ; +0x26, 0x180017be6\ncall    cs:?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ; std::ios::rdbuf(void) ; +0x29, 0x180017be9\ntest    rax, rax                                                       ; +0x2f, 0x180017bef\njz      short loc_180017BFE                                            ; +0x32, 0x180017bf2\nmov     rdx, [rax]                                                     ; +0x34, 0x180017bf4\nmov     rcx, rax                                                       ; +0x37, 0x180017bf7\ncall    qword ptr [rdx+10h]                                            ; +0x3a, 0x180017bfa\nnop                                                                    ; +0x3d, 0x180017bfd\nadd     rsp, 20h                                                       ; +0x3e, 0x180017bfe\npop     rbx                                                            ; +0x42, 0x180017c02\nretn                                                                   ; +0x43, 0x180017c03", "xrefs": ["int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1800e0c17", "<???> @ 0x180133c39", "<???> @ 0x1801ae734"], "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"}