//
// sub_8C4590 from 0x8c4590 to 0x8c45fc (108 bytes)
//
// 2 xrefs:
// > ??> @ 0xab56c0
// > ??> @ 0xab56f8
//
// 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_8C4590(int a1, _DWORD *a2, int *a3)
{
signed int v4; // r4
int v5; // r0
int v6; // r0
unsigned int v7; // r1
int *v10; // [sp+4h] [bp+0h] BYREF
char v11[84]; // [sp+8h] [bp+4h] BYREF
v10 = a3;
v4 = 0;
while ( 1 )
{
v6 = OPENSSL_sk_num((int)a2);
v7 = v4;
if ( v4++ >= v6 )
break;
v5 = OPENSSL_sk_value(a2, v7);
i2t_ASN1_OBJECT((int)v11, 80, v5);
X509V3_add_value(nullptr, v11, &v10);
}
return v10;
}