{"type": "func", "start": 16779928, "end": 16780180, "name": "CONF_modules_load_file", "pseudocode": "// \n// CONF_modules_load_file from 0x1000a98 to 0x1000b94 (252 bytes)\n// \n// 3 xrefs:\n// > sub_E2EE78 @ 0xe2ee94\n// > openssl_config_int @ 0x10a2834\n// > <???> @ 0xc6bf8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:15:53 +0000\n// \n\n__int64 __fastcall CONF_modules_load_file(__int64 a1, char *a2, char a3)\n{\n  __int64 v6; // x19\n  __int64 v7; // x20\n  __int64 v8; // x0\n  __int64 v9; // x1\n  __int64 v10; // x2\n  unsigned int v11; // w22\n  __int64 v13; // x0\n\n  v6 = NCONF_new(0);\n  if ( v6 )\n  {\n    v7 = a1;\n    if ( !a1 )\n    {\n      v7 = CONF_get1_default_config_file();\n      if ( !v7 )\n      {\n        v11 = 0;\n        goto LABEL_13;\n      }\n    }\n    v8 = NCONF_load(v6);\n    if ( (int)v8 <= 0 )\n    {\n      v11 = 0;\n      if ( (a3 & 0x10) != 0 )\n      {\n        v13 = ERR_peek_last_error(v8, v9, v10) & 0xFFF;\n        if ( (_DWORD)v13 == 114 )\n        {\n          ERR_clear_error(v13);\n          v11 = 1;\n        }\n      }\n    }\n    else\n    {\n      v11 = CONF_modules_load(v6, a2, a3);\n    }\n  }\n  else\n  {\n    v11 = 0;\n    v7 = 0;\n  }\n  if ( a1 )\n  {\n    NCONF_free(v6);\n    return v11;\n  }\nLABEL_13:\n  CRYPTO_free(v7, \"crypto/conf/conf_mod.c\", 142);\n  NCONF_free(v6);\n  return v11;\n}", "assembly": "; \n; CONF_modules_load_file from 0x1000a98 to 0x1000b94 (252 bytes)\n; \n; 3 xrefs:\n; > sub_E2EE78 @ 0xe2ee94\n; > openssl_config_int @ 0x10a2834\n; > <???> @ 0xc6bf8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:15:53 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x1000a98\nMOV             X29, SP                                                ; +0x4, 0x1000a9c\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x8, 0x1000aa0\nMOV             X21, X0                                                ; +0xc, 0x1000aa4\nMOV             X0, #0                                                 ; +0x10, 0x1000aa8\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x14, 0x1000aac\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x18, 0x1000ab0\nMOV             X22, X1                                                ; +0x1c, 0x1000ab4\nMOV             X23, X2                                                ; +0x20, 0x1000ab8\nBL              NCONF_new                                              ; +0x24, 0x1000abc\nMOV             X19, X0                                                ; +0x28, 0x1000ac0\nCBZ             X0, loc_1000B44                                        ; +0x2c, 0x1000ac4\nMOV             X20, X21                                               ; +0x30, 0x1000ac8\nCBZ             X21, loc_1000B50                                       ; +0x34, 0x1000acc\nMOV             X0, X19                                                ; +0x38, 0x1000ad0\nMOV             X1, X20                                                ; +0x3c, 0x1000ad4\nMOV             X2, #0                                                 ; +0x40, 0x1000ad8\nBL              NCONF_load                                             ; +0x44, 0x1000adc\nCMP             W0, WZR                                                ; +0x48, 0x1000ae0\nB.LE            loc_1000B20                                            ; +0x4c, 0x1000ae4\nMOV             X1, X22                                                ; +0x50, 0x1000ae8\nMOV             X0, X19                                                ; +0x54, 0x1000aec\nMOV             X2, X23                                                ; +0x58, 0x1000af0\nBL              CONF_modules_load                                      ; +0x5c, 0x1000af4\nMOV             W22, W0                                                ; +0x60, 0x1000af8\nCBZ             X21, loc_1000B60                                       ; +0x64, 0x1000afc\nMOV             X0, X19                                                ; +0x68, 0x1000b00\nBL              NCONF_free                                             ; +0x6c, 0x1000b04\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x70, 0x1000b08\nMOV             W0, W22                                                ; +0x74, 0x1000b0c\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x78, 0x1000b10\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x7c, 0x1000b14\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x80, 0x1000b18\nRET                                                                    ; +0x84, 0x1000b1c\nMOV             W22, #0                                                ; +0x88, 0x1000b20\nTBZ             W23, #4, loc_1000AFC                                   ; +0x8c, 0x1000b24\nBL              ERR_peek_last_error                                    ; +0x90, 0x1000b28\nAND             W0, W0, #0xFFF                                         ; +0x94, 0x1000b2c\nCMP             W0, #0x72 ; 'r'                                        ; +0x98, 0x1000b30\nB.NE            loc_1000AFC                                            ; +0x9c, 0x1000b34\nBL              ERR_clear_error                                        ; +0xa0, 0x1000b38\nMOV             W22, #1                                                ; +0xa4, 0x1000b3c\nB               loc_1000AFC                                            ; +0xa8, 0x1000b40\nMOV             W22, W0                                                ; +0xac, 0x1000b44\nMOV             X20, X0                                                ; +0xb0, 0x1000b48\nB               loc_1000AFC                                            ; +0xb4, 0x1000b4c\nBL              CONF_get1_default_config_file                          ; +0xb8, 0x1000b50\nMOV             X20, X0                                                ; +0xbc, 0x1000b54\nCBNZ            X0, loc_1000AD0                                        ; +0xc0, 0x1000b58\nMOV             W22, W0                                                ; +0xc4, 0x1000b5c\nADRP            X1, #aCryptoConfConf@PAGE; \"crypto/conf/conf_mod.c\"    ; +0xc8, 0x1000b60\nMOV             X0, X20                                                ; +0xcc, 0x1000b64\nADD             X1, X1, #aCryptoConfConf@PAGEOFF; \"crypto/conf/conf_mod.c\" ; +0xd0, 0x1000b68\nMOV             W2, #0x8E                                              ; +0xd4, 0x1000b6c\nBL              CRYPTO_free                                            ; +0xd8, 0x1000b70\nMOV             X0, X19                                                ; +0xdc, 0x1000b74\nBL              NCONF_free                                             ; +0xe0, 0x1000b78\nLDR             X23, [SP,#0x40+var_10]                                 ; +0xe4, 0x1000b7c\nMOV             W0, W22                                                ; +0xe8, 0x1000b80\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xec, 0x1000b84\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xf0, 0x1000b88\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xf4, 0x1000b8c\nRET                                                                    ; +0xf8, 0x1000b90", "xrefs": ["sub_E2EE78 @ 0xe2ee94", "openssl_config_int @ 0x10a2834", "<???> @ 0xc6bf8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}