//
// OPENSSL_LH_new from 0xdb3410 to 0xdb34e8 (216 bytes)
//
// 13 xrefs:
// > SSL_load_client_CA_file @ 0xd3ae94
// > SSL_CTX_new @ 0xd41508
// > ERR_load_ERR_strings @ 0xd9f848
// > ERR_load_ERR_strings @ 0xd9f868
// > ERR_load_ERR_strings @ 0xd9f888
// > ERR_load_ERR_strings @ 0xd9f8a8
// > ERR_load_strings @ 0xd9f998
// > OBJ_NAME_init @ 0xdc10d4
// > OBJ_add_object @ 0xdc2084
// > TXT_DB_create_index @ 0xde1270
// > _CONF_new_data @ 0xe231e4
// > engine_table_register @ 0xe5e3b8
// > ??> @ 0x31500
//
// 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 OPENSSL_LH_new(
unsigned __int8 *(__fastcall *a1)(unsigned __int8 *result),
int (**a2)(const char *, const char *))
{
__int64 result; // x0
__int64 v5; // x19
__int64 v6; // x0
result = CRYPTO_zalloc(176, "crypto/lhash/lhash.c", 31);
v5 = result;
if ( result )
{
v6 = CRYPTO_zalloc(128, "crypto/lhash/lhash.c", 33);
*(_QWORD *)v5 = v6;
if ( v6 )
{
if ( !a2 )
a2 = &strcmp;
*(_QWORD *)(v5 + 8) = a2;
if ( !a1 )
a1 = OPENSSL_LH_strhash;
*(_DWORD *)(v5 + 24) = 8;
*(_DWORD *)(v5 + 36) = 8;
*(_QWORD *)(v5 + 40) = 512;
*(_QWORD *)(v5 + 16) = a1;
*(_DWORD *)(v5 + 28) = 16;
*(_QWORD *)(v5 + 48) = 256;
return v5;
}
else
{
CRYPTO_free(v5, "crypto/lhash/lhash.c", 45);
return 0;
}
}
return result;
}