//
// sub_100421E20 from 0x100421e20 to 0x100421e5a (58 bytes)
//
// 0 xrefs:
//
// 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
//
std::string *__fastcall sub_100421E20(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;
}