//
// sub_100096A30 from 0x100096a30 to 0x100096afb (203 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
//
__int64 __fastcall sub_100096A30(__int64 a1, int a2)
{
void *v3; // rdi
size_t v4; // r15
char *v5; // r13
char __str[208]; // [rsp+0h] [rbp-100h] BYREF
snprintf(__str, 0xC8u, "%u", a2);
if ( (*(_BYTE *)(a1 + 33) & 2) != 0 )
{
v3 = *(void **)(a1 + 40);
if ( v3 )
operator delete[](v3);
}
*(_DWORD *)(a1 + 32) = 0;
*(_OWORD *)(a1 + 40) = 0;
v4 = strlen(__str);
v5 = (char *)operator new[](v4 + 1);
*(_QWORD *)(a1 + 40) = v5;
memcpy(v5, __str, v4 + 1);
*(_QWORD *)(a1 + 48) = &v5[v4];
*(_DWORD *)(a1 + 32) = 512;
return __stack_chk_guard;
}