//
// sub_DFC6D8 from 0xdfc6d8 to 0xdfc98c (692 bytes)
//
// 2 xrefs:
// > ??> @ 0x1224ff8
// > ??> @ 0x1225060
//
// 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_DFC6D8(__int64 a1, unsigned int *a2, __int64 a3, int a4)
{
int i; // w25
_QWORD *v8; // x0
__int64 v9; // x21
_QWORD *v10; // x28
int v11; // w20
__int64 v12; // x21
int v13; // w24
unsigned int *v14; // x20
int v15; // w20
unsigned int *v16; // x21
int v17; // w1
__int64 v18; // x0
unsigned int *v20; // x21
int v21; // w1
__int64 v22; // x0
__int64 v23; // [xsp+78h] [xbp+78h] BYREF
for ( i = 0; i < (int)OPENSSL_sk_num(a2); ++i )
{
BIO_puts(a3, (__int64)&byte_F1AB78);
v8 = (_QWORD *)OPENSSL_sk_value((__int64)a2, i);
v9 = *v8;
v10 = v8;
if ( *v8 )
{
v11 = *(_DWORD *)v9;
if ( *(_DWORD *)v9 )
{
v23 = *(_QWORD *)(v9 + 8);
BIO_printf(a3, "%*sRelative Name:\n%*s", a4, &byte_F288A0, a4 + 2, &byte_F288A0);
X509_NAME_print_ex(a3, (__int64)&v23, 0, 8520479);
BIO_puts(a3, (__int64)&byte_F1AB78);
}
else
{
BIO_printf(a3, "%*sFull Name:\n", a4, &byte_F288A0);
v20 = *(unsigned int **)(v9 + 8);
while ( v11 < (int)OPENSSL_sk_num(v20) )
{
BIO_printf(a3, "%*s", a4 + 2, &byte_F288A0);
v21 = v11++;
v22 = OPENSSL_sk_value((__int64)v20, v21);
GENERAL_NAME_print(a3, v22);
BIO_puts(a3, (__int64)&byte_F1AB78);
}
}
}
v12 = v10[1];
if ( v12 )
{
v13 = 1;
v14 = (unsigned int *)&unk_1131538;
BIO_printf(a3, "%*s%s:\n%*s", a4, &byte_F288A0, "Reasons", a4 + 2, &byte_F288A0);
do
{
if ( (unsigned int)ASN1_BIT_STRING_get_bit(v12, *v14) )
{
if ( !v13 )
BIO_puts(a3, (__int64)", ");
v13 = 0;
BIO_puts(a3, *((_QWORD *)v14 + 1));
}
v14 += 6;
}
while ( *((_QWORD *)v14 + 1) );
if ( v13 )
BIO_puts(a3, (__int64)"\n");
else
BIO_puts(a3, (__int64)&byte_F1AB78);
}
if ( v10[2] )
{
v15 = 0;
BIO_printf(a3, "%*sCRL Issuer:\n", a4, &byte_F288A0);
v16 = (unsigned int *)v10[2];
while ( v15 < (int)OPENSSL_sk_num(v16) )
{
BIO_printf(a3, "%*s", (unsigned int)(a4 + 2), &byte_F288A0);
v17 = v15++;
v18 = OPENSSL_sk_value((__int64)v16, v17);
GENERAL_NAME_print(a3, v18);
BIO_puts(a3, (__int64)&byte_F1AB78);
}
}
}
return 1;
}