{"type": "func", "start": 14272604, "end": 14272872, "name": "ENGINE_ctrl_cmd", "pseudocode": "// \n// ENGINE_ctrl_cmd from 0xd9c85c to 0xd9c968 (268 bytes)\n// \n// 2 xrefs:\n// > sub_BB78D0 @ 0xbb8624\n// > <???> @ 0x4a628\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_ctrl_cmd(__int64 a1, const char *a2, __int64 a3, const char *a4, __int64 a5, int a6)\n{\n  __int64 v6; // x19\n  int v11; // [xsp+38h] [xbp+38h]\n\n  v6 = a1;\n  if ( a1 && a2 )\n  {\n    if ( *(_QWORD *)(a1 + 112) && (v11 = a6, a1 = ENGINE_ctrl(a1, 13, 0, a2, 0), a6 = v11, (int)a1 > 0) )\n    {\n      return (int)ENGINE_ctrl(v6, (unsigned int)a1, a3, a4, a5) > 0;\n    }\n    else if ( a6 )\n    {\n      ERR_clear_error(a1);\n      return 1;\n    }\n    else\n    {\n      ERR_put_error(38, 178, 137, \"crypto/engine/eng_ctrl.c\", 225);\n      return 0;\n    }\n  }\n  else\n  {\n    ERR_put_error(38, 178, 67, \"crypto/engine/eng_ctrl.c\", 207);\n    return 0;\n  }\n}", "assembly": "; \n; ENGINE_ctrl_cmd from 0xd9c85c to 0xd9c968 (268 bytes)\n; \n; 2 xrefs:\n; > sub_BB78D0 @ 0xbb8624\n; > <???> @ 0x4a628\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,#var_40]!                                ; +0x0, 0xd9c85c\nMOV             X6, X1                                                 ; +0x4, 0xd9c860\nMOV             X29, SP                                                ; +0x8, 0xd9c864\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0xc, 0xd9c868\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x10, 0xd9c86c\nMOV             X19, X0                                                ; +0x14, 0xd9c870\nMOV             X22, X2                                                ; +0x18, 0xd9c874\nMOV             X21, X3                                                ; +0x1c, 0xd9c878\nMOV             X20, X4                                                ; +0x20, 0xd9c87c\nCBZ             X0, loc_D9C938                                         ; +0x24, 0xd9c880\nCBZ             X1, loc_D9C938                                         ; +0x28, 0xd9c884\nLDR             X1, [X0,#0x70]                                         ; +0x2c, 0xd9c888\nCBZ             X1, loc_D9C8E4                                         ; +0x30, 0xd9c88c\nMOV             X2, #0                                                 ; +0x34, 0xd9c890\nMOV             W1, #0xD                                               ; +0x38, 0xd9c894\nMOV             X3, X6                                                 ; +0x3c, 0xd9c898\nMOV             X4, X2                                                 ; +0x40, 0xd9c89c\nSTR             X5, [X29,#0x40+var_8]                                  ; +0x44, 0xd9c8a0\nBL              ENGINE_ctrl                                            ; +0x48, 0xd9c8a4\nCMP             W0, WZR                                                ; +0x4c, 0xd9c8a8\nMOV             W1, W0                                                 ; +0x50, 0xd9c8ac\nLDR             X5, [X29,#0x40+var_8]                                  ; +0x54, 0xd9c8b0\nB.LE            loc_D9C8E4                                             ; +0x58, 0xd9c8b4\nMOV             X2, X22                                                ; +0x5c, 0xd9c8b8\nMOV             X3, X21                                                ; +0x60, 0xd9c8bc\nMOV             X4, X20                                                ; +0x64, 0xd9c8c0\nMOV             X0, X19                                                ; +0x68, 0xd9c8c4\nBL              ENGINE_ctrl                                            ; +0x6c, 0xd9c8c8\nCMP             W0, WZR                                                ; +0x70, 0xd9c8cc\nCSET            W0, GT                                                 ; +0x74, 0xd9c8d0\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x78, 0xd9c8d4\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x7c, 0xd9c8d8\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x80, 0xd9c8dc\nRET                                                                    ; +0x84, 0xd9c8e0\nCBZ             W5, loc_D9C900                                         ; +0x88, 0xd9c8e4\nBL              ERR_clear_error                                        ; +0x8c, 0xd9c8e8\nMOV             W0, #1                                                 ; +0x90, 0xd9c8ec\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x94, 0xd9c8f0\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x98, 0xd9c8f4\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x9c, 0xd9c8f8\nRET                                                                    ; +0xa0, 0xd9c8fc\nADRP            X3, #aCryptoEngineEn_0@PAGE; \"crypto/engine/eng_ctrl.c\" ; +0xa4, 0xd9c900\nMOV             W0, #0x26 ; '&'                                        ; +0xa8, 0xd9c904\nMOV             W1, #0xB2                                              ; +0xac, 0xd9c908\nMOV             W2, #0x89                                              ; +0xb0, 0xd9c90c\nADD             X3, X3, #aCryptoEngineEn_0@PAGEOFF; \"crypto/engine/eng_ctrl.c\" ; +0xb4, 0xd9c910\nMOV             W4, #0xE1                                              ; +0xb8, 0xd9c914\nSTR             X5, [X29,#0x40+var_8]                                  ; +0xbc, 0xd9c918\nBL              ERR_put_error                                          ; +0xc0, 0xd9c91c\nLDR             X5, [X29,#0x40+var_8]                                  ; +0xc4, 0xd9c920\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xc8, 0xd9c924\nMOV             W0, W5                                                 ; +0xcc, 0xd9c928\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xd0, 0xd9c92c\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xd4, 0xd9c930\nRET                                                                    ; +0xd8, 0xd9c934\nADRP            X3, #aCryptoEngineEn_0@PAGE; \"crypto/engine/eng_ctrl.c\" ; +0xdc, 0xd9c938\nMOV             W0, #0x26 ; '&'                                        ; +0xe0, 0xd9c93c\nMOV             W1, #0xB2                                              ; +0xe4, 0xd9c940\nMOV             W2, #0x43 ; 'C'                                        ; +0xe8, 0xd9c944\nADD             X3, X3, #aCryptoEngineEn_0@PAGEOFF; \"crypto/engine/eng_ctrl.c\" ; +0xec, 0xd9c948\nMOV             W4, #0xCF                                              ; +0xf0, 0xd9c94c\nBL              ERR_put_error                                          ; +0xf4, 0xd9c950\nMOV             W0, #0                                                 ; +0xf8, 0xd9c954\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xfc, 0xd9c958\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x100, 0xd9c95c\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x104, 0xd9c960\nRET                                                                    ; +0x108, 0xd9c964", "xrefs": ["sub_BB78D0 @ 0xbb8624", "<???> @ 0x4a628"], "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"}