//
// EVP_CipherFinal_ex from 0x802dfc to 0x802e10 (20 bytes)
//
// 4 xrefs:
// > sub_8B4BBC @ 0x8b4d68
// > sub_8B509C @ 0x8b5178
// > PKCS12_pbe_crypt @ 0x8bb7cc
// > ??> @ 0x6353c
//
// 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
//
int __fastcall EVP_CipherFinal_ex(_DWORD *a1, unsigned int a2, int *a3)
{
if ( a1[2] )
return EVP_EncryptFinal_ex(a1, a2, a3);
else
return EVP_DecryptFinal_ex(a1, a2, a3);
}