//
// sub_E1D63C from 0xe1d63c to 0xe1d6dc (160 bytes)
//
// 1 xrefs:
// > ??> @ 0x11326d8
//
// 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 sub_E1D63C(int a1, int **a2)
{
int *v3; // x1
int v4; // w0
__int64 *v5; // x19
if ( a1 == 2 )
{
v3 = *a2;
v4 = *v3;
if ( *v3 )
{
if ( v4 == 2 )
{
CRYPTO_clear_free(
*(_BYTE **)(*((_QWORD *)v3 + 1) + 32LL),
*(_QWORD *)(*((_QWORD *)v3 + 1) + 40LL),
(__int64)"crypto/cms/cms_asn1.c",
0xD2u);
}
else if ( v4 == 3 )
{
CRYPTO_clear_free(
*(_BYTE **)(*((_QWORD *)v3 + 1) + 32LL),
*(_QWORD *)(*((_QWORD *)v3 + 1) + 40LL),
(__int64)"crypto/cms/cms_asn1.c",
0xD5u);
}
}
else
{
v5 = *((__int64 **)v3 + 1);
EVP_PKEY_free(v5[5]);
X509_free(v5[4]);
EVP_PKEY_CTX_free(v5[6]);
}
}
return 1;
}