//
// sub_100096650 from 0x100096650 to 0x1000966cf (127 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
//
void *__fastcall sub_100096650(__int64 a1, const char *a2)
{
void *v3; // rdi
size_t v4; // r15
char *v5; // r13
void *result; // rax
if ( (*(_BYTE *)(a1 + 9) & 2) != 0 )
{
v3 = *(void **)(a1 + 16);
if ( v3 )
operator delete[](v3);
}
*(_DWORD *)(a1 + 8) = 0;
*(_OWORD *)(a1 + 16) = 0;
v4 = strlen(a2);
v5 = (char *)operator new[](v4 + 1);
*(_QWORD *)(a1 + 16) = v5;
result = memcpy(v5, a2, v4 + 1);
*(_QWORD *)(a1 + 24) = &v5[v4];
*(_DWORD *)(a1 + 8) = 512;
return result;
}