//
// PKCS7_get_issuer_and_serial from 0xdcd594 to 0xdcd604 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0xc2400
//
// 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
//
__int64 __fastcall PKCS7_get_issuer_and_serial(__int64 a1, int a2)
{
__int64 v4; // x0
__int64 v5; // x19
if ( (unsigned int)OBJ_obj2nid(*(_QWORD *)(a1 + 24)) == 24
&& (v4 = *(_QWORD *)(a1 + 32)) != 0
&& (v5 = *(_QWORD *)(v4 + 48)) != 0
&& a2 < (int)OPENSSL_sk_num(*(_QWORD *)(v4 + 48)) )
{
return *(_QWORD *)(OPENSSL_sk_value(v5, (unsigned int)a2) + 8);
}
else
{
return 0;
}
}