//
// sub_180017BC0 from 0x180017bc0 to 0x180017c04 (68 bytes)
//
// 3 xrefs:
// > int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1800e0c17
// > ??> @ 0x180133c39
// > ??> @ 0x1801ae734
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall sub_180017BC0(_QWORD *a1)
{
__int64 result; // rax
if ( !std::uncaught_exception() )
std::ostream::_Osfx(*a1);
result = std::ios::rdbuf(*a1 + *(int *)(*(_QWORD *)*a1 + 4LL));
if ( result )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 16LL))(result);
return result;
}