//
// sub_10005ABD0 from 0x10005abd0 to 0x10005ac7f (175 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:39 +0000
//
char *__fastcall sub_10005ABD0(__int64 a1, char *a2)
{
char v2; // dl
char *result; // rax
char *v4; // r14
if ( !a2 )
return nullptr;
v2 = *a2;
if ( !*a2 )
return nullptr;
result = a2;
do
{
if ( v2 >= 0
&& (_DefaultRuneLocale.__runetype[(unsigned __int8)v2] & 0x500) == 0
&& v2 != 95
&& v2 != 58
&& (v2 != 45 && v2 != 46 || result <= a2) )
{
break;
}
v2 = *++result;
}
while ( v2 );
if ( result <= a2 )
return nullptr;
if ( (*(_BYTE *)(a1 + 1) & 2) != 0 )
{
if ( *(_QWORD *)(a1 + 8) )
{
v4 = result;
operator delete[](*(void **)(a1 + 8));
result = v4;
}
}
*(_QWORD *)(a1 + 8) = a2;
*(_QWORD *)(a1 + 16) = result;
*(_DWORD *)a1 = 256;
return result;
}