{"type": "func", "start": 14274132, "end": 14274368, "name": "ENGINE_set_default", "pseudocode": "// \n// ENGINE_set_default from 0xd9ce54 to 0xd9cf40 (236 bytes)\n// \n// 3 xrefs:\n// > sub_BB8EA0 @ 0xbb8ec4\n// > ENGINE_set_default_string @ 0xd9cf88\n// > <???> @ 0xc3bb8\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\nbool __fastcall ENGINE_set_default(__int64 a1, __int16 a2)\n{\n  if ( (a2 & 0x40) != 0 && !(unsigned int)ENGINE_set_default_ciphers() )\n    return 0;\n  if ( (a2 & 0x80) != 0 )\n  {\n    if ( !(unsigned int)ENGINE_set_default_digests(a1) )\n      return 0;\n    if ( (a2 & 1) == 0 )\n    {\nLABEL_4:\n      if ( (a2 & 2) == 0 )\n        goto LABEL_5;\n      goto LABEL_17;\n    }\n  }\n  else if ( (a2 & 1) == 0 )\n  {\n    goto LABEL_4;\n  }\n  if ( !(unsigned int)ENGINE_set_default_RSA(a1) )\n    return 0;\n  if ( (a2 & 2) == 0 )\n  {\nLABEL_5:\n    if ( (a2 & 4) == 0 )\n      goto LABEL_6;\n    goto LABEL_19;\n  }\nLABEL_17:\n  if ( !(unsigned int)ENGINE_set_default_DSA(a1) )\n    return 0;\n  if ( (a2 & 4) == 0 )\n  {\nLABEL_6:\n    if ( (a2 & 0x800) == 0 )\n      goto LABEL_7;\nLABEL_21:\n    if ( !(unsigned int)ENGINE_set_default_EC(a1) )\n      return 0;\n    if ( (a2 & 8) == 0 )\n      goto LABEL_8;\n    goto LABEL_23;\n  }\nLABEL_19:\n  if ( !(unsigned int)ENGINE_set_default_DH(a1) )\n    return 0;\n  if ( (a2 & 0x800) != 0 )\n    goto LABEL_21;\nLABEL_7:\n  if ( (a2 & 8) == 0 )\n  {\nLABEL_8:\n    if ( (a2 & 0x200) == 0 )\n      goto LABEL_9;\nLABEL_25:\n    if ( (unsigned int)ENGINE_set_default_pkey_meths(a1) )\n    {\n      if ( (a2 & 0x400) == 0 )\n        return 1;\n      return (unsigned int)ENGINE_set_default_pkey_asn1_meths(a1) != 0;\n    }\n    return 0;\n  }\nLABEL_23:\n  if ( !(unsigned int)ENGINE_set_default_RAND(a1) )\n    return 0;\n  if ( (a2 & 0x200) != 0 )\n    goto LABEL_25;\nLABEL_9:\n  if ( (a2 & 0x400) == 0 )\n    return 1;\n  return (unsigned int)ENGINE_set_default_pkey_asn1_meths(a1) != 0;\n}", "assembly": "; \n; ENGINE_set_default from 0xd9ce54 to 0xd9cf40 (236 bytes)\n; \n; 3 xrefs:\n; > sub_BB8EA0 @ 0xbb8ec4\n; > ENGINE_set_default_string @ 0xd9cf88\n; > <???> @ 0xc3bb8\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0xd9ce54\nMOV             X29, SP                                                ; +0x4, 0xd9ce58\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xd9ce5c\nMOV             W19, W1                                                ; +0xc, 0xd9ce60\nMOV             X20, X0                                                ; +0x10, 0xd9ce64\nTBNZ            W19, #6, loc_D9CE9C                                    ; +0x14, 0xd9ce68\nTBNZ            W19, #7, loc_D9CEB4                                    ; +0x18, 0xd9ce6c\nTBNZ            W19, #0, loc_D9CEC4                                    ; +0x1c, 0xd9ce70\nTBNZ            W19, #1, loc_D9CED4                                    ; +0x20, 0xd9ce74\nTBNZ            W19, #2, loc_D9CEE4                                    ; +0x24, 0xd9ce78\nTBNZ            W19, #0xB, loc_D9CEF4                                  ; +0x28, 0xd9ce7c\nTBNZ            W19, #3, loc_D9CF04                                    ; +0x2c, 0xd9ce80\nTBNZ            W19, #9, loc_D9CF14                                    ; +0x30, 0xd9ce84\nTBNZ            W19, #0xA, loc_D9CF24                                  ; +0x34, 0xd9ce88\nMOV             W0, #1                                                 ; +0x38, 0xd9ce8c\nLDP             X19, X20, [SP,#var_s10]                                ; +0x3c, 0xd9ce90\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x40, 0xd9ce94\nRET                                                                    ; +0x44, 0xd9ce98\nBL              ENGINE_set_default_ciphers                             ; +0x48, 0xd9ce9c\nCBNZ            W0, loc_D9CE6C                                         ; +0x4c, 0xd9cea0\nMOV             W0, #0                                                 ; +0x50, 0xd9cea4\nLDP             X19, X20, [SP,#var_s10]                                ; +0x54, 0xd9cea8\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x58, 0xd9ceac\nRET                                                                    ; +0x5c, 0xd9ceb0\nMOV             X0, X20                                                ; +0x60, 0xd9ceb4\nBL              ENGINE_set_default_digests                             ; +0x64, 0xd9ceb8\nCBZ             W0, loc_D9CEA4                                         ; +0x68, 0xd9cebc\nTBZ             W19, #0, loc_D9CE74                                    ; +0x6c, 0xd9cec0\nMOV             X0, X20                                                ; +0x70, 0xd9cec4\nBL              ENGINE_set_default_RSA                                 ; +0x74, 0xd9cec8\nCBZ             W0, loc_D9CEA4                                         ; +0x78, 0xd9cecc\nTBZ             W19, #1, loc_D9CE78                                    ; +0x7c, 0xd9ced0\nMOV             X0, X20                                                ; +0x80, 0xd9ced4\nBL              ENGINE_set_default_DSA                                 ; +0x84, 0xd9ced8\nCBZ             W0, loc_D9CEA4                                         ; +0x88, 0xd9cedc\nTBZ             W19, #2, loc_D9CE7C                                    ; +0x8c, 0xd9cee0\nMOV             X0, X20                                                ; +0x90, 0xd9cee4\nBL              ENGINE_set_default_DH                                  ; +0x94, 0xd9cee8\nCBZ             W0, loc_D9CEA4                                         ; +0x98, 0xd9ceec\nTBZ             W19, #0xB, loc_D9CE80                                  ; +0x9c, 0xd9cef0\nMOV             X0, X20                                                ; +0xa0, 0xd9cef4\nBL              ENGINE_set_default_EC                                  ; +0xa4, 0xd9cef8\nCBZ             W0, loc_D9CEA4                                         ; +0xa8, 0xd9cefc\nTBZ             W19, #3, loc_D9CE84                                    ; +0xac, 0xd9cf00\nMOV             X0, X20                                                ; +0xb0, 0xd9cf04\nBL              ENGINE_set_default_RAND                                ; +0xb4, 0xd9cf08\nCBZ             W0, loc_D9CEA4                                         ; +0xb8, 0xd9cf0c\nTBZ             W19, #9, loc_D9CE88                                    ; +0xbc, 0xd9cf10\nMOV             X0, X20                                                ; +0xc0, 0xd9cf14\nBL              ENGINE_set_default_pkey_meths                          ; +0xc4, 0xd9cf18\nCBZ             W0, loc_D9CEA4                                         ; +0xc8, 0xd9cf1c\nTBZ             W19, #0xA, loc_D9CE8C                                  ; +0xcc, 0xd9cf20\nMOV             X0, X20                                                ; +0xd0, 0xd9cf24\nBL              ENGINE_set_default_pkey_asn1_meths                     ; +0xd4, 0xd9cf28\nCMP             W0, WZR                                                ; +0xd8, 0xd9cf2c\nCSET            W0, NE                                                 ; +0xdc, 0xd9cf30\nLDP             X19, X20, [SP,#var_s10]                                ; +0xe0, 0xd9cf34\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0xe4, 0xd9cf38\nRET                                                                    ; +0xe8, 0xd9cf3c", "xrefs": ["sub_BB8EA0 @ 0xbb8ec4", "ENGINE_set_default_string @ 0xd9cf88", "<???> @ 0xc3bb8"], "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"}