//
// sub_DA7DF4 from 0xda7df4 to 0xda7e98 (164 bytes)
//
// 6 xrefs:
// > ??> @ 0x1124cf0
// > ??> @ 0x1124d48
// > ??> @ 0x1124da0
// > ??> @ 0x1124df8
// > ??> @ 0x1124e50
// > ??> @ 0x1124ea8
//
// 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_DA7DF4(__int64 a1, __int64 a2)
{
__int64 v4; // x20
__int64 v5; // x0
__int64 v7; // [xsp+38h] [xbp+38h]
int v8; // [xsp+4Ch] [xbp+4Ch] BYREF
if ( !a2 )
return 0;
v4 = 58;
EVP_CIPHER_CTX_ctrl(a1, 2, 0, &v8);
if ( v8 != 128 )
{
v4 = 120;
if ( v8 != 64 )
{
v4 = 160;
if ( v8 != 40 )
v4 = 0;
}
}
v7 = (unsigned int)EVP_CIPHER_CTX_iv_length(a1);
v5 = EVP_CIPHER_CTX_original_iv(a1);
return ASN1_TYPE_set_int_octetstring(a2, v4, v5, v7);
}