{"type": "func", "start": 8235380, "end": 8235676, "name": "CONF_modules_unload", "pseudocode": "// \n// CONF_modules_unload from 0x7da974 to 0x7daa9c (296 bytes)\n// \n// 2 xrefs:\n// > conf_modules_free_int @ 0x7dabac\n// > <???> @ 0x6032c\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_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_AD2E34) - 1;\n  if ( v2 >= 0 )\n  {\n    if ( a1 )\n    {\n      do\n      {\n        v7 = OPENSSL_sk_value(dword_AD2E34, v2);\n        v8 = v2--;\n        v9 = (_DWORD *)v7;\n        OPENSSL_sk_delete(dword_AD2E34, 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_AD2E34, 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_AD2E34, 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_AD2E34);\n  if ( !result )\n  {\n    result = OPENSSL_sk_free(dword_AD2E34);\n    dword_AD2E34 = 0;\n  }\n  return result;\n}", "assembly": "; \n; CONF_modules_unload from 0x7da974 to 0x7daa9c (296 bytes)\n; \n; 2 xrefs:\n; > conf_modules_free_int @ 0x7dabac\n; > <???> @ 0x6032c\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            {R3-R7,LR}                                             ; +0x0, 0x7da974\nLDR             R5, =(dword_AD2E34 - 0x7DA988)                         ; +0x4, 0x7da978\nMOV             R6, R0                                                 ; +0x8, 0x7da97c\nADD             R5, PC, R5; dword_AD2E34                               ; +0xc, 0x7da980\nBL              CONF_modules_finish                                    ; +0x10, 0x7da984\nLDR             R0, [R5]                                               ; +0x14, 0x7da988\nBL              OPENSSL_sk_num                                         ; +0x18, 0x7da98c\nSUBS            R4, R0, #1                                             ; +0x1c, 0x7da990\nBMI             loc_7DAA18                                             ; +0x20, 0x7da994\nCMP             R6, #0                                                 ; +0x24, 0x7da998\nBNE             loc_7DAA40                                             ; +0x28, 0x7da99c\nLDR             R7, =(aCryptoConfConf_0 - 0x7DA9AC); \"crypto/conf/conf_mod.c\" ; +0x2c, 0x7da9a0\nADD             R7, PC, R7; \"crypto/conf/conf_mod.c\"                   ; +0x30, 0x7da9a4\nB               loc_7DA9B4                                             ; +0x34, 0x7da9a8\nSUBS            R4, R4, #1                                             ; +0x38, 0x7da9ac\nBCC             loc_7DAA18                                             ; +0x3c, 0x7da9b0\nLDR             R0, [R5]                                               ; +0x40, 0x7da9b4\nMOV             R1, R4                                                 ; +0x44, 0x7da9b8\nBL              OPENSSL_sk_value                                       ; +0x48, 0x7da9bc\nLDR             R3, [R0,#0x10]                                         ; +0x4c, 0x7da9c0\nMOV             R6, R0                                                 ; +0x50, 0x7da9c4\nCMP             R3, #0                                                 ; +0x54, 0x7da9c8\nBGT             loc_7DA9AC                                             ; +0x58, 0x7da9cc\nLDR             R3, [R0]                                               ; +0x5c, 0x7da9d0\nMOV             R1, R4                                                 ; +0x60, 0x7da9d4\nCMP             R3, #0                                                 ; +0x64, 0x7da9d8\nBEQ             loc_7DA9AC                                             ; +0x68, 0x7da9dc\nLDR             R0, [R5]                                               ; +0x6c, 0x7da9e0\nBL              OPENSSL_sk_delete                                      ; +0x70, 0x7da9e4\nLDR             R0, [R6]                                               ; +0x74, 0x7da9e8\nBL              DSO_free                                               ; +0x78, 0x7da9ec\nLDR             R0, [R6,#4]                                            ; +0x7c, 0x7da9f0\nMOV             R1, R7                                                 ; +0x80, 0x7da9f4\nLDR             R2, =0x17B                                             ; +0x84, 0x7da9f8\nBL              CRYPTO_free                                            ; +0x88, 0x7da9fc\nMOV             R0, R6                                                 ; +0x8c, 0x7daa00\nMOV             R1, R7                                                 ; +0x90, 0x7daa04\nMOV             R2, #0x17C                                             ; +0x94, 0x7daa08\nBL              CRYPTO_free                                            ; +0x98, 0x7daa0c\nSUBS            R4, R4, #1                                             ; +0x9c, 0x7daa10\nBCS             loc_7DA9B4                                             ; +0xa0, 0x7daa14\nLDR             R4, =(dword_AD2E34 - 0x7DAA24)                         ; +0xa4, 0x7daa18\nADD             R4, PC, R4; dword_AD2E34                               ; +0xa8, 0x7daa1c\nLDR             R0, [R4]                                               ; +0xac, 0x7daa20\nBL              OPENSSL_sk_num                                         ; +0xb0, 0x7daa24\nSUBS            R5, R0, #0                                             ; +0xb4, 0x7daa28\nPOPNE           {R3-R7,PC}                                             ; +0xb8, 0x7daa2c\nLDR             R0, [R4]                                               ; +0xbc, 0x7daa30\nBL              OPENSSL_sk_free                                        ; +0xc0, 0x7daa34\nSTR             R5, [R4]                                               ; +0xc4, 0x7daa38\nPOP             {R3-R7,PC}                                             ; +0xc8, 0x7daa3c\nLDR             R7, =(aCryptoConfConf_0 - 0x7DAA4C); \"crypto/conf/conf_mod.c\" ; +0xcc, 0x7daa40\nADD             R7, PC, R7; \"crypto/conf/conf_mod.c\"                   ; +0xd0, 0x7daa44\nMOV             R1, R4                                                 ; +0xd4, 0x7daa48\nLDR             R0, [R5]                                               ; +0xd8, 0x7daa4c\nBL              OPENSSL_sk_value                                       ; +0xdc, 0x7daa50\nMOV             R1, R4                                                 ; +0xe0, 0x7daa54\nSUB             R4, R4, #1                                             ; +0xe4, 0x7daa58\nMOV             R6, R0                                                 ; +0xe8, 0x7daa5c\nLDR             R0, [R5]                                               ; +0xec, 0x7daa60\nBL              OPENSSL_sk_delete                                      ; +0xf0, 0x7daa64\nLDR             R0, [R6]                                               ; +0xf4, 0x7daa68\nBL              DSO_free                                               ; +0xf8, 0x7daa6c\nLDR             R0, [R6,#4]                                            ; +0xfc, 0x7daa70\nMOV             R1, R7                                                 ; +0x100, 0x7daa74\nLDR             R2, =0x17B                                             ; +0x104, 0x7daa78\nBL              CRYPTO_free                                            ; +0x108, 0x7daa7c\nMOV             R0, R6                                                 ; +0x10c, 0x7daa80\nMOV             R1, R7                                                 ; +0x110, 0x7daa84\nMOV             R2, #0x17C                                             ; +0x114, 0x7daa88\nBL              CRYPTO_free                                            ; +0x118, 0x7daa8c\nCMN             R4, #1                                                 ; +0x11c, 0x7daa90\nBNE             loc_7DAA48                                             ; +0x120, 0x7daa94\nB               loc_7DAA18                                             ; +0x124, 0x7daa98", "xrefs": ["conf_modules_free_int @ 0x7dabac", "<???> @ 0x6032c"], "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"}