//
// sub_8C3F00 from 0x8c3f00 to 0x8c3fc0 (192 bytes)
//
// 1 xrefs:
// > ??> @ 0xab556c
//
// 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_8C3F00(int a1, int *a2, int *a3)
{
int v3; // r3
bool v4; // zf
char *v6; // r5
_DWORD *v7; // r1
int v8; // r3
char *v9; // r4
int *v11[2]; // [sp+4h] [bp-8h] BYREF
v3 = *a2;
v4 = *a2 == 0;
v11[0] = a3;
if ( !v4 )
{
v6 = OPENSSL_buf2hexstr(*(unsigned __int8 **)(v3 + 8), *(_DWORD *)v3);
X509V3_add_value("keyid", v6, v11);
CRYPTO_free(v6, (int)"crypto/x509v3/v3_akey.c", 46);
}
v7 = (_DWORD *)a2[1];
if ( v7 )
v11[0] = i2v_GENERAL_NAMES(0, v7, (int)v11[0]);
v8 = a2[2];
if ( v8 )
{
v9 = OPENSSL_buf2hexstr(*(unsigned __int8 **)(v8 + 8), *(_DWORD *)v8);
X509V3_add_value("serial", v9, v11);
CRYPTO_free(v9, (int)"crypto/x509v3/v3_akey.c", 53);
}
return v11[0];
}