{"type": "func", "start": 10417524, "end": 10417820, "name": "CONF_modules_unload", "pseudocode": "// \n// CONF_modules_unload from 0x9ef574 to 0x9ef69c (296 bytes)\n// \n// 2 xrefs:\n// > conf_modules_free_int @ 0x9ef7ac\n// > <???> @ 0x79dac\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_modules_unload(int a1)\n{\n  int v2; // r4\n  bool v3; // cf\n  _DWORD *v4; // r0\n  _DWORD *v5; // r6\n  int result; // r0\n  int v7; // r0\n  int v8; // r1\n  _DWORD *v9; // r6\n\n  CONF_modules_finish();\n  v2 = OPENSSL_sk_num(dword_D340C0) - 1;\n  if ( v2 >= 0 )\n  {\n    if ( a1 )\n    {\n      do\n      {\n        v7 = OPENSSL_sk_value(dword_D340C0, v2);\n        v8 = v2--;\n        v9 = (_DWORD *)v7;\n        OPENSSL_sk_delete(dword_D340C0, v8);\n        DSO_free(*v9);\n        CRYPTO_free(v9[1], \"crypto/conf/conf_mod.c\", 379);\n        CRYPTO_free(v9, \"crypto/conf/conf_mod.c\", 380);\n      }\n      while ( v2 != -1 );\n    }\n    else\n    {\n      do\n      {\n        while ( 1 )\n        {\n          v4 = (_DWORD *)OPENSSL_sk_value(dword_D340C0, v2);\n          v5 = v4;\n          if ( (int)v4[4] <= 0 )\n          {\n            if ( *v4 )\n              break;\n          }\n          v3 = v2-- != 0;\n          if ( !v3 )\n            goto LABEL_9;\n        }\n        OPENSSL_sk_delete(dword_D340C0, v2);\n        DSO_free(*v5);\n        CRYPTO_free(v5[1], \"crypto/conf/conf_mod.c\", 379);\n        CRYPTO_free(v5, \"crypto/conf/conf_mod.c\", 380);\n        v3 = v2-- != 0;\n      }\n      while ( v3 );\n    }\n  }\nLABEL_9:\n  result = OPENSSL_sk_num(dword_D340C0);\n  if ( !result )\n  {\n    result = OPENSSL_sk_free(dword_D340C0);\n    dword_D340C0 = 0;\n  }\n  return result;\n}", "assembly": "; \n; CONF_modules_unload from 0x9ef574 to 0x9ef69c (296 bytes)\n; \n; 2 xrefs:\n; > conf_modules_free_int @ 0x9ef7ac\n; > <???> @ 0x79dac\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            {R3-R7,LR}                                             ; +0x0, 0x9ef574\nLDR             R5, =(dword_D340C0 - 0x9EF588)                         ; +0x4, 0x9ef578\nMOV             R6, R0                                                 ; +0x8, 0x9ef57c\nADD             R5, PC, R5; dword_D340C0                               ; +0xc, 0x9ef580\nBL              CONF_modules_finish                                    ; +0x10, 0x9ef584\nLDR             R0, [R5]                                               ; +0x14, 0x9ef588\nBL              OPENSSL_sk_num                                         ; +0x18, 0x9ef58c\nSUBS            R4, R0, #1                                             ; +0x1c, 0x9ef590\nBMI             loc_9EF618                                             ; +0x20, 0x9ef594\nCMP             R6, #0                                                 ; +0x24, 0x9ef598\nBNE             loc_9EF640                                             ; +0x28, 0x9ef59c\nLDR             R7, =(aCryptoConfConf_0 - 0x9EF5AC); \"crypto/conf/conf_mod.c\" ; +0x2c, 0x9ef5a0\nADD             R7, PC, R7; \"crypto/conf/conf_mod.c\"                   ; +0x30, 0x9ef5a4\nB               loc_9EF5B4                                             ; +0x34, 0x9ef5a8\nSUBS            R4, R4, #1                                             ; +0x38, 0x9ef5ac\nBCC             loc_9EF618                                             ; +0x3c, 0x9ef5b0\nLDR             R0, [R5]                                               ; +0x40, 0x9ef5b4\nMOV             R1, R4                                                 ; +0x44, 0x9ef5b8\nBL              OPENSSL_sk_value                                       ; +0x48, 0x9ef5bc\nLDR             R3, [R0,#0x10]                                         ; +0x4c, 0x9ef5c0\nMOV             R6, R0                                                 ; +0x50, 0x9ef5c4\nCMP             R3, #0                                                 ; +0x54, 0x9ef5c8\nBGT             loc_9EF5AC                                             ; +0x58, 0x9ef5cc\nLDR             R3, [R0]                                               ; +0x5c, 0x9ef5d0\nMOV             R1, R4                                                 ; +0x60, 0x9ef5d4\nCMP             R3, #0                                                 ; +0x64, 0x9ef5d8\nBEQ             loc_9EF5AC                                             ; +0x68, 0x9ef5dc\nLDR             R0, [R5]                                               ; +0x6c, 0x9ef5e0\nBL              OPENSSL_sk_delete                                      ; +0x70, 0x9ef5e4\nLDR             R0, [R6]                                               ; +0x74, 0x9ef5e8\nBL              DSO_free                                               ; +0x78, 0x9ef5ec\nLDR             R0, [R6,#4]                                            ; +0x7c, 0x9ef5f0\nMOV             R1, R7                                                 ; +0x80, 0x9ef5f4\nLDR             R2, =0x17B                                             ; +0x84, 0x9ef5f8\nBL              CRYPTO_free                                            ; +0x88, 0x9ef5fc\nMOV             R0, R6                                                 ; +0x8c, 0x9ef600\nMOV             R1, R7                                                 ; +0x90, 0x9ef604\nMOV             R2, #0x17C                                             ; +0x94, 0x9ef608\nBL              CRYPTO_free                                            ; +0x98, 0x9ef60c\nSUBS            R4, R4, #1                                             ; +0x9c, 0x9ef610\nBCS             loc_9EF5B4                                             ; +0xa0, 0x9ef614\nLDR             R4, =(dword_D340C0 - 0x9EF624)                         ; +0xa4, 0x9ef618\nADD             R4, PC, R4; dword_D340C0                               ; +0xa8, 0x9ef61c\nLDR             R0, [R4]                                               ; +0xac, 0x9ef620\nBL              OPENSSL_sk_num                                         ; +0xb0, 0x9ef624\nSUBS            R5, R0, #0                                             ; +0xb4, 0x9ef628\nPOPNE           {R3-R7,PC}                                             ; +0xb8, 0x9ef62c\nLDR             R0, [R4]                                               ; +0xbc, 0x9ef630\nBL              OPENSSL_sk_free                                        ; +0xc0, 0x9ef634\nSTR             R5, [R4]                                               ; +0xc4, 0x9ef638\nPOP             {R3-R7,PC}                                             ; +0xc8, 0x9ef63c\nLDR             R7, =(aCryptoConfConf_0 - 0x9EF64C); \"crypto/conf/conf_mod.c\" ; +0xcc, 0x9ef640\nADD             R7, PC, R7; \"crypto/conf/conf_mod.c\"                   ; +0xd0, 0x9ef644\nMOV             R1, R4                                                 ; +0xd4, 0x9ef648\nLDR             R0, [R5]                                               ; +0xd8, 0x9ef64c\nBL              OPENSSL_sk_value                                       ; +0xdc, 0x9ef650\nMOV             R1, R4                                                 ; +0xe0, 0x9ef654\nSUB             R4, R4, #1                                             ; +0xe4, 0x9ef658\nMOV             R6, R0                                                 ; +0xe8, 0x9ef65c\nLDR             R0, [R5]                                               ; +0xec, 0x9ef660\nBL              OPENSSL_sk_delete                                      ; +0xf0, 0x9ef664\nLDR             R0, [R6]                                               ; +0xf4, 0x9ef668\nBL              DSO_free                                               ; +0xf8, 0x9ef66c\nLDR             R0, [R6,#4]                                            ; +0xfc, 0x9ef670\nMOV             R1, R7                                                 ; +0x100, 0x9ef674\nLDR             R2, =0x17B                                             ; +0x104, 0x9ef678\nBL              CRYPTO_free                                            ; +0x108, 0x9ef67c\nMOV             R0, R6                                                 ; +0x10c, 0x9ef680\nMOV             R1, R7                                                 ; +0x110, 0x9ef684\nMOV             R2, #0x17C                                             ; +0x114, 0x9ef688\nBL              CRYPTO_free                                            ; +0x118, 0x9ef68c\nCMN             R4, #1                                                 ; +0x11c, 0x9ef690\nBNE             loc_9EF648                                             ; +0x120, 0x9ef694\nB               loc_9EF618                                             ; +0x124, 0x9ef698", "xrefs": ["conf_modules_free_int @ 0x9ef7ac", "<???> @ 0x79dac"], "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"}