{"type": "func", "start": 10417840, "end": 10418064, "name": "CONF_module_add", "pseudocode": "// \n// CONF_module_add from 0x9ef6b0 to 0x9ef790 (224 bytes)\n// \n// 6 xrefs:\n// > SSL_add_ssl_module @ 0x9cebdc\n// > ENGINE_add_conf_module @ 0xa0af64\n// > EVP_add_alg_module @ 0xa16f74\n// > ASN1_add_oid_module @ 0xa7afe0\n// > ASN1_add_stable_module @ 0xa7b3b4\n// > <???> @ 0x77abc\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:28 +0000\n// \n\nint __fastcall CONF_module_add(int a1, int a2, int a3)\n{\n  _DWORD *v6; // r4\n  int v7; // r0\n\n  if ( dword_D340C0 || (dword_D340C0 = OPENSSL_sk_new_null(a1)) != 0 )\n  {\n    v6 = (_DWORD *)CRYPTO_zalloc(24, \"crypto/conf/conf_mod.c\", 234);\n    if ( v6 )\n    {\n      *v6 = 0;\n      v7 = CRYPTO_strdup(a1, \"crypto/conf/conf_mod.c\", 239);\n      v6[3] = a3;\n      v6[1] = v7;\n      v6[2] = a2;\n      if ( v7 )\n      {\n        if ( OPENSSL_sk_push(dword_D340C0, v6) )\n          return 1;\n        CRYPTO_free(v6[1], \"crypto/conf/conf_mod.c\", 248);\n        CRYPTO_free(v6, \"crypto/conf/conf_mod.c\", 249);\n      }\n      else\n      {\n        CRYPTO_free(v6, \"crypto/conf/conf_mod.c\", 243);\n      }\n    }\n  }\n  return 0;\n}", "assembly": "; \n; CONF_module_add from 0x9ef6b0 to 0x9ef790 (224 bytes)\n; \n; 6 xrefs:\n; > SSL_add_ssl_module @ 0x9cebdc\n; > ENGINE_add_conf_module @ 0xa0af64\n; > EVP_add_alg_module @ 0xa16f74\n; > ASN1_add_oid_module @ 0xa7afe0\n; > ASN1_add_stable_module @ 0xa7b3b4\n; > <???> @ 0x77abc\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:28 +0000\n; \nPUSH            {R4-R8,LR}                                             ; +0x0, 0x9ef6b0\nLDR             R4, =(dword_D340C0 - 0x9EF6C4)                         ; +0x4, 0x9ef6b4\nMOV             R8, R0                                                 ; +0x8, 0x9ef6b8\nADD             R4, PC, R4; dword_D340C0                               ; +0xc, 0x9ef6bc\nLDR             R3, [R4]                                               ; +0x10, 0x9ef6c0\nMOV             R7, R1                                                 ; +0x14, 0x9ef6c4\nCMP             R3, #0                                                 ; +0x18, 0x9ef6c8\nMOV             R6, R2                                                 ; +0x1c, 0x9ef6cc\nBEQ             loc_9EF758                                             ; +0x20, 0x9ef6d0\nLDR             R5, =(aCryptoConfConf_0 - 0x9EF6E4); \"crypto/conf/conf_mod.c\" ; +0x24, 0x9ef6d4\nMOV             R0, #0x18                                              ; +0x28, 0x9ef6d8\nADD             R5, PC, R5; \"crypto/conf/conf_mod.c\"                   ; +0x2c, 0x9ef6dc\nMOV             R1, R5                                                 ; +0x30, 0x9ef6e0\nMOV             R2, #0xEA                                              ; +0x34, 0x9ef6e4\nBL              CRYPTO_zalloc                                          ; +0x38, 0x9ef6e8\nSUBS            R4, R0, #0                                             ; +0x3c, 0x9ef6ec\nBEQ             loc_9EF750                                             ; +0x40, 0x9ef6f0\nMOV             R3, #0                                                 ; +0x44, 0x9ef6f4\nMOV             R0, R8                                                 ; +0x48, 0x9ef6f8\nSTR             R3, [R4]                                               ; +0x4c, 0x9ef6fc\nMOV             R1, R5                                                 ; +0x50, 0x9ef700\nMOV             R2, #0xEF                                              ; +0x54, 0x9ef704\nBL              CRYPTO_strdup                                          ; +0x58, 0x9ef708\nSTR             R6, [R4,#0xC]                                          ; +0x5c, 0x9ef70c\nCMP             R0, #0                                                 ; +0x60, 0x9ef710\nSTMIB           R4, {R0,R7}                                            ; +0x64, 0x9ef714\nBEQ             loc_9EF740                                             ; +0x68, 0x9ef718\nLDR             R3, =(dword_D340C0 - 0x9EF72C)                         ; +0x6c, 0x9ef71c\nMOV             R1, R4                                                 ; +0x70, 0x9ef720\nADD             R3, PC, R3; dword_D340C0                               ; +0x74, 0x9ef724\nLDR             R0, [R3]                                               ; +0x78, 0x9ef728\nBL              OPENSSL_sk_push                                        ; +0x7c, 0x9ef72c\nCMP             R0, #0                                                 ; +0x80, 0x9ef730\nBEQ             loc_9EF76C                                             ; +0x84, 0x9ef734\nMOV             R0, #1                                                 ; +0x88, 0x9ef738\nPOP             {R4-R8,PC}                                             ; +0x8c, 0x9ef73c\nMOV             R0, R4                                                 ; +0x90, 0x9ef740\nMOV             R1, R5                                                 ; +0x94, 0x9ef744\nMOV             R2, #0xF3                                              ; +0x98, 0x9ef748\nBL              CRYPTO_free                                            ; +0x9c, 0x9ef74c\nMOV             R0, #0                                                 ; +0xa0, 0x9ef750\nPOP             {R4-R8,PC}                                             ; +0xa4, 0x9ef754\nBL              OPENSSL_sk_new_null                                    ; +0xa8, 0x9ef758\nCMP             R0, #0                                                 ; +0xac, 0x9ef75c\nSTR             R0, [R4]                                               ; +0xb0, 0x9ef760\nBEQ             loc_9EF750                                             ; +0xb4, 0x9ef764\nB               loc_9EF6D4                                             ; +0xb8, 0x9ef768\nLDR             R0, [R4,#4]                                            ; +0xbc, 0x9ef76c\nMOV             R1, R5                                                 ; +0xc0, 0x9ef770\nMOV             R2, #0xF8                                              ; +0xc4, 0x9ef774\nBL              CRYPTO_free                                            ; +0xc8, 0x9ef778\nMOV             R0, R4                                                 ; +0xcc, 0x9ef77c\nMOV             R1, R5                                                 ; +0xd0, 0x9ef780\nMOV             R2, #0xF9                                              ; +0xd4, 0x9ef784\nBL              CRYPTO_free                                            ; +0xd8, 0x9ef788\nB               loc_9EF750                                             ; +0xdc, 0x9ef78c", "xrefs": ["SSL_add_ssl_module @ 0x9cebdc", "ENGINE_add_conf_module @ 0xa0af64", "EVP_add_alg_module @ 0xa16f74", "ASN1_add_oid_module @ 0xa7afe0", "ASN1_add_stable_module @ 0xa7b3b4", "<???> @ 0x77abc"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}