//
// sub_10005DF10 from 0x10005df10 to 0x10005dfdb (203 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:19:40 +0000
//
__int64 __fastcall sub_10005DF10(__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, "%d", 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;
}