//
// EVP_PBE_alg_add_type from 0xe61924 to 0xe61a38 (276 bytes)
//
// 3 xrefs:
// > EVP_PBE_alg_add @ 0xe61a94
// > EVP_PBE_alg_add @ 0xe61abc
// > ??> @ 0x31608
//
// 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 EVP_PBE_alg_add_type(unsigned int a1, unsigned int a2, unsigned int a3, unsigned int a4, __int64 a5)
{
_QWORD *v10; // x0
_QWORD *v11; // x19
__int64 v12; // x1
int *v13; // x0
__int128 v15; // [xsp+60h] [xbp+60h]
if ( qword_125F920 || (qword_125F920 = (__int64)OPENSSL_sk_new((__int64)sub_E618EC)) != 0 )
{
v10 = CRYPTO_malloc(&off_18, (__int64)"crypto/evp/evp_pbe.c", 167);
v11 = v10;
if ( v10 )
{
*(_QWORD *)&v15 = __PAIR64__(a2, a1);
v12 = (__int64)v10;
*((_QWORD *)&v15 + 1) = __PAIR64__(a4, a3);
v13 = (int *)qword_125F920;
v11[2] = a5;
*(_OWORD *)v11 = v15;
if ( (unsigned int)OPENSSL_sk_push(v13, v12) )
return 1;
CRYPTO_free(v11, (__int64)"crypto/evp/evp_pbe.c", 177);
}
}
ERR_put_error(6, 160, 65, (__int64)"crypto/evp/evp_pbe.c", 183);
return 0;
}