//
// PKCS7_get_issuer_and_serial from 0x827e1c to 0x827e7c (96 bytes)
//
// 1 xrefs:
// > ??> @ 0x65dfc
//
// 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 PKCS7_get_issuer_and_serial(int a1, int a2)
{
int v4; // r3
int v5; // r4
if ( OBJ_obj2nid(*(_DWORD *)(a1 + 16)) == (char *)&dword_18
&& (v4 = *(_DWORD *)(a1 + 20)) != 0
&& (v5 = *(_DWORD *)(v4 + 24)) != 0
&& a2 < OPENSSL_sk_num(*(_DWORD *)(v4 + 24)) )
{
return *(_DWORD *)(OPENSSL_sk_value(v5, a2) + 4);
}
else
{
return 0;
}
}