{"type": "func", "start": 8280112, "end": 8280384, "name": "ECParameters_print", "pseudocode": "// \n// ECParameters_print from 0x7e5830 to 0x7e5940 (272 bytes)\n// \n// 2 xrefs:\n// > ECParameters_print_fp @ 0x7ef30c\n// > <???> @ 0x6123c\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 ECParameters_print(int a1, int a2)\n{\n  int v3; // r5\n  int v4; // r5\n  int v6; // r0\n\n  if ( a2 && (v3 = EC_KEY_get0_group(a2)) != 0 )\n  {\n    if ( BIO_indent(a1, 4, 128)\n      && (v6 = EC_GROUP_order_bits(v3), BIO_printf(a1, \"%s: (%d bit)\\n\", \"ECDSA-Parameters\", v6) > 0)\n      && ECPKParameters_print(a1, v3, 4) )\n    {\n      v4 = 1;\n    }\n    else\n    {\n      ERR_put_error(16, 221, 16, \"crypto/ec/ec_ameth.c\", 392);\n      v4 = 0;\n    }\n    CRYPTO_clear_free(0, 0, \"crypto/ec/ec_ameth.c\", 393);\n    CRYPTO_free(0, \"crypto/ec/ec_ameth.c\", 394);\n    return v4;\n  }\n  else\n  {\n    ERR_put_error(16, 221, 67, \"crypto/ec/ec_ameth.c\", 344);\n    return 0;\n  }\n}", "assembly": "; \n; ECParameters_print from 0x7e5830 to 0x7e5940 (272 bytes)\n; \n; 2 xrefs:\n; > ECParameters_print_fp @ 0x7ef30c\n; > <???> @ 0x6123c\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\nCMP             R1, #0                                                 ; +0x0, 0x7e5830\nPUSH            {R4,R5,LR}                                             ; +0x4, 0x7e5834\nSUB             SP, SP, #0xC                                           ; +0x8, 0x7e5838\nBEQ             loc_7E5914                                             ; +0xc, 0x7e583c\nMOV             R4, R0                                                 ; +0x10, 0x7e5840\nMOV             R0, R1                                                 ; +0x14, 0x7e5844\nBL              EC_KEY_get0_group                                      ; +0x18, 0x7e5848\nSUBS            R5, R0, #0                                             ; +0x1c, 0x7e584c\nBEQ             loc_7E5914                                             ; +0x20, 0x7e5850\nMOV             R0, R4                                                 ; +0x24, 0x7e5854\nMOV             R1, #4                                                 ; +0x28, 0x7e5858\nMOV             R2, #0x80                                              ; +0x2c, 0x7e585c\nBL              BIO_indent                                             ; +0x30, 0x7e5860\nCMP             R0, #0                                                 ; +0x34, 0x7e5864\nBNE             loc_7E58C8                                             ; +0x38, 0x7e5868\nMOV             R3, #0x188                                             ; +0x3c, 0x7e586c\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x40, 0x7e5870\nLDR             R3, =(aCryptoEcEcAmet - 0x7E588C); \"crypto/ec/ec_ameth.c\" ; +0x44, 0x7e5874\nMOV             R0, #0x10                                              ; +0x48, 0x7e5878\nMOV             R2, R0                                                 ; +0x4c, 0x7e587c\nMOV             R1, #0xDD                                              ; +0x50, 0x7e5880\nADD             R3, PC, R3; \"crypto/ec/ec_ameth.c\"                     ; +0x54, 0x7e5884\nBL              ERR_put_error                                          ; +0x58, 0x7e5888\nMOV             R5, #0                                                 ; +0x5c, 0x7e588c\nLDR             R4, =(aCryptoEcEcAmet - 0x7E58A0); \"crypto/ec/ec_ameth.c\" ; +0x60, 0x7e5890\nMOV             R0, #0                                                 ; +0x64, 0x7e5894\nADD             R4, PC, R4; \"crypto/ec/ec_ameth.c\"                     ; +0x68, 0x7e5898\nMOV             R2, R4                                                 ; +0x6c, 0x7e589c\nMOV             R1, R0                                                 ; +0x70, 0x7e58a0\nLDR             R3, =0x189                                             ; +0x74, 0x7e58a4\nBL              CRYPTO_clear_free                                      ; +0x78, 0x7e58a8\nMOV             R1, R4                                                 ; +0x7c, 0x7e58ac\nMOV             R0, #0                                                 ; +0x80, 0x7e58b0\nLDR             R2, =0x18A                                             ; +0x84, 0x7e58b4\nBL              CRYPTO_free                                            ; +0x88, 0x7e58b8\nMOV             R0, R5                                                 ; +0x8c, 0x7e58bc\nADD             SP, SP, #0xC                                           ; +0x90, 0x7e58c0\nPOP             {R4,R5,PC}                                             ; +0x94, 0x7e58c4\nMOV             R0, R5                                                 ; +0x98, 0x7e58c8\nBL              EC_GROUP_order_bits                                    ; +0x9c, 0x7e58cc\nLDR             R1, =(aSDBit - 0x7E58E0); \"%s: (%d bit)\\n\"             ; +0xa0, 0x7e58d0\nLDR             R2, =(aEcdsaParameter - 0x7E58E4); \"ECDSA-Parameters\"  ; +0xa4, 0x7e58d4\nADD             R1, PC, R1; \"%s: (%d bit)\\n\"                           ; +0xa8, 0x7e58d8\nADD             R2, PC, R2; \"ECDSA-Parameters\"                         ; +0xac, 0x7e58dc\nMOV             R3, R0                                                 ; +0xb0, 0x7e58e0\nMOV             R0, R4                                                 ; +0xb4, 0x7e58e4\nBL              BIO_printf                                             ; +0xb8, 0x7e58e8\nCMP             R0, #0                                                 ; +0xbc, 0x7e58ec\nBLE             loc_7E586C                                             ; +0xc0, 0x7e58f0\nMOV             R0, R4                                                 ; +0xc4, 0x7e58f4\nMOV             R1, R5                                                 ; +0xc8, 0x7e58f8\nMOV             R2, #4                                                 ; +0xcc, 0x7e58fc\nBL              ECPKParameters_print                                   ; +0xd0, 0x7e5900\nCMP             R0, #0                                                 ; +0xd4, 0x7e5904\nBEQ             loc_7E586C                                             ; +0xd8, 0x7e5908\nMOV             R5, #1                                                 ; +0xdc, 0x7e590c\nB               loc_7E5890                                             ; +0xe0, 0x7e5910\nMOV             R3, #0x158                                             ; +0xe4, 0x7e5914\nSTR             R3, [SP,#0xC+var_C]                                    ; +0xe8, 0x7e5918\nLDR             R3, =(aCryptoEcEcAmet - 0x7E5934); \"crypto/ec/ec_ameth.c\" ; +0xec, 0x7e591c\nMOV             R0, #0x10                                              ; +0xf0, 0x7e5920\nMOV             R1, #0xDD                                              ; +0xf4, 0x7e5924\nMOV             R2, #0x43 ; 'C'                                        ; +0xf8, 0x7e5928\nADD             R3, PC, R3; \"crypto/ec/ec_ameth.c\"                     ; +0xfc, 0x7e592c\nBL              ERR_put_error                                          ; +0x100, 0x7e5930\nMOV             R0, #0                                                 ; +0x104, 0x7e5934\nADD             SP, SP, #0xC                                           ; +0x108, 0x7e5938\nPOP             {R4,R5,PC}                                             ; +0x10c, 0x7e593c", "xrefs": ["ECParameters_print_fp @ 0x7ef30c", "<???> @ 0x6123c"], "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"}