//
// EVP_PBE_alg_add from 0xe61a38 to 0xe61ac0 (136 bytes)
//
// 1 xrefs:
// > ??> @ 0x3d7b8
//
// 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(unsigned int a1, unsigned int *a2, unsigned int *a3, __int64 a4)
{
unsigned int v7; // w2
unsigned int v8; // w3
unsigned int v9; // w1
__int64 v10; // x4
unsigned int v12; // [xsp+38h] [xbp+38h]
if ( !a2 )
{
v7 = -1;
if ( a3 )
goto LABEL_3;
LABEL_6:
v9 = a1;
v10 = a4;
v8 = -1;
return EVP_PBE_alg_add_type(0, v9, v7, v8, v10);
}
v7 = EVP_CIPHER_nid(a2);
if ( !a3 )
goto LABEL_6;
LABEL_3:
v12 = v7;
v8 = EVP_MD_type(a3);
v7 = v12;
v9 = a1;
v10 = a4;
return EVP_PBE_alg_add_type(0, v9, v7, v8, v10);
}