{"type": "func", "start": 10417348, "end": 10417504, "name": "CONF_modules_finish", "pseudocode": "// \n// CONF_modules_finish from 0x9ef4c4 to 0x9ef560 (156 bytes)\n// \n// 3 xrefs:\n// > CONF_modules_unload @ 0x9ef584\n// > conf_modules_free_int @ 0x9ef7a0\n// > <???> @ 0x79d9c\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 CONF_modules_finish()\n{\n  int v0; // r0\n  int *v1; // r4\n  int v2; // r3\n  void (*v3)(void); // r2\n  int v4; // r0\n  int result; // r0\n\n  while ( OPENSSL_sk_num(dword_D340C4) > 0 )\n  {\n    v0 = OPENSSL_sk_pop(dword_D340C4);\n    v1 = (int *)v0;\n    if ( v0 )\n    {\n      v2 = *(_DWORD *)v0;\n      v3 = *(void (**)(void))(*(_DWORD *)v0 + 12);\n      if ( v3 )\n      {\n        v3();\n        v2 = *v1;\n      }\n      v4 = v1[1];\n      --*(_DWORD *)(v2 + 16);\n      CRYPTO_free(v4, \"crypto/conf/conf_mod.c\", 405);\n      CRYPTO_free(v1[2], \"crypto/conf/conf_mod.c\", 406);\n      CRYPTO_free(v1, \"crypto/conf/conf_mod.c\", 407);\n    }\n  }\n  result = OPENSSL_sk_free(dword_D340C4);\n  dword_D340C4 = 0;\n  return result;\n}", "assembly": "; \n; CONF_modules_finish from 0x9ef4c4 to 0x9ef560 (156 bytes)\n; \n; 3 xrefs:\n; > CONF_modules_unload @ 0x9ef584\n; > conf_modules_free_int @ 0x9ef7a0\n; > <???> @ 0x79d9c\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-R6,LR}                                             ; +0x0, 0x9ef4c4\nLDR             R6, =(dword_D340C0 - 0x9EF4D8)                         ; +0x4, 0x9ef4c8\nLDR             R5, =(aCryptoConfConf_0 - 0x9EF4DC); \"crypto/conf/conf_mod.c\" ; +0x8, 0x9ef4cc\nADD             R6, PC, R6; dword_D340C0                               ; +0xc, 0x9ef4d0\nADD             R5, PC, R5; \"crypto/conf/conf_mod.c\"                   ; +0x10, 0x9ef4d4\nB               loc_9EF53C                                             ; +0x14, 0x9ef4d8\nBL              OPENSSL_sk_pop                                         ; +0x18, 0x9ef4dc\nSUBS            R4, R0, #0                                             ; +0x1c, 0x9ef4e0\nBEQ             loc_9EF53C                                             ; +0x20, 0x9ef4e4\nLDR             R3, [R4]                                               ; +0x24, 0x9ef4e8\nLDR             R2, [R3,#0xC]                                          ; +0x28, 0x9ef4ec\nCMP             R2, #0                                                 ; +0x2c, 0x9ef4f0\nBEQ             loc_9EF500                                             ; +0x30, 0x9ef4f4\nBLX             R2                                                     ; +0x34, 0x9ef4f8\nLDR             R3, [R4]                                               ; +0x38, 0x9ef4fc\nLDR             R2, [R3,#0x10]                                         ; +0x3c, 0x9ef500\nLDR             R0, [R4,#4]                                            ; +0x40, 0x9ef504\nSUB             R2, R2, #1                                             ; +0x44, 0x9ef508\nSTR             R2, [R3,#0x10]                                         ; +0x48, 0x9ef50c\nMOV             R1, R5                                                 ; +0x4c, 0x9ef510\nLDR             R2, =0x195                                             ; +0x50, 0x9ef514\nBL              CRYPTO_free                                            ; +0x54, 0x9ef518\nLDR             R0, [R4,#8]                                            ; +0x58, 0x9ef51c\nMOV             R1, R5                                                 ; +0x5c, 0x9ef520\nLDR             R2, =0x196                                             ; +0x60, 0x9ef524\nBL              CRYPTO_free                                            ; +0x64, 0x9ef528\nMOV             R0, R4                                                 ; +0x68, 0x9ef52c\nMOV             R1, R5                                                 ; +0x6c, 0x9ef530\nLDR             R2, =0x197                                             ; +0x70, 0x9ef534\nBL              CRYPTO_free                                            ; +0x74, 0x9ef538\nLDR             R0, [R6,#(dword_D340C4 - 0xD340C0)]                    ; +0x78, 0x9ef53c\nBL              OPENSSL_sk_num                                         ; +0x7c, 0x9ef540\nCMP             R0, #0                                                 ; +0x80, 0x9ef544\nLDR             R0, [R6,#(dword_D340C4 - 0xD340C0)]                    ; +0x84, 0x9ef548\nBGT             loc_9EF4DC                                             ; +0x88, 0x9ef54c\nBL              OPENSSL_sk_free                                        ; +0x8c, 0x9ef550\nMOV             R3, #0                                                 ; +0x90, 0x9ef554\nSTR             R3, [R6,#(dword_D340C4 - 0xD340C0)]                    ; +0x94, 0x9ef558\nPOP             {R4-R6,PC}                                             ; +0x98, 0x9ef55c", "xrefs": ["CONF_modules_unload @ 0x9ef584", "conf_modules_free_int @ 0x9ef7a0", "<???> @ 0x79d9c"], "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"}