//
// sub_10005D400 from 0x10005d400 to 0x10005d4b0 (176 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
//
_QWORD *__fastcall sub_10005D400(__int64 a1, const char *a2)
{
_QWORD *v2; // rbx
const char *v3; // r15
size_t v4; // r14
char *v5; // r13
v2 = sub_10005B9B0(a1 + 512);
v2[1] = a1;
v2[2] = 0;
*((_OWORD *)v2 + 3) = 0;
*((_OWORD *)v2 + 4) = 0;
*v2 = off_100AB7B10;
v2[10] = a1 + 512;
v3 = "xml version=\"1.0\" encoding=\"UTF-8\"";
if ( a2 )
v3 = a2;
*((_DWORD *)v2 + 6) = 0;
*((_OWORD *)v2 + 2) = 0;
v4 = strlen(v3);
v5 = (char *)operator new[](v4 + 1);
v2[4] = v5;
memcpy(v5, v3, v4 + 1);
v2[5] = &v5[v4];
*((_DWORD *)v2 + 6) = 512;
return v2;
}