//
// sub_DFDA54 from 0xdfda54 to 0xdfdbe4 (400 bytes)
//
// 2 xrefs:
// > ??> @ 0x1225360
// > ??> @ 0x12253c8
//
// 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
//
_QWORD *__fastcall sub_DFDA54(__int64 a1, unsigned int *a2, __int64 a3)
{
int v6; // w20
__int64 v7; // x19
__int64 v8; // x3
__int64 v9; // x4
__int64 v10; // x5
__int64 v11; // x6
__int64 v12; // x7
__int64 v13; // x0
int v14; // w1
__int64 v15; // x22
int v16; // w19
unsigned __int64 v17; // x19
char *v18; // x0
char *v19; // x21
char v21[80]; // [xsp+60h] [xbp+60h] BYREF
v6 = 0;
while ( 1 )
{
if ( v6 >= (int)OPENSSL_sk_num(a2) )
{
if ( a3 )
return (_QWORD *)a3;
return OPENSSL_sk_new_null();
}
v7 = OPENSSL_sk_value((__int64)a2, v6);
v13 = i2v_GENERAL_NAME(a1, *(int **)(v7 + 8), a3, v8, v9, v10, v11, v12);
a3 = v13;
v14 = v6++;
if ( !v13 )
return OPENSSL_sk_new_null();
v15 = OPENSSL_sk_value(v13, v14);
i2t_ASN1_OBJECT((__int64)v21, 80, *(_QWORD *)v7);
v16 = strlen(v21);
v17 = (int)(strlen(*(const char **)(v15 + 8)) + v16 + 5);
v18 = (char *)CRYPTO_malloc((void *)v17, (__int64)"crypto/x509v3/v3_info.c", 78);
v19 = v18;
if ( !v18 )
break;
OPENSSL_strlcpy(v18, v21, v17);
OPENSSL_strlcat(v19, " - ", v17);
OPENSSL_strlcat(v19, *(const char **)(v15 + 8), v17);
CRYPTO_free(*(void **)(v15 + 8), (__int64)"crypto/x509v3/v3_info.c", 87);
*(_QWORD *)(v15 + 8) = v19;
}
ERR_put_error(34, 138, 65, (__int64)"crypto/x509v3/v3_info.c", 81);
return nullptr;
}