//
// sub_100562A54 from 0x100562a54 to 0x100562b00 (172 bytes)
//
// 3 xrefs:
// > sub_100550C00 @ 0x100550c28
// > sub_100552838 @ 0x100552870
// > sub_10057A79C @ 0x10057a7e0
//
// 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
//
char *__fastcall sub_100562A54(char *a1, __int64 a2)
{
void *v4; // [xsp+0h] [xbp-20h] BYREF
__int64 v5; // [xsp+8h] [xbp-18h]
__int64 v6; // [xsp+10h] [xbp-10h]
int v7; // [xsp+18h] [xbp-8h]
v7 = 0;
v5 = 0;
v6 = 0;
v4 = nullptr;
if ( (unsigned int)sub_1005614A8((__int64)&v4, (unsigned int (__fastcall *)(__int64, __int64))sub_10056298C, a1, a2) != -1
&& v7 == 0 )
{
if ( v6 )
{
*((_BYTE *)v4 + v5) = 0;
return (char *)v4;
}
else
{
return off_10085DEC8("");
}
}
else
{
if ( v6 )
off_10085DEB8(v4);
return nullptr;
}
}