//
// sub_1800A2A30 from 0x1800a2a30 to 0x1800a2a8b (91 bytes)
//
// 5 xrefs:
// > int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1800e30f7
// > sub_1800E31D0 @ 0x1800e31d7
// > ??> @ 0x18013f90b
// > ??> @ 0x18013f96d
// > ??> @ 0x1801b7a10
//
// 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
//
__int64 __fastcall sub_1800A2A30(__int64 a1)
{
__int64 v1; // rbx
v1 = a1 + 144;
*(_QWORD *)(*(int *)(*(_QWORD *)a1 + 4LL) + v1 - 144) = &std::istringstream::`vftable';
*(_DWORD *)(*(int *)(*(_QWORD *)a1 + 4LL) + v1 - 148) = *(_DWORD *)(*(_QWORD *)a1 + 4LL) - 144;
sub_1800179A0(a1 + 16);
std::istream::~istream>(v1 - 120);
return std::ios::~ios>(v1);
}