//
// ERR_func_error_string from 0x101ded4 to 0x101df78 (164 bytes)
//
// 31 xrefs:
// > ERR_load_SSL_strings @ 0xfe18e8
// > ERR_error_string_n @ 0x101e0a4
// > ERR_load_EVP_strings @ 0x10df464
// > ERR_load_KDF_strings @ 0x10e0fd8
// > ERR_load_OBJ_strings @ 0x10e13c4
// > ERR_load_OCSP_strings @ 0x10e141c
// > ERR_load_PEM_strings @ 0x10e23cc
// > ERR_load_PKCS12_strings @ 0x10e4210
// > ERR_load_PKCS7_strings @ 0x10e45a8
// > ERR_load_RAND_strings @ 0x10e6038
// > ERR_load_RSA_strings @ 0x10e8940
// > ERR_load_TS_strings @ 0x10ec7d8
// > ERR_load_UI_strings @ 0x10ec830
// > ERR_load_X509_strings @ 0x10ecf78
// > ERR_load_X509V3_strings @ 0x10ee500
// > ERR_load_ASN1_strings @ 0x10ee598
// > ERR_load_ASYNC_strings @ 0x10f13e8
// > ERR_load_BIO_strings @ 0x10f27b4
// > ERR_load_BN_strings @ 0x10f28e4
// > ERR_load_BUF_strings @ 0x10f5bdc
// > ERR_load_CMS_strings @ 0x10f9758
// > ERR_load_COMP_strings @ 0x10f97b0
// > ERR_load_CONF_strings @ 0x10f9808
// > ERR_load_CRYPTO_strings @ 0x10f9860
// > ERR_load_CT_strings @ 0x10f98b8
// > ERR_load_DH_strings @ 0x10fa498
// > ERR_load_DSA_strings @ 0x10faa60
// > ERR_load_DSO_strings @ 0x10fac08
// > ERR_load_EC_strings @ 0x10fb720
// > ERR_load_ENGINE_strings @ 0x10fb778
// > ??> @ 0x85480
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:16:09 +0000
//
__int64 __fastcall ERR_func_error_string(int a1)
{
__int64 v2; // x19
__int64 v4; // [xsp+30h] [xbp+30h] BYREF
if ( !(unsigned int)CRYPTO_THREAD_run_once(&unk_1566C78, sub_101D8A8) || !dword_1566468 )
return 0;
v4 = a1 & 0xFFFFF000;
CRYPTO_THREAD_read_lock(qword_1566460);
if ( !qword_1566C80 )
{
CRYPTO_THREAD_unlock(qword_1566460);
return 0;
}
v2 = OPENSSL_LH_retrieve(qword_1566C80, &v4);
CRYPTO_THREAD_unlock(qword_1566460);
if ( !v2 )
return 0;
return *(_QWORD *)(v2 + 8);
}