//
// X509V3_EXT_nconf_nid from 0x853f70 to 0x8540e0 (368 bytes)
//
// 2 xrefs:
// > X509V3_EXT_conf_nid @ 0x85459c
// > ??> @ 0x68bac
//
// 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
//
const char ***__fastcall X509V3_EXT_nconf_nid(int a1, int a2, unsigned int a3, char *a4)
{
char *v5; // r4
size_t v8; // r9
const char *v9; // r0
int v10; // t1
int v11; // r7
const char *v12; // r4
int v13; // r8
int v14; // t1
char *v15; // r0
v5 = a4;
v8 = strlen(a4);
if ( v8 <= 8 )
{
v11 = 0;
}
else
{
if ( strncmp(v5, "critical,", 9u) )
{
v11 = 0;
goto LABEL_7;
}
v9 = v5 + 9;
if ( (*(_BYTE *)(ctype_ + (unsigned __int8)v5[9] + 1) & 8) != 0 )
{
do
v10 = *(unsigned __int8 *)++v9;
while ( (*(_BYTE *)(ctype_ + v10 + 1) & 8) != 0 );
}
v5 = (char *)v9;
v11 = 1;
v8 = strlen(v9);
}
if ( v8 <= 3 )
return sub_8539DC(a1, a2, a3, v11, v5);
LABEL_7:
if ( !strncmp(v5, "DER:", 4u) )
{
v12 = v5 + 4;
v13 = 1;
}
else
{
if ( v8 == 4 || strncmp(v5, "ASN1:", 5u) )
return sub_8539DC(a1, a2, a3, v11, v5);
v12 = v5 + 5;
v13 = 2;
}
if ( (*(_BYTE *)(ctype_ + *(unsigned __int8 *)v12 + 1) & 8) != 0 )
{
do
v14 = *(unsigned __int8 *)++v12;
while ( (*(_BYTE *)(ctype_ + v14 + 1) & 8) != 0 );
}
v15 = OBJ_nid2sn(a3);
return sub_853810(v15, v12, v11, v13, a2);
}