//
// ERR_load_strings from 0x7f9afc to 0x7f9bd4 (216 bytes)
//
// 59 xrefs:
// > ERR_load_SSL_strings @ 0x7bd150
// > ERR_load_SSL_strings @ 0x7bd15c
// > ERR_load_EVP_strings @ 0x8b73bc
// > ERR_load_EVP_strings @ 0x8b73c8
// > ERR_load_KDF_strings @ 0x8b8bcc
// > ERR_load_KDF_strings @ 0x8b8bd8
// > ERR_load_OBJ_strings @ 0x8b8f50
// > ERR_load_OBJ_strings @ 0x8b8f5c
// > ERR_load_OCSP_strings @ 0x8b8f94
// > ERR_load_OCSP_strings @ 0x8b8fa0
// > ERR_load_PEM_strings @ 0x8b9f10
// > ERR_load_PEM_strings @ 0x8b9f1c
// > ERR_load_PKCS12_strings @ 0x8bbd3c
// > ERR_load_PKCS12_strings @ 0x8bbd48
// > ERR_load_PKCS7_strings @ 0x8bc084
// > ERR_load_PKCS7_strings @ 0x8bc090
// > ERR_load_RAND_strings @ 0x8bd7b8
// > ERR_load_RAND_strings @ 0x8bd7c4
// > ERR_load_RSA_strings @ 0x8bf924
// > ERR_load_RSA_strings @ 0x8bf930
// > ERR_load_TS_strings @ 0x8c2ba8
// > ERR_load_TS_strings @ 0x8c2bb4
// > ERR_load_UI_strings @ 0x8c2bec
// > ERR_load_UI_strings @ 0x8c2bf8
// > ERR_load_X509_strings @ 0x8c3278
// > ERR_load_X509_strings @ 0x8c3284
// > ERR_load_X509V3_strings @ 0x8c47ac
// > ERR_load_X509V3_strings @ 0x8c47b8
// > ERR_load_ASN1_strings @ 0x8c4848
// > ERR_load_ASN1_strings @ 0x8c4854
// > ERR_load_ASYNC_strings @ 0x8c7b20
// > ERR_load_ASYNC_strings @ 0x8c7b2c
// > ERR_load_BIO_strings @ 0x8c906c
// > ERR_load_BIO_strings @ 0x8c9078
// > ERR_load_BN_strings @ 0x8c9168
// > ERR_load_BN_strings @ 0x8c9174
// > ERR_load_BUF_strings @ 0x8cb7b8
// > ERR_load_BUF_strings @ 0x8cb7c8
// > ERR_load_CMS_strings @ 0x8cfb04
// > ERR_load_CMS_strings @ 0x8cfb10
// > ERR_load_COMP_strings @ 0x8cfb48
// > ERR_load_COMP_strings @ 0x8cfb54
// > ERR_load_CONF_strings @ 0x8cfb8c
// > ERR_load_CONF_strings @ 0x8cfb98
// > ERR_load_CRYPTO_strings @ 0x8cfbd0
// > ERR_load_CRYPTO_strings @ 0x8cfbdc
// > ERR_load_CT_strings @ 0x8cfc14
// > ERR_load_CT_strings @ 0x8cfc20
// > ERR_load_DH_strings @ 0x8d0884
// > ERR_load_DH_strings @ 0x8d0890
// > ERR_load_DSA_strings @ 0x8d0e70
// > ERR_load_DSA_strings @ 0x8d0e7c
// > ERR_load_DSO_strings @ 0x8d0ff4
// > ERR_load_DSO_strings @ 0x8d1000
// > ERR_load_EC_strings @ 0x8d1be4
// > ERR_load_EC_strings @ 0x8d1bf0
// > ERR_load_ENGINE_strings @ 0x8d1c28
// > ERR_load_ENGINE_strings @ 0x8d1c34
// > ??> @ 0x5e10c
//
// 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 ERR_load_strings(int a1, int *a2)
{
int result; // r0
int v5; // r0
int v6; // r3
bool v7; // zf
int v8; // r5
int v9; // t1
int v10; // t1
result = ERR_load_ERR_strings();
if ( result )
{
CRYPTO_THREAD_write_lock(dword_AD2EB0);
v5 = dword_AD2EC4;
if ( dword_AD2EC4 || (v5 = OPENSSL_LH_new(sub_7F96B4, sub_7F96F8), (dword_AD2EC4 = v5) != 0) )
{
v6 = *a2;
if ( *a2 )
{
v7 = a1 == 0;
v8 = a1 << 24;
if ( v7 )
{
while ( 1 )
{
OPENSSL_LH_insert(v5, a2);
v9 = a2[2];
a2 += 2;
if ( !v9 )
break;
v5 = dword_AD2EC4;
}
}
else
{
while ( 1 )
{
*a2 = v6 | v8;
OPENSSL_LH_insert(v5, a2);
v10 = a2[2];
a2 += 2;
v6 = v10;
if ( !v10 )
break;
v5 = dword_AD2EC4;
}
}
}
}
CRYPTO_THREAD_unlock(dword_AD2EB0);
return 1;
}
return result;
}