//
// sub_1007AAF40 from 0x1007aaf40 to 0x1007ab054 (276 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
//
bool sub_1007AAF40(__int64 a1, const char *a2, ...)
{
char *v2; // rax
std::string::value_type *v3; // r15
va_list va; // [rsp+B0h] [rbp-40h] BYREF
if ( (*(_BYTE *)(a1 + 56) & 1) != 0 )
{
**(_BYTE **)(a1 + 72) = 0;
*(_QWORD *)(a1 + 64) = 0;
}
else
{
*(_WORD *)(a1 + 56) = 0;
}
va_start(va, a2);
v2 = (char *)malloc(0x19000u);
v3 = v2;
if ( v2 )
{
vsnprintf(v2, 0x19000u, a2, va);
std::string::assign((std::string *)(a1 + 56), v3);
free(v3);
}
return v3 != nullptr;
}