//
// sub_10005B5E0 from 0x10005b5e0 to 0x10005b9a9 (969 bytes)
//
// 1 xrefs:
// > sub_10005C810 @ 0x10005c870
//
// 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
//
const char *__fastcall sub_10005B5E0(__int64 a1, char *a2, __int64 *a3)
{
char v5; // al
const char *v6; // r14
char v7; // cl
char *v8; // rdx
__int64 v9; // r12
__int64 v10; // rax
__int64 (__fastcall **v11)(); // rcx
__int64 v12; // rdx
char v13; // di
char v14; // dl
char *v15; // rcx
v5 = *a2;
if ( *a2 < 0 )
{
v6 = a2;
}
else
{
v6 = a2;
while ( (_DefaultRuneLocale.__runetype[(unsigned __int8)v5] & 0x4000) != 0 )
{
v5 = *++v6;
if ( v5 < 0 )
goto LABEL_8;
}
if ( !v5 )
return v6;
}
LABEL_8:
if ( v6 == "" )
{
LABEL_24:
v9 = a1 + 512;
v10 = sub_10005B9B0(a1 + 512);
*(_QWORD *)(v10 + 8) = a1;
*(_QWORD *)(v10 + 16) = 0;
*(_DWORD *)(v10 + 24) = 0;
*(_OWORD *)(v10 + 32) = 0;
*(_OWORD *)(v10 + 48) = 0;
*(_OWORD *)(v10 + 64) = 0;
v11 = off_100AB7B10;
LABEL_25:
*(_QWORD *)v10 = v11;
*(_QWORD *)(v10 + 80) = v9;
v6 += 2;
goto LABEL_47;
}
if ( v5 == 60 )
{
if ( v6[1] )
{
if ( v6[1] == 63 )
goto LABEL_24;
}
else if ( !asc_100A17E7F[1] )
{
goto LABEL_24;
}
}
if ( v6 == "
GD Web Decomp