{"type": "func", "start": 8354232, "end": 8354352, "name": "ENGINE_get_next", "pseudocode": "// \n// ENGINE_get_next from 0x7f79b8 to 0x7f7a30 (120 bytes)\n// \n// 13 xrefs:\n// > sub_644A78 @ 0x644a8a\n// > ENGINE_register_all_complete @ 0x7f7078\n// > ENGINE_register_all_complete @ 0x7f709c\n// > ENGINE_register_all_pkey_asn1_meths @ 0x7f8718\n// > ENGINE_register_all_ciphers @ 0x7f8b50\n// > ENGINE_register_all_DH @ 0x7f8d14\n// > ENGINE_register_all_digests @ 0x7f8e64\n// > ENGINE_register_all_DSA @ 0x7f9028\n// > ENGINE_register_all_EC @ 0x7f9158\n// > ENGINE_register_all_pkey_meths @ 0x7f92a8\n// > ENGINE_register_all_RAND @ 0x7f94f0\n// > ENGINE_register_all_RSA @ 0x7f9620\n// > <???> @ 0x5553c\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 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 0x7f79b8 to 0x7f7a30 (120 bytes)\n; \n; 13 xrefs:\n; > sub_644A78 @ 0x644a8a\n; > ENGINE_register_all_complete @ 0x7f7078\n; > ENGINE_register_all_complete @ 0x7f709c\n; > ENGINE_register_all_pkey_asn1_meths @ 0x7f8718\n; > ENGINE_register_all_ciphers @ 0x7f8b50\n; > ENGINE_register_all_DH @ 0x7f8d14\n; > ENGINE_register_all_digests @ 0x7f8e64\n; > ENGINE_register_all_DSA @ 0x7f9028\n; > ENGINE_register_all_EC @ 0x7f9158\n; > ENGINE_register_all_pkey_meths @ 0x7f92a8\n; > ENGINE_register_all_RAND @ 0x7f94f0\n; > ENGINE_register_all_RSA @ 0x7f9620\n; > <???> @ 0x5553c\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            {R4-R6,LR}                                             ; +0x0, 0x7f79b8\nSUBS            R6, R0, #0                                             ; +0x4, 0x7f79bc\nSUB             SP, SP, #8                                             ; +0x8, 0x7f79c0\nBEQ             loc_7F7A08                                             ; +0xc, 0x7f79c4\nLDR             R5, =(global_engine_lock_ptr - 0x7F79D4)               ; +0x10, 0x7f79c8\nLDR             R5, [PC,R5]; global_engine_lock                        ; +0x14, 0x7f79cc\nLDR             R0, [R5]                                               ; +0x18, 0x7f79d0\nBL              CRYPTO_THREAD_write_lock                               ; +0x1c, 0x7f79d4\nLDR             R4, [R6,#0x60]                                         ; +0x20, 0x7f79d8\nLDR             R0, [R5]                                               ; +0x24, 0x7f79dc\nCMP             R4, #0                                                 ; +0x28, 0x7f79e0\nLDRNE           R3, [R4,#0x50]                                         ; +0x2c, 0x7f79e4\nADDNE           R3, R3, #1                                             ; +0x30, 0x7f79e8\nSTRNE           R3, [R4,#0x50]                                         ; +0x34, 0x7f79ec\nBL              CRYPTO_THREAD_unlock                                   ; +0x38, 0x7f79f0\nMOV             R0, R6                                                 ; +0x3c, 0x7f79f4\nBL              ENGINE_free                                            ; +0x40, 0x7f79f8\nMOV             R0, R4                                                 ; +0x44, 0x7f79fc\nADD             SP, SP, #8                                             ; +0x48, 0x7f7a00\nPOP             {R4-R6,PC}                                             ; +0x4c, 0x7f7a04\nMOV             R3, #0xB2                                              ; +0x50, 0x7f7a08\nSTR             R3, [SP,#8+var_8]                                      ; +0x54, 0x7f7a0c\nLDR             R3, =(aCryptoEngineEn_4 - 0x7F7A28); \"crypto/engine/eng_list.c\" ; +0x58, 0x7f7a10\nMOV             R0, #0x26 ; '&'                                        ; +0x5c, 0x7f7a14\nMOV             R1, #0x73 ; 's'                                        ; +0x60, 0x7f7a18\nMOV             R2, #0x43 ; 'C'                                        ; +0x64, 0x7f7a1c\nADD             R3, PC, R3; \"crypto/engine/eng_list.c\"                 ; +0x68, 0x7f7a20\nBL              ERR_put_error                                          ; +0x6c, 0x7f7a24\nMOV             R0, R6                                                 ; +0x70, 0x7f7a28\nB               loc_7F7A00                                             ; +0x74, 0x7f7a2c", "xrefs": ["sub_644A78 @ 0x644a8a", "ENGINE_register_all_complete @ 0x7f7078", "ENGINE_register_all_complete @ 0x7f709c", "ENGINE_register_all_pkey_asn1_meths @ 0x7f8718", "ENGINE_register_all_ciphers @ 0x7f8b50", "ENGINE_register_all_DH @ 0x7f8d14", "ENGINE_register_all_digests @ 0x7f8e64", "ENGINE_register_all_DSA @ 0x7f9028", "ENGINE_register_all_EC @ 0x7f9158", "ENGINE_register_all_pkey_meths @ 0x7f92a8", "ENGINE_register_all_RAND @ 0x7f94f0", "ENGINE_register_all_RSA @ 0x7f9620", "<???> @ 0x5553c"], "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"}