//
// OPENSSL_LH_new from 0x80c298 to 0x80c360 (200 bytes)
//
// 13 xrefs:
// > SSL_load_client_CA_file @ 0x791ce4
// > SSL_CTX_new @ 0x798974
// > ERR_load_ERR_strings @ 0x7f9a10
// > ERR_load_ERR_strings @ 0x7f9a34
// > ERR_load_ERR_strings @ 0x7f9a58
// > ERR_load_ERR_strings @ 0x7f9a7c
// > ERR_load_strings @ 0x7f9bc0
// > OBJ_NAME_init @ 0x81b840
// > OBJ_add_object @ 0x81c398
// > TXT_DB_create_index @ 0x8392cc
// > _CONF_new_data @ 0x878988
// > engine_table_register @ 0x8b4568
// > ??> @ 0x5b3fc
//
// 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 OPENSSL_LH_new(
unsigned __int8 *(__fastcall *a1)(unsigned __int8 *result),
int (**a2)(const char *, const char *))
{
int *v4; // r4
int v5; // r8
v4 = (int *)CRYPTO_zalloc(96, "crypto/lhash/lhash.c", 31);
if ( !v4 )
return nullptr;
v5 = CRYPTO_zalloc(64, "crypto/lhash/lhash.c", 33);
*v4 = v5;
if ( v5 )
{
if ( !a2 )
a2 = &strcmp;
v4[1] = (int)a2;
if ( !a1 )
a1 = OPENSSL_LH_strhash;
v4[4] = 16;
v4[2] = (int)a1;
v4[3] = 8;
v4[6] = 8;
v4[7] = 512;
v4[8] = 256;
return v4;
}
else
{
CRYPTO_free(v4, "crypto/lhash/lhash.c", 45);
return nullptr;
}
}