//
// ASN1_STRING_set_default_mask_asc from 0xe0c558 to 0xe0c634 (220 bytes)
//
// 1 xrefs:
// > ??> @ 0x8d2a0
//
// 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
//
__int64 __fastcall ASN1_STRING_set_default_mask_asc(const char *a1)
{
unsigned __int64 v3; // x0
char *v4; // [xsp+28h] [xbp+28h] BYREF
if ( !strncmp(a1, "MASK:", 5u) )
{
if ( !a1[5] )
return 0;
v3 = strtoul(a1 + 5, &v4, 0);
if ( *v4 )
return 0;
}
else if ( !strcmp(a1, "nombstr") )
{
v3 = -10241;
}
else if ( !strcmp(a1, "pkix") )
{
v3 = -5;
}
else if ( !strcmp(a1, "utf8only") )
{
v3 = 0x2000;
}
else
{
if ( strcmp(a1, "default") )
return 0;
v3 = 0xFFFFFFFFLL;
}
ASN1_STRING_set_default_mask(v3);
return 1;
}