//
// EVP_PKEY_verify_init from 0x805f78 to 0x805ff8 (128 bytes)
//
// 4 xrefs:
// > EVP_DigestVerifyInit @ 0x804800
// > EVP_VerifyFinal @ 0x805d08
// > CMS_SignerInfo_verify_content @ 0x877a40
// > ??> @ 0x639bc
//
// 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_PKEY_verify_init(int *a1)
{
int v2; // r3
int (*v3)(void); // r3
int result; // r0
if ( a1 && (v2 = *a1) != 0 && *(_DWORD *)(v2 + 48) )
{
v3 = *(int (**)(void))(v2 + 44);
a1[4] = 16;
if ( v3 )
{
result = v3();
if ( result <= 0 )
a1[4] = 0;
}
else
{
return 1;
}
}
else
{
ERR_put_error(6, 143, 150, (int)"crypto/evp/pmeth_fn.c", 72);
return -2;
}
return result;
}