//
// ENGINE_pkey_asn1_find_str from 0x7f8994 to 0x7f8a74 (224 bytes)
//
// 2 xrefs:
// > EVP_PKEY_asn1_find_str @ 0x7c21e0
// > ??> @ 0x5e5ec
//
// 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 ENGINE_pkey_asn1_find_str(_DWORD *a1, int a2, int a3)
{
int v4; // r3
int v6; // [sp+8h] [bp-14h] BYREF
int v7; // [sp+Ch] [bp-10h]
int v8; // [sp+10h] [bp-Ch]
int v9; // [sp+14h] [bp-8h]
v8 = a2;
v9 = a3;
v6 = 0;
v7 = 0;
if ( CRYPTO_THREAD_run_once(&engine_lock_init, do_engine_lock_init_ossl_) && do_engine_lock_init_ossl_ret_ )
{
CRYPTO_THREAD_write_lock(global_engine_lock);
engine_table_doall(dword_AD2E8C, sub_7F85C8, &v6);
v4 = v6;
if ( v6 )
++*(_DWORD *)(v6 + 80);
*a1 = v4;
CRYPTO_THREAD_unlock(global_engine_lock);
return v7;
}
else
{
ERR_put_error(38, 197, 65, "crypto/engine/tb_asnmth.c", 193);
return 0;
}
}