{"type": "func", "start": 8363304, "end": 8363460, "name": "ERR_lib_error_string", "pseudocode": "// \n// ERR_lib_error_string from 0x7f9d28 to 0x7f9dc4 (156 bytes)\n// \n// 2 xrefs:\n// > ERR_error_string_n @ 0x7f9f88\n// > <???> @ 0x628fc\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall ERR_lib_error_string(int a1)\n{\n  int v2; // r5\n  unsigned int v4[3]; // [sp+0h] [bp-Ch] BYREF\n\n  if ( !CRYPTO_THREAD_run_once(&unk_AD2EC0, sub_7F9708) || !dword_AD2EB4 )\n    return 0;\n  v4[0] = a1 & 0xFF000000;\n  CRYPTO_THREAD_read_lock(dword_AD2EB0);\n  if ( !dword_AD2EC4 )\n  {\n    CRYPTO_THREAD_unlock(dword_AD2EB0);\n    return 0;\n  }\n  v2 = OPENSSL_LH_retrieve(dword_AD2EC4, v4);\n  CRYPTO_THREAD_unlock(dword_AD2EB0);\n  if ( !v2 )\n    return 0;\n  return *(_DWORD *)(v2 + 4);\n}", "assembly": "; \n; ERR_lib_error_string from 0x7f9d28 to 0x7f9dc4 (156 bytes)\n; \n; 2 xrefs:\n; > ERR_error_string_n @ 0x7f9f88\n; > <???> @ 0x628fc\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4,R5,LR}                                             ; +0x0, 0x7f9d28\nLDR             R4, =(dword_AD2EB0 - 0x7F9D3C)                         ; +0x4, 0x7f9d2c\nLDR             R1, =(sub_7F9708 - 0x7F9D48)                           ; +0x8, 0x7f9d30\nADD             R4, PC, R4; dword_AD2EB0                               ; +0xc, 0x7f9d34\nSUB             SP, SP, #0xC                                           ; +0x10, 0x7f9d38\nMOV             R5, R0                                                 ; +0x14, 0x7f9d3c\nADD             R1, PC, R1; sub_7F9708                                 ; +0x18, 0x7f9d40\nADD             R0, R4, #(unk_AD2EC0 - 0xAD2EB0)                       ; +0x1c, 0x7f9d44\nBL              CRYPTO_THREAD_run_once                                 ; +0x20, 0x7f9d48\nCMP             R0, #0                                                 ; +0x24, 0x7f9d4c\nBEQ             loc_7F9DA8                                             ; +0x28, 0x7f9d50\nLDR             R3, [R4,#(dword_AD2EB4 - 0xAD2EB0)]                    ; +0x2c, 0x7f9d54\nCMP             R3, #0                                                 ; +0x30, 0x7f9d58\nBEQ             loc_7F9DA8                                             ; +0x34, 0x7f9d5c\nAND             R5, R5, #0xFF000000                                    ; +0x38, 0x7f9d60\nLDR             R0, [R4]                                               ; +0x3c, 0x7f9d64\nSTR             R5, [SP,#0xC+var_C]                                    ; +0x40, 0x7f9d68\nBL              CRYPTO_THREAD_read_lock                                ; +0x44, 0x7f9d6c\nLDR             R5, [R4,#(dword_AD2EC4 - 0xAD2EB0)]                    ; +0x48, 0x7f9d70\nCMP             R5, #0                                                 ; +0x4c, 0x7f9d74\nBEQ             loc_7F9DB4                                             ; +0x50, 0x7f9d78\nMOV             R0, R5                                                 ; +0x54, 0x7f9d7c\nMOV             R1, SP                                                 ; +0x58, 0x7f9d80\nBL              OPENSSL_LH_retrieve                                    ; +0x5c, 0x7f9d84\nMOV             R5, R0                                                 ; +0x60, 0x7f9d88\nLDR             R0, [R4]                                               ; +0x64, 0x7f9d8c\nBL              CRYPTO_THREAD_unlock                                   ; +0x68, 0x7f9d90\nCMP             R5, #0                                                 ; +0x6c, 0x7f9d94\nBEQ             loc_7F9DA8                                             ; +0x70, 0x7f9d98\nLDR             R0, [R5,#4]                                            ; +0x74, 0x7f9d9c\nADD             SP, SP, #0xC                                           ; +0x78, 0x7f9da0\nPOP             {R4,R5,PC}                                             ; +0x7c, 0x7f9da4\nMOV             R0, #0                                                 ; +0x80, 0x7f9da8\nADD             SP, SP, #0xC                                           ; +0x84, 0x7f9dac\nPOP             {R4,R5,PC}                                             ; +0x88, 0x7f9db0\nLDR             R0, [R4]                                               ; +0x8c, 0x7f9db4\nBL              CRYPTO_THREAD_unlock                                   ; +0x90, 0x7f9db8\nMOV             R0, R5                                                 ; +0x94, 0x7f9dbc\nB               loc_7F9DA0                                             ; +0x98, 0x7f9dc0", "xrefs": ["ERR_error_string_n @ 0x7f9f88", "<???> @ 0x628fc"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}