//
// sub_E702EC from 0xe702ec to 0xe70368 (124 bytes)
//
// 2 xrefs:
// > ??> @ 0x1227d58
// > ??> @ 0x1227dc0
//
// 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_E702EC(__int64 a1, unsigned int *a2, int *a3)
{
int v4; // w19
__int64 v5; // x0
bool v6; // cc
int v7; // w1
int *v9; // [xsp+38h] [xbp+38h] BYREF
char v10[80]; // [xsp+40h] [xbp+40h] BYREF
v9 = a3;
v4 = 0;
while ( 1 )
{
v6 = v4 < (int)OPENSSL_sk_num(a2);
v7 = v4++;
if ( !v6 )
break;
v5 = OPENSSL_sk_value((__int64)a2, v7);
i2t_ASN1_OBJECT((__int64)v10, 80, v5);
X509V3_add_value(nullptr, v10, &v9);
}
return v9;
}