//
// sub_800200 from 0x800200 to 0x800244 (68 bytes)
//
// 7 xrefs:
// > ??> @ 0xa31d20
// > ??> @ 0xa31d54
// > ??> @ 0xa31d88
// > ??> @ 0xa31dbc
// > ??> @ 0xa31df0
// > ??> @ 0xa31e24
// > ??> @ 0xa31e58
//
// 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_800200(int a1, unsigned __int8 *a2)
{
int cipher_data; // r4
cipher_data = EVP_CIPHER_CTX_get_cipher_data(a1);
*(_DWORD *)(cipher_data + 384) = 0;
DES_set_key_unchecked(a2, cipher_data);
DES_set_key_unchecked(a2 + 8, cipher_data + 128);
DES_set_key_unchecked(a2 + 16, cipher_data + 256);
return 1;
}