//
// sub_1004C73A8 from 0x1004c73a8 to 0x1004c7414 (108 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
unsigned __int64 __fastcall sub_1004C73A8(unsigned __int64 result)
{
unsigned __int64 v1; // x8
char v2; // w9
unsigned __int8 *v3; // x8
unsigned int v4; // w10
int v5; // w11
unsigned int v6; // w9
unsigned int v7; // w12
unsigned int v8; // w13
int v9; // w11
unsigned int v10; // w11
int v11; // t1
if ( result )
{
v1 = result;
v2 = *(_BYTE *)result;
if ( *(_BYTE *)result )
{
LODWORD(result) = 0;
v3 = (unsigned __int8 *)(v1 + 1);
do
{
v4 = 16 * result;
v5 = v2;
v6 = (unsigned __int8)(v2 - 48);
v7 = v5 - 65;
v8 = v5 - 97;
v9 = 16 * result + v5;
if ( v8 <= 5 )
v4 = v9 - 87;
if ( v7 <= 5 )
v4 = v9 - 55;
v10 = v9 - 48;
if ( v6 <= 9 )
result = v10;
else
result = v4;
v11 = *v3++;
v2 = v11;
}
while ( v11 );
}
else
{
return 0;
}
}
return result;
}