//
// sub_2B421C from 0x2b421c to 0x2b4258 (60 bytes)
//
// 3 xrefs:
// > sub_62160C @ 0x62211e
// > sub_62160C @ 0x622590
// > sub_62160C @ 0x6233c4
//
// 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
//
size_t __fastcall sub_2B421C(int a1, const char **a2, const char **a3)
{
const char *v4; // r4
size_t result; // r0
int v7; // r3
char v8; // r2
int v9; // t1
v4 = *a2;
*a3 = *a2;
result = strlen(v4);
if ( result )
{
if ( v4[result - 1] == 46 )
v4[result - 1] = 0;
}
v7 = (int)(*a2 - 1);
while ( 1 )
{
v9 = *(unsigned __int8 *)++v7;
v8 = v9;
if ( !v9 )
break;
if ( v8 < 0 )
return sub_61807C(a1, "IDN support not present, can't parse Unicode domains\n");
}
return result;
}