//
// OBJ_NAME_get from 0x81ba44 to 0x81bb08 (196 bytes)
//
// 3 xrefs:
// > EVP_get_cipherbyname @ 0x804d34
// > EVP_get_digestbyname @ 0x804d64
// > ??> @ 0x639ec
//
// 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 OBJ_NAME_get(int a1, int a2)
{
int v3; // r0
unsigned int v5; // r3
int v6; // r5
int v7; // r4
int v8; // r3
int v9; // r0
_BOOL4 v10; // r3
unsigned int v12; // [sp+0h] [bp-28h] BYREF
int v13; // [sp+8h] [bp-20h]
if ( a1 )
{
v3 = dword_AD4508;
if ( !dword_AD4508 )
{
if ( !OBJ_NAME_init() )
return 0;
v3 = dword_AD4508;
}
v5 = a2 & 0xFFFF7FFF;
v6 = a2 & 0x8000;
v7 = 11;
v13 = a1;
v12 = v5;
while ( 1 )
{
v9 = OPENSSL_LH_retrieve(v3, (int)&v12);
if ( !v9 )
break;
v10 = v6 == 0;
if ( !*(_DWORD *)(v9 + 4) )
v10 = 0;
if ( !v10 )
return *(_DWORD *)(v9 + 12);
if ( !--v7 )
return 0;
v8 = *(_DWORD *)(v9 + 12);
v3 = dword_AD4508;
v13 = v8;
}
return 0;
}
return 0;
}