//
// sub_8C446C from 0x8c446c to 0x8c4578 (268 bytes)
//
// 2 xrefs:
// > ??> @ 0xab56c4
// > ??> @ 0xab56fc
//
// 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
//
int *__fastcall sub_8C446C(int a1, int a2, _DWORD *a3)
{
int *v4; // r8
signed int v5; // r4
int v6; // r0
_DWORD *v7; // r5
char *v8; // r0
char **v9; // r7
v4 = OPENSSL_sk_new_null();
if ( v4 )
{
v5 = 0;
while ( 1 )
{
if ( v5 >= OPENSSL_sk_num((int)a3) )
return v4;
v6 = OPENSSL_sk_value(a3, v5++);
v7 = (_DWORD *)v6;
v8 = *(char **)(v6 + 8);
if ( !v8 )
v8 = (char *)v7[1];
v9 = OBJ_txt2obj(v8, 0);
if ( !v9 )
break;
OPENSSL_sk_push(v4, (int)v9);
}
OPENSSL_sk_pop_free((int)v4, (void (__fastcall *)(int))ASN1_OBJECT_free);
ERR_put_error(34, 103, 110, (int)"crypto/x509v3/v3_extku.c", 93);
ERR_add_error_data(6, "section:", *v7, ",name:", v7[1], ",value:", v7[2]);
return nullptr;
}
else
{
ERR_put_error(34, 103, 65, (int)"crypto/x509v3/v3_extku.c", 80);
return nullptr;
}
}