//
// sub_10040EA90 from 0x10040ea90 to 0x10040eaca (58 bytes)
//
// 0 xrefs:
//
// 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 12:30:08 +0000
//
std::string *__fastcall sub_10040EA90(std::string *this, unsigned __int8 *a2)
{
unsigned int v2; // edx
std::string::size_type v3; // rdx
const std::string::value_type *v4; // rsi
*(_WORD *)&this->__r_.__value_.__l.0 = 12546;
this->__r_.__value_.__s.__data_[1] = 0;
v2 = *a2;
if ( (v2 & 1) != 0 )
{
v3 = *((_QWORD *)a2 + 1);
v4 = *((const std::string::value_type **)a2 + 2);
}
else
{
v4 = (const std::string::value_type *)(a2 + 1);
v3 = v2 >> 1;
}
std::string::append(this, v4, v3);
return this;
}