//
// sub_801490 from 0x801490 to 0x8014d4 (68 bytes)
//
// 6 xrefs:
// > ??> @ 0xa31ec0
// > ??> @ 0xa31ef4
// > ??> @ 0xa31f28
// > ??> @ 0xa31f5c
// > ??> @ 0xa31f90
// > ??> @ 0xa31fc4
//
// 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 sub_801490(int a1, int a2)
{
int cipher_data; // r5
int v5; // r7
_DWORD *v6; // r0
cipher_data = EVP_CIPHER_CTX_get_cipher_data(a1);
v5 = EVP_CIPHER_CTX_key_length(a1);
v6 = (_DWORD *)EVP_CIPHER_CTX_get_cipher_data(a1);
RC2_set_key(cipher_data + 4, v5, a2, *v6);
return 1;
}