//
// sub_10005D5E0 from 0x10005d5e0 to 0x10005d66f (143 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ab7c28
//
// 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
//
char *__fastcall sub_10005D5E0(__int64 a1, char *a2)
{
char v2; // cl
char *result; // rax
__int64 v4; // rax
char *v5; // rbx
char *v6; // r12
v2 = *a2;
if ( *a2 )
{
result = a2 + 1;
while ( v2 != 62 )
{
v2 = *result++;
if ( !v2 )
goto LABEL_5;
}
v5 = result - 1;
if ( (*(_BYTE *)(a1 + 25) & 2) != 0 )
{
if ( *(_QWORD *)(a1 + 32) )
{
v6 = result;
operator delete[](*(void **)(a1 + 32));
result = v6;
}
}
*(_QWORD *)(a1 + 32) = a2;
*(_QWORD *)(a1 + 40) = v5;
*(_DWORD *)(a1 + 24) = 258;
}
else
{
LABEL_5:
v4 = *(_QWORD *)(a1 + 8);
*(_DWORD *)(v4 + 92) = 14;
*(_QWORD *)(v4 + 104) = a2;
*(_QWORD *)(v4 + 112) = 0;
return nullptr;
}
return result;
}