{"type": "func", "start": 8236204, "end": 8236408, "name": "CONF_modules_load_file", "pseudocode": "// \n// CONF_modules_load_file from 0x7dacac to 0x7dad78 (204 bytes)\n// \n// 3 xrefs:\n// > sub_644928 @ 0x644938\n// > openssl_config_int @ 0x879de4\n// > <???> @ 0x554bc\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 CONF_modules_load_file(int a1, char *a2, char a3)\n{\n  int v6; // r5\n  int v7; // r7\n  int v8; // r0\n  int v9; // r1\n  int v10; // r2\n  int v11; // r3\n  int v12; // r4\n  int v14; // r0\n\n  v6 = NCONF_new(0);\n  if ( v6 )\n  {\n    if ( a1 )\n    {\n      v7 = a1;\n    }\n    else\n    {\n      v14 = CONF_get1_default_config_file();\n      v7 = v14;\n      if ( !v14 )\n      {\n        v12 = 0;\n        goto LABEL_16;\n      }\n    }\n    v8 = NCONF_load(v6);\n    if ( v8 <= 0 )\n    {\n      v12 = a3 & 0x10;\n      if ( v12 )\n      {\n        if ( ERR_peek_last_error(v8, v9, v10, v11) << 20 == 119537664 )\n        {\n          ERR_clear_error(119537664);\n          v12 = 1;\n        }\n        else\n        {\n          v12 = 0;\n        }\n      }\n    }\n    else\n    {\n      v12 = CONF_modules_load(v6, a2, a3);\n    }\n  }\n  else\n  {\n    v12 = 0;\n    v7 = 0;\n  }\n  if ( !a1 )\nLABEL_16:\n    CRYPTO_free(v7, \"crypto/conf/conf_mod.c\", 142);\n  NCONF_free(v6);\n  return v12;\n}", "assembly": "; \n; CONF_modules_load_file from 0x7dacac to 0x7dad78 (204 bytes)\n; \n; 3 xrefs:\n; > sub_644928 @ 0x644938\n; > openssl_config_int @ 0x879de4\n; > <???> @ 0x554bc\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-R8,LR}                                             ; +0x0, 0x7dacac\nMOV             R6, R0                                                 ; +0x4, 0x7dacb0\nMOV             R0, #0                                                 ; +0x8, 0x7dacb4\nMOV             R8, R1                                                 ; +0xc, 0x7dacb8\nMOV             R4, R2                                                 ; +0x10, 0x7dacbc\nBL              NCONF_new                                              ; +0x14, 0x7dacc0\nSUBS            R5, R0, #0                                             ; +0x18, 0x7dacc4\nBEQ             loc_7DAD44                                             ; +0x1c, 0x7dacc8\nCMP             R6, #0                                                 ; +0x20, 0x7daccc\nMOVNE           R7, R6                                                 ; +0x24, 0x7dacd0\nBEQ             loc_7DAD50                                             ; +0x28, 0x7dacd4\nMOV             R0, R5                                                 ; +0x2c, 0x7dacd8\nMOV             R1, R7                                                 ; +0x30, 0x7dacdc\nMOV             R2, #0                                                 ; +0x34, 0x7dace0\nBL              NCONF_load                                             ; +0x38, 0x7dace4\nCMP             R0, #0                                                 ; +0x3c, 0x7dace8\nBLE             loc_7DAD1C                                             ; +0x40, 0x7dacec\nMOV             R2, R4                                                 ; +0x44, 0x7dacf0\nMOV             R1, R8                                                 ; +0x48, 0x7dacf4\nMOV             R0, R5                                                 ; +0x4c, 0x7dacf8\nBL              CONF_modules_load                                      ; +0x50, 0x7dacfc\nMOV             R4, R0                                                 ; +0x54, 0x7dad00\nCMP             R6, #0                                                 ; +0x58, 0x7dad04\nBEQ             loc_7DAD60                                             ; +0x5c, 0x7dad08\nMOV             R0, R5                                                 ; +0x60, 0x7dad0c\nBL              NCONF_free                                             ; +0x64, 0x7dad10\nMOV             R0, R4                                                 ; +0x68, 0x7dad14\nPOP             {R4-R8,PC}                                             ; +0x6c, 0x7dad18\nANDS            R4, R4, #0x10                                          ; +0x70, 0x7dad1c\nBEQ             loc_7DAD04                                             ; +0x74, 0x7dad20\nBL              ERR_peek_last_error                                    ; +0x78, 0x7dad24\nMOV             R0, R0,LSL#20                                          ; +0x7c, 0x7dad28\nCMP             R0, #0x7200000                                         ; +0x80, 0x7dad2c\nMOVNE           R4, #0                                                 ; +0x84, 0x7dad30\nBNE             loc_7DAD04                                             ; +0x88, 0x7dad34\nBL              ERR_clear_error                                        ; +0x8c, 0x7dad38\nMOV             R4, #1                                                 ; +0x90, 0x7dad3c\nB               loc_7DAD04                                             ; +0x94, 0x7dad40\nMOV             R4, R5                                                 ; +0x98, 0x7dad44\nMOV             R7, R5                                                 ; +0x9c, 0x7dad48\nB               loc_7DAD04                                             ; +0xa0, 0x7dad4c\nBL              CONF_get1_default_config_file                          ; +0xa4, 0x7dad50\nSUBS            R7, R0, #0                                             ; +0xa8, 0x7dad54\nBNE             loc_7DACD8                                             ; +0xac, 0x7dad58\nMOV             R4, R7                                                 ; +0xb0, 0x7dad5c\nLDR             R1, =(aCryptoConfConf_0 - 0x7DAD70); \"crypto/conf/conf_mod.c\" ; +0xb4, 0x7dad60\nMOV             R0, R7                                                 ; +0xb8, 0x7dad64\nADD             R1, PC, R1; \"crypto/conf/conf_mod.c\"                   ; +0xbc, 0x7dad68\nMOV             R2, #0x8E                                              ; +0xc0, 0x7dad6c\nBL              CRYPTO_free                                            ; +0xc4, 0x7dad70\nB               loc_7DAD0C                                             ; +0xc8, 0x7dad74", "xrefs": ["sub_644928 @ 0x644938", "openssl_config_int @ 0x879de4", "<???> @ 0x554bc"], "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"}