//
// sub_140103A70 from 0x140103a70 to 0x140103ae9 (121 bytes)
//
// 8 xrefs:
// > sub_14010F940 @ 0x14010f956
// > sub_140691006 @ 0x14069100d
// > sub_1406A0010 @ 0x1406a0017
// > sub_1406CAB10 @ 0x1406cab17
// > ??> @ 0x1408959b4
// > ??> @ 0x1408abf7b
// > ??> @ 0x1408e77f8
// > ??> @ 0x140915998
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:26:43 +0000
//
__int64 __fastcall sub_140103A70(_QWORD *a1)
{
_QWORD *v1; // rdi
v1 = a1 + 19;
*(_QWORD *)((char *)v1 + *(int *)(*a1 + 4LL) - 152) = &std::basic_stringstream,std::allocator>::`vftable';
*(_DWORD *)((char *)v1 + *(int *)(*a1 + 4LL) - 156) = *(_DWORD *)(*a1 + 4LL) - 152;
a1[3] = &std::stringbuf::`vftable';
sub_14010FC00(a1 + 3);
std::streambuf::~streambuf>(v1 - 16);
std::iostream::~iostream>(v1 - 15);
return std::ios::~ios>(v1);
}