//
// sub_E1D4B4 from 0xe1d4b4 to 0xe1d530 (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x1132818
//
// 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_E1D4B4(unsigned int a1, __int64 *a2)
{
unsigned int v2; // w19
__int64 v3; // x20
__int64 v5; // x0
v2 = a1;
v3 = *a2;
if ( a1 == 1 )
{
v5 = EVP_CIPHER_CTX_new();
*(_QWORD *)(v3 + 48) = v5;
if ( v5 )
{
EVP_CIPHER_CTX_set_flags(v5, 1);
*(_QWORD *)(v3 + 40) = 0;
}
else
{
return 0;
}
return v2;
}
v2 = 1;
if ( a1 != 3 )
return v2;
EVP_PKEY_CTX_free(*(_QWORD *)(v3 + 40));
EVP_CIPHER_CTX_free(*(__int64 **)(v3 + 48));
return 1;
}