//
// ENGINE_get_pkey_asn1_meth_str from 0x7f88c4 to 0x7f8994 (208 bytes)
//
// 1 xrefs:
// > ??> @ 0x6263c
//
// 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_get_pkey_asn1_meth_str(int a1, char *a2, size_t a3)
{
int (__fastcall *v3)(int, _DWORD, int *, _DWORD); // r4
size_t v6; // r8
int v7; // r10
int v8; // r4
int v9; // r7
int v11; // [sp+0h] [bp-Ch] BYREF
int v12; // [sp+4h] [bp-8h] BYREF
v3 = *(int (__fastcall **)(int, _DWORD, int *, _DWORD))(a1 + 40);
if ( !v3 )
return 0;
v6 = a3;
if ( a3 == -1 )
v6 = strlen(a2);
v7 = v3(a1, 0, &v11, 0);
if ( v7 <= 0 )
return 0;
v8 = 0;
while ( 1 )
{
(*(void (__fastcall **)(int, int *, _DWORD, _DWORD))(a1 + 40))(a1, &v12, 0, *(_DWORD *)(v11 + 4 * v8));
v9 = v12;
++v8;
if ( strlen(*(const char **)(v12 + 12)) == v6 && !strncasecmp(*(const char **)(v12 + 12), a2, v6) )
break;
if ( v8 == v7 )
return 0;
}
return v9;
}