// // EVP_PKEY_set_type from 0x805144 to 0x805240 (252 bytes) // // 7 xrefs: // > tls_process_key_exchange @ 0x7a3b2c // > d2i_PrivateKey @ 0x7c3b24 // > EVP_PKCS82PKEY @ 0x803d6c // > EVP_PKEY_copy_parameters @ 0x805314 // > EVP_PKEY_assign @ 0x8054b4 // > sub_84A468 @ 0x84a498 // > @ 0x5d2cc // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall EVP_PKEY_set_type(_DWORD *a1, int a2) { int v4; // r3 void (*v5)(void); // r3 int *v6; // r0 int v7; // r2 int v8; // r3 int v10; // r4 int v11; // [sp+Ch] [bp-4h] BYREF v11 = 0; if ( a1 ) { if ( a1[5] ) { v4 = a1[3]; if ( v4 ) { v5 = *(void (**)(void))(v4 + 88); if ( v5 ) { v5(); a1[5] = 0; } } ENGINE_finish(a1[4]); a1[4] = 0; } if ( a2 == a1[1] && a1[3] ) return 1; ENGINE_finish(a1[4]); a1[4] = 0; v6 = (int *)EVP_PKEY_asn1_find(&v11, a2); if ( v6 ) { v7 = *v6; v8 = v11; a1[3] = v6; *a1 = v7; a1[1] = a2; a1[4] = v8; return 1; } } else { v10 = EVP_PKEY_asn1_find(&v11, a2); ENGINE_finish(v11); if ( v10 ) return 1; } ERR_put_error(6, 158, 156, (int)"crypto/evp/p_lib.c", 204); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source