//
// ERR_load_strings from 0xd9f8b8 to 0xd9f9a8 (240 bytes)
//
// 59 xrefs:
// > ERR_load_SSL_strings @ 0xd635b4
// > ERR_load_SSL_strings @ 0xd635c0
// > ERR_load_EVP_strings @ 0xe61484
// > ERR_load_EVP_strings @ 0xe61490
// > ERR_load_KDF_strings @ 0xe62ff8
// > ERR_load_KDF_strings @ 0xe63004
// > ERR_load_OBJ_strings @ 0xe633e4
// > ERR_load_OBJ_strings @ 0xe633f0
// > ERR_load_OCSP_strings @ 0xe6343c
// > ERR_load_OCSP_strings @ 0xe63448
// > ERR_load_PEM_strings @ 0xe643ec
// > ERR_load_PEM_strings @ 0xe643f8
// > ERR_load_PKCS12_strings @ 0xe66230
// > ERR_load_PKCS12_strings @ 0xe6623c
// > ERR_load_PKCS7_strings @ 0xe665c8
// > ERR_load_PKCS7_strings @ 0xe665d4
// > ERR_load_RAND_strings @ 0xe68058
// > ERR_load_RAND_strings @ 0xe68064
// > ERR_load_RSA_strings @ 0xe6a960
// > ERR_load_RSA_strings @ 0xe6a96c
// > ERR_load_TS_strings @ 0xe6e7f8
// > ERR_load_TS_strings @ 0xe6e804
// > ERR_load_UI_strings @ 0xe6e850
// > ERR_load_UI_strings @ 0xe6e85c
// > ERR_load_X509_strings @ 0xe6ef98
// > ERR_load_X509_strings @ 0xe6efa4
// > ERR_load_X509V3_strings @ 0xe70520
// > ERR_load_X509V3_strings @ 0xe7052c
// > ERR_load_ASN1_strings @ 0xe705b8
// > ERR_load_ASN1_strings @ 0xe705c4
// > ERR_load_ASYNC_strings @ 0xe73408
// > ERR_load_ASYNC_strings @ 0xe73414
// > ERR_load_BIO_strings @ 0xe747d4
// > ERR_load_BIO_strings @ 0xe747e0
// > ERR_load_BN_strings @ 0xe74904
// > ERR_load_BN_strings @ 0xe74910
// > ERR_load_BUF_strings @ 0xe77bfc
// > ERR_load_BUF_strings @ 0xe77c0c
// > ERR_load_CMS_strings @ 0xe7b778
// > ERR_load_CMS_strings @ 0xe7b784
// > ERR_load_COMP_strings @ 0xe7b7d0
// > ERR_load_COMP_strings @ 0xe7b7dc
// > ERR_load_CONF_strings @ 0xe7b828
// > ERR_load_CONF_strings @ 0xe7b834
// > ERR_load_CRYPTO_strings @ 0xe7b880
// > ERR_load_CRYPTO_strings @ 0xe7b88c
// > ERR_load_CT_strings @ 0xe7b8d8
// > ERR_load_CT_strings @ 0xe7b8e4
// > ERR_load_DH_strings @ 0xe7c4b8
// > ERR_load_DH_strings @ 0xe7c4c4
// > ERR_load_DSA_strings @ 0xe7ca80
// > ERR_load_DSA_strings @ 0xe7ca8c
// > ERR_load_DSO_strings @ 0xe7cc28
// > ERR_load_DSO_strings @ 0xe7cc34
// > ERR_load_EC_strings @ 0xe7d740
// > ERR_load_EC_strings @ 0xe7d74c
// > ERR_load_ENGINE_strings @ 0xe7d798
// > ERR_load_ENGINE_strings @ 0xe7d7a4
// > ??> @ 0x7bfd8
//
// 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 ERR_load_strings(int a1, unsigned __int64 *a2)
{
__int64 result; // x0
__int64 v5; // x0
unsigned __int64 v6; // x1
_QWORD *v7; // x19
unsigned __int64 v8; // t1
__int64 v9; // t1
unsigned __int64 v10; // t1
result = ERR_load_ERR_strings();
if ( (_DWORD)result )
{
CRYPTO_THREAD_write_lock(qword_125D660);
v5 = qword_125DE80;
if ( qword_125DE80 || (v5 = OPENSSL_LH_new(sub_D9F4F0, sub_D9F538), (qword_125DE80 = v5) != 0) )
{
v6 = *a2;
if ( *a2 )
{
if ( a1 )
{
while ( 1 )
{
*a2 = v6 | ((unsigned __int64)(unsigned __int8)a1 << 24);
OPENSSL_LH_insert(v5, a2);
v10 = a2[2];
a2 += 2;
v6 = v10;
if ( !v10 )
break;
v5 = qword_125DE80;
}
}
else
{
OPENSSL_LH_insert(v5, a2);
v8 = a2[2];
v7 = a2 + 2;
if ( v8 )
{
do
{
OPENSSL_LH_insert(qword_125DE80, v7);
v9 = v7[2];
v7 += 2;
}
while ( v9 );
}
}
}
}
CRYPTO_THREAD_unlock(qword_125D660);
return 1;
}
return result;
}