{"type": "func", "start": 10476440, "end": 10476588, "name": "EC_KEY_check_key", "pseudocode": "// \n// EC_KEY_check_key from 0x9fdb98 to 0x9fdc2c (148 bytes)\n// \n// 2 xrefs:\n// > EC_KEY_set_public_key_affine_coordinates @ 0x9fe24c\n// > <???> @ 0x7b18c\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:36 +0000\n// \n\nint __fastcall EC_KEY_check_key(int a1)\n{\n  int v1; // r2\n  int (*v2)(void); // r3\n\n  if ( a1 && (v1 = *(_DWORD *)(a1 + 12)) != 0 && *(_DWORD *)(a1 + 16) )\n  {\n    v2 = *(int (**)(void))(*(_DWORD *)v1 + 176);\n    if ( v2 )\n      return v2();\n    ERR_put_error(16, 177, 66, \"crypto/ec/ec_key.c\", 263);\n  }\n  else\n  {\n    ERR_put_error(16, 177, 67, \"crypto/ec/ec_key.c\", 258);\n  }\n  return 0;\n}", "assembly": "; \n; EC_KEY_check_key from 0x9fdb98 to 0x9fdc2c (148 bytes)\n; \n; 2 xrefs:\n; > EC_KEY_set_public_key_affine_coordinates @ 0x9fe24c\n; > <???> @ 0x7b18c\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:36 +0000\n; \nSUBS            R3, R0, #0                                             ; +0x0, 0x9fdb98\nPUSH            {LR}                                                   ; +0x4, 0x9fdb9c\nSUB             SP, SP, #0xC                                           ; +0x8, 0x9fdba0\nBEQ             loc_9FDBDC                                             ; +0xc, 0x9fdba4\nLDR             R2, [R3,#0xC]                                          ; +0x10, 0x9fdba8\nCMP             R2, #0                                                 ; +0x14, 0x9fdbac\nBEQ             loc_9FDBDC                                             ; +0x18, 0x9fdbb0\nLDR             R3, [R3,#0x10]                                         ; +0x1c, 0x9fdbb4\nCMP             R3, #0                                                 ; +0x20, 0x9fdbb8\nBEQ             loc_9FDBDC                                             ; +0x24, 0x9fdbbc\nLDR             R3, [R2]                                               ; +0x28, 0x9fdbc0\nLDR             R3, [R3,#0xB0]                                         ; +0x2c, 0x9fdbc4\nCMP             R3, #0                                                 ; +0x30, 0x9fdbc8\nBEQ             loc_9FDC08                                             ; +0x34, 0x9fdbcc\nADD             SP, SP, #0xC                                           ; +0x38, 0x9fdbd0\nPOP             {LR}                                                   ; +0x3c, 0x9fdbd4\nBX              R3                                                     ; +0x40, 0x9fdbd8\nLDR             R3, =0x102                                             ; +0x44, 0x9fdbdc\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x48, 0x9fdbe0\nLDR             R3, =(aCryptoEcEcKeyC - 0x9FDBFC); \"crypto/ec/ec_key.c\" ; +0x4c, 0x9fdbe4\nMOV             R0, #0x10                                              ; +0x50, 0x9fdbe8\nMOV             R1, #0xB1                                              ; +0x54, 0x9fdbec\nMOV             R2, #0x43 ; 'C'                                        ; +0x58, 0x9fdbf0\nADD             R3, PC, R3; \"crypto/ec/ec_key.c\"                       ; +0x5c, 0x9fdbf4\nBL              ERR_put_error                                          ; +0x60, 0x9fdbf8\nMOV             R0, #0                                                 ; +0x64, 0x9fdbfc\nADD             SP, SP, #0xC                                           ; +0x68, 0x9fdc00\nPOP             {PC}                                                   ; +0x6c, 0x9fdc04\nLDR             R3, =0x107                                             ; +0x70, 0x9fdc08\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x74, 0x9fdc0c\nLDR             R3, =(aCryptoEcEcKeyC - 0x9FDC28); \"crypto/ec/ec_key.c\" ; +0x78, 0x9fdc10\nMOV             R0, #0x10                                              ; +0x7c, 0x9fdc14\nMOV             R1, #0xB1                                              ; +0x80, 0x9fdc18\nMOV             R2, #0x42 ; 'B'                                        ; +0x84, 0x9fdc1c\nADD             R3, PC, R3; \"crypto/ec/ec_key.c\"                       ; +0x88, 0x9fdc20\nBL              ERR_put_error                                          ; +0x8c, 0x9fdc24\nB               loc_9FDBFC                                             ; +0x90, 0x9fdc28", "xrefs": ["EC_KEY_set_public_key_affine_coordinates @ 0x9fe24c", "<???> @ 0x7b18c"], "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"}