{"type": "func", "start": 8415616, "end": 8415744, "name": "EVP_PKEY_paramgen_init", "pseudocode": "// \n// EVP_PKEY_paramgen_init from 0x806980 to 0x806a00 (128 bytes)\n// \n// 2 xrefs:\n// > tls_process_key_exchange @ 0x7a3370\n// > <???> @ 0x5d1fc\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 EVP_PKEY_paramgen_init(int *a1)\n{\n  int v2; // r3\n  int (*v3)(void); // r3\n  int result; // r0\n\n  if ( a1 && (v2 = *a1) != 0 && *(_DWORD *)(v2 + 24) )\n  {\n    v3 = *(int (**)(void))(v2 + 20);\n    a1[4] = 2;\n    if ( v3 )\n    {\n      result = v3();\n      if ( result <= 0 )\n        a1[4] = 0;\n    }\n    else\n    {\n      return 1;\n    }\n  }\n  else\n  {\n    ERR_put_error(6, 149, 150, (int)\"crypto/evp/pmeth_gn.c\", 23);\n    return -2;\n  }\n  return result;\n}", "assembly": "; \n; EVP_PKEY_paramgen_init from 0x806980 to 0x806a00 (128 bytes)\n; \n; 2 xrefs:\n; > tls_process_key_exchange @ 0x7a3370\n; > <???> @ 0x5d1fc\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,LR}                                                ; +0x0, 0x806980\nSUBS            R4, R0, #0                                             ; +0x4, 0x806984\nSUB             SP, SP, #8                                             ; +0x8, 0x806988\nBEQ             loc_8069D8                                             ; +0xc, 0x80698c\nLDR             R3, [R4]                                               ; +0x10, 0x806990\nCMP             R3, #0                                                 ; +0x14, 0x806994\nBEQ             loc_8069D8                                             ; +0x18, 0x806998\nLDR             R2, [R3,#0x18]                                         ; +0x1c, 0x80699c\nCMP             R2, #0                                                 ; +0x20, 0x8069a0\nBEQ             loc_8069D8                                             ; +0x24, 0x8069a4\nLDR             R3, [R3,#0x14]                                         ; +0x28, 0x8069a8\nMOV             R2, #2                                                 ; +0x2c, 0x8069ac\nCMP             R3, #0                                                 ; +0x30, 0x8069b0\nSTR             R2, [R4,#0x10]                                         ; +0x34, 0x8069b4\nMOVEQ           R0, #1                                                 ; +0x38, 0x8069b8\nBEQ             loc_8069D0                                             ; +0x3c, 0x8069bc\nBLX             R3                                                     ; +0x40, 0x8069c0\nCMP             R0, #0                                                 ; +0x44, 0x8069c4\nMOVLE           R3, #0                                                 ; +0x48, 0x8069c8\nSTRLE           R3, [R4,#0x10]                                         ; +0x4c, 0x8069cc\nADD             SP, SP, #8                                             ; +0x50, 0x8069d0\nPOP             {R4,PC}                                                ; +0x54, 0x8069d4\nMOV             R3, #0x17                                              ; +0x58, 0x8069d8\nSTR             R3, [SP,#8+var_8]                                      ; +0x5c, 0x8069dc\nLDR             R3, =(aCryptoEvpPmeth_0 - 0x8069F8); \"crypto/evp/pmeth_gn.c\" ; +0x60, 0x8069e0\nMOV             R0, #6                                                 ; +0x64, 0x8069e4\nMOV             R1, #0x95                                              ; +0x68, 0x8069e8\nMOV             R2, #0x96                                              ; +0x6c, 0x8069ec\nADD             R3, PC, R3; \"crypto/evp/pmeth_gn.c\"                    ; +0x70, 0x8069f0\nBL              ERR_put_error                                          ; +0x74, 0x8069f4\nMOV             R0, #0xFFFFFFFE                                        ; +0x78, 0x8069f8\nB               loc_8069D0                                             ; +0x7c, 0x8069fc", "xrefs": ["tls_process_key_exchange @ 0x7a3370", "<???> @ 0x5d1fc"], "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"}