{"type": "func", "start": 10536376, "end": 10536496, "name": "ENGINE_get_next", "pseudocode": "// \n// ENGINE_get_next from 0xa0c5b8 to 0xa0c630 (120 bytes)\n// \n// 13 xrefs:\n// > sub_854AF8 @ 0x854b0a\n// > ENGINE_register_all_complete @ 0xa0bc78\n// > ENGINE_register_all_complete @ 0xa0bc9c\n// > ENGINE_register_all_pkey_asn1_meths @ 0xa0d318\n// > ENGINE_register_all_ciphers @ 0xa0d750\n// > ENGINE_register_all_DH @ 0xa0d914\n// > ENGINE_register_all_digests @ 0xa0da64\n// > ENGINE_register_all_DSA @ 0xa0dc28\n// > ENGINE_register_all_EC @ 0xa0dd58\n// > ENGINE_register_all_pkey_meths @ 0xa0dea8\n// > ENGINE_register_all_RAND @ 0xa0e0f0\n// > ENGINE_register_all_RSA @ 0xa0e220\n// > <???> @ 0x6846c\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:43 +0000\n// \n\nint __fastcall ENGINE_get_next(int a1)\n{\n  int v2; // r4\n  int v3; // r0\n\n  if ( a1 )\n  {\n    CRYPTO_THREAD_write_lock(global_engine_lock);\n    v2 = *(_DWORD *)(a1 + 96);\n    v3 = global_engine_lock;\n    if ( v2 )\n      ++*(_DWORD *)(v2 + 80);\n    CRYPTO_THREAD_unlock(v3);\n    ENGINE_free(a1);\n    return v2;\n  }\n  else\n  {\n    ERR_put_error(38, 115, 67, \"crypto/engine/eng_list.c\", 178);\n    return 0;\n  }\n}", "assembly": "; \n; ENGINE_get_next from 0xa0c5b8 to 0xa0c630 (120 bytes)\n; \n; 13 xrefs:\n; > sub_854AF8 @ 0x854b0a\n; > ENGINE_register_all_complete @ 0xa0bc78\n; > ENGINE_register_all_complete @ 0xa0bc9c\n; > ENGINE_register_all_pkey_asn1_meths @ 0xa0d318\n; > ENGINE_register_all_ciphers @ 0xa0d750\n; > ENGINE_register_all_DH @ 0xa0d914\n; > ENGINE_register_all_digests @ 0xa0da64\n; > ENGINE_register_all_DSA @ 0xa0dc28\n; > ENGINE_register_all_EC @ 0xa0dd58\n; > ENGINE_register_all_pkey_meths @ 0xa0dea8\n; > ENGINE_register_all_RAND @ 0xa0e0f0\n; > ENGINE_register_all_RSA @ 0xa0e220\n; > <???> @ 0x6846c\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:43 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0xa0c5b8\nSUBS            R6, R0, #0                                             ; +0x4, 0xa0c5bc\nSUB             SP, SP, #8                                             ; +0x8, 0xa0c5c0\nBEQ             loc_A0C608                                             ; +0xc, 0xa0c5c4\nLDR             R5, =(global_engine_lock_ptr - 0xA0C5D4)               ; +0x10, 0xa0c5c8\nLDR             R5, [PC,R5]; global_engine_lock                        ; +0x14, 0xa0c5cc\nLDR             R0, [R5]                                               ; +0x18, 0xa0c5d0\nBL              CRYPTO_THREAD_write_lock                               ; +0x1c, 0xa0c5d4\nLDR             R4, [R6,#0x60]                                         ; +0x20, 0xa0c5d8\nLDR             R0, [R5]                                               ; +0x24, 0xa0c5dc\nCMP             R4, #0                                                 ; +0x28, 0xa0c5e0\nLDRNE           R3, [R4,#0x50]                                         ; +0x2c, 0xa0c5e4\nADDNE           R3, R3, #1                                             ; +0x30, 0xa0c5e8\nSTRNE           R3, [R4,#0x50]                                         ; +0x34, 0xa0c5ec\nBL              CRYPTO_THREAD_unlock                                   ; +0x38, 0xa0c5f0\nMOV             R0, R6                                                 ; +0x3c, 0xa0c5f4\nBL              ENGINE_free                                            ; +0x40, 0xa0c5f8\nMOV             R0, R4                                                 ; +0x44, 0xa0c5fc\nADD             SP, SP, #8                                             ; +0x48, 0xa0c600\nPOP             {R4-R6,PC}                                             ; +0x4c, 0xa0c604\nMOV             R3, #0xB2                                              ; +0x50, 0xa0c608\nSTR             R3, [SP,#8+var_8]                                      ; +0x54, 0xa0c60c\nLDR             R3, =(aCryptoEngineEn_4 - 0xA0C628); \"crypto/engine/eng_list.c\" ; +0x58, 0xa0c610\nMOV             R0, #0x26 ; '&'                                        ; +0x5c, 0xa0c614\nMOV             R1, #0x73 ; 's'                                        ; +0x60, 0xa0c618\nMOV             R2, #0x43 ; 'C'                                        ; +0x64, 0xa0c61c\nADD             R3, PC, R3; \"crypto/engine/eng_list.c\"                 ; +0x68, 0xa0c620\nBL              ERR_put_error                                          ; +0x6c, 0xa0c624\nMOV             R0, R6                                                 ; +0x70, 0xa0c628\nB               loc_A0C600                                             ; +0x74, 0xa0c62c", "xrefs": ["sub_854AF8 @ 0x854b0a", "ENGINE_register_all_complete @ 0xa0bc78", "ENGINE_register_all_complete @ 0xa0bc9c", "ENGINE_register_all_pkey_asn1_meths @ 0xa0d318", "ENGINE_register_all_ciphers @ 0xa0d750", "ENGINE_register_all_DH @ 0xa0d914", "ENGINE_register_all_digests @ 0xa0da64", "ENGINE_register_all_DSA @ 0xa0dc28", "ENGINE_register_all_EC @ 0xa0dd58", "ENGINE_register_all_pkey_meths @ 0xa0dea8", "ENGINE_register_all_RAND @ 0xa0e0f0", "ENGINE_register_all_RSA @ 0xa0e220", "<???> @ 0x6846c"], "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"}