//
// sub_DFB7CC from 0xdfb7cc to 0xdfba28 (604 bytes)
//
// 2 xrefs:
// > sub_DFBA28 @ 0xdfbacc
// > X509_POLICY_NODE_print @ 0xdfc550
//
// 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_DFB7CC(__int64 a1, unsigned int *a2, int a3)
{
int v5; // w23
__int64 result; // x0
__int64 *v8; // x19
int v9; // w0
int v10; // s8
unsigned int **v11; // x21
__int64 v12; // d9
int v13; // w0
const char *v14; // x4
int v15; // w19
void *v16; // x20
__int64 v17; // x20
__int64 v18; // x0
v5 = 0;
result = OPENSSL_sk_num(a2);
if ( (int)result > 0 )
{
do
{
v8 = (__int64 *)OPENSSL_sk_value((__int64)a2, v5);
v9 = OBJ_obj2nid(*v8);
if ( v9 == 164 )
{
++v5;
BIO_printf(a1, "%*sCPS: %s\n", a3, &byte_F288A0, *(const char **)(v8[1] + 8));
}
else if ( v9 == 165 )
{
v10 = a3 + 2;
BIO_printf(a1, "%*sUser Notice:\n", a3, &byte_F288A0);
v11 = *(unsigned int ***)v8[1];
v12 = v8[1];
if ( v11 )
{
BIO_printf(a1, "%*sOrganization: %s\n", a3 + 2, &byte_F288A0, *((const char **)*v11 + 1));
v13 = OPENSSL_sk_num(v11[1]);
v14 = &byte_F288A0;
if ( v13 > 1 )
v14 = "s";
v15 = 0;
BIO_printf(a1, "%*sNumber%s: ", v10, &byte_F288A0, v14);
while ( v15 < (int)OPENSSL_sk_num(v11[1]) )
{
v17 = OPENSSL_sk_value((__int64)v11[1], v15);
if ( v15 )
BIO_puts(a1, (__int64)", ");
++v15;
v16 = (void *)i2s_ASN1_INTEGER(0, v17);
BIO_puts(a1, (__int64)v16);
CRYPTO_free(v16, (__int64)"crypto/x509v3/v3_cpols.c", 418);
}
BIO_puts(a1, (__int64)&byte_F1AB78);
}
v18 = *(_QWORD *)(v12 + 8);
if ( v18 )
BIO_printf(a1, "%*sExplicit Text: %s\n", v10, &byte_F288A0, *(const char **)(v18 + 8));
++v5;
}
else
{
++v5;
BIO_printf(a1, "%*sUnknown Qualifier: ", a3 + 2, &byte_F288A0);
i2a_ASN1_OBJECT(a1, *v8);
BIO_puts(a1, (__int64)&byte_F1AB78);
}
result = OPENSSL_sk_num(a2);
}
while ( v5 < (int)result );
}
return result;
}