//
// OPENSSL_LH_free from 0x80c36c to 0x80c3fc (144 bytes)
//
// 12 xrefs:
// > SSL_load_client_CA_file @ 0x791de0
// > SSL_load_client_CA_file @ 0x791e2c
// > SSL_CTX_free @ 0x7987b4
// > err_free_strings_int @ 0x7f9d08
// > OBJ_NAME_cleanup @ 0x81be84
// > obj_cleanup_int @ 0x81c190
// > TXT_DB_create_index @ 0x839338
// > TXT_DB_create_index @ 0x8393a8
// > TXT_DB_free @ 0x8396b8
// > _CONF_free_data @ 0x8789f0
// > engine_table_cleanup @ 0x8b4658
// > ??> @ 0x5b42c
//
// 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_free(int *result)
{
unsigned int v1; // r2
int *v2; // r7
int v3; // r3
unsigned int i; // r6
int v5; // r0
int v6; // r4
if ( result )
{
v1 = result[3];
v2 = result;
v3 = *result;
for ( i = 0; i < v1; ++i )
{
v5 = *(_DWORD *)(v3 + 4 * i);
if ( v5 )
{
do
{
v6 = *(_DWORD *)(v5 + 4);
CRYPTO_free(v5, "crypto/lhash/lhash.c", 62);
v5 = v6;
}
while ( v6 );
v3 = *v2;
v1 = v2[3];
}
}
CRYPTO_free(v3, "crypto/lhash/lhash.c", 66);
return (int *)CRYPTO_free(v2, "crypto/lhash/lhash.c", 67);
}
return result;
}