//
// EVP_DecodeFinal from 0xe613d8 to 0xe6144c (116 bytes)
//
// 2 xrefs:
// > PEM_read_bio @ 0xdc8498
// > ??> @ 0x3a680
//
// 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_DecodeFinal(__int64 a1, __int64 a2, _DWORD *a3)
{
unsigned int v3; // w21
int v7; // w0
v3 = 1;
*a3 = 0;
if ( !*(_DWORD *)a1 )
return v3;
v7 = EVP_DecodeBlock(a2, (unsigned __int8 *)(a1 + 8), *(_DWORD *)a1);
if ( v7 < 0 )
return (unsigned int)-1;
*(_DWORD *)a1 = 0;
*a3 = v7;
return 1;
}