//
// sub_801DC8 from 0x801dc8 to 0x801e34 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0xac0dc4
//
// 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_801DC8(int a1, int a2)
{
_DWORD *cipher_data; // r4
int v5; // r0
cipher_data = (_DWORD *)EVP_CIPHER_CTX_get_cipher_data(a1);
v5 = EVP_CIPHER_CTX_key_length(a1);
RC4_set_key(cipher_data, v5, a2);
MD5_Init(cipher_data + 65);
memcpy(cipher_data + 88, cipher_data + 65, 0x5Cu);
memcpy(cipher_data + 111, cipher_data + 65, 0x5Cu);
cipher_data[134] = -1;
return 1;
}