//
// sub_1401411E0 from 0x1401411e0 to 0x14014123b (91 bytes)
//
// 5 xrefs:
// > sub_1404EDA90 @ 0x1404eda97
// > sub_140512050 @ 0x140512057
// > ??> @ 0x140675e6f
// > ??> @ 0x1406a7030
// > ??> @ 0x1406ca314
//
// 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_1401411E0(__int64 a1)
{
__int64 v1; // rbx
v1 = a1 + 152;
*(_QWORD *)(*(int *)(*(_QWORD *)a1 + 4LL) + v1 - 152) = &std::basic_stringstream,std::allocator>::`vftable';
*(_DWORD *)(*(int *)(*(_QWORD *)a1 + 4LL) + v1 - 156) = *(_DWORD *)(*(_QWORD *)a1 + 4LL) - 152;
sub_140178A10(a1 + 24);
std::iostream::~iostream>(v1 - 120);
return std::ios::~ios>(v1);
}