//
// sub_E0DB3C from 0xe0db3c to 0xe0dc68 (300 bytes)
//
// 2 xrefs:
// > ASN1_str2mask @ 0xe0e25c
// > ASN1_str2mask @ 0xe0e268
//
// 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 sub_E0DB3C(char *a1, int a2, _QWORD *a3)
{
int v4; // w20
char **v6; // x19
unsigned int v7; // w0
__int64 v9; // x1
v4 = a2;
if ( !a1 )
return 0;
if ( a2 == 3 )
{
if ( !strncmp(a1, "DIR", 3u) )
{
*a3 |= 0x2906uLL;
return 1;
}
}
else if ( a2 == -1 )
{
v4 = strlen(a1);
}
v6 = &off_1131B70;
qword_125F868 = (__int64)&off_1131B70;
while ( *((_DWORD *)v6 + 2) != v4 || strncmp(*v6, a1, v4) )
{
v6 += 2;
qword_125F868 = (__int64)v6;
if ( v6 == (char **)&unk_1131E80 )
return 0;
}
v7 = *((_DWORD *)v6 + 3);
if ( !v7 )
return 0;
if ( (v7 & 0x10000) != 0 )
return 0;
v9 = ASN1_tag2bit(v7);
if ( !v9 )
return 0;
*a3 |= v9;
return 1;
}