//
// sub_100096260 from 0x100096260 to 0x100096314 (180 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008b45f0
//
// 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
//
_QWORD *__fastcall sub_100096260(__int64 a1, __int64 a2)
{
__int64 v2; // r15
const char *v3; // r14
_QWORD *v4; // rbx
size_t v5; // r15
char *v6; // r13
v2 = a2;
if ( !a2 )
v2 = *(_QWORD *)(a1 + 8);
v3 = (const char *)sub_100093910((int *)(a1 + 24));
v4 = sub_1000945A0(v2 + 512);
v4[1] = v2;
v4[2] = 0;
*((_OWORD *)v4 + 3) = 0;
*((_OWORD *)v4 + 4) = 0;
*v4 = off_1008B4590;
v4[10] = v2 + 512;
*((_DWORD *)v4 + 6) = 0;
*((_OWORD *)v4 + 2) = 0;
v5 = strlen(v3);
v6 = (char *)operator new[](v5 + 1);
v4[4] = v6;
memcpy(v6, v3, v5 + 1);
v4[5] = &v6[v5];
*((_DWORD *)v4 + 6) = 512;
return v4;
}