//
// sub_800244 from 0x800244 to 0x80028c (72 bytes)
//
// 4 xrefs:
// > ??> @ 0xa31c50
// > ??> @ 0xa31c84
// > ??> @ 0xa31cb8
// > ??> @ 0xa31cec
//
// 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_800244(int a1, unsigned __int8 *a2)
{
_DWORD *cipher_data; // r4
cipher_data = (_DWORD *)EVP_CIPHER_CTX_get_cipher_data(a1);
cipher_data[96] = 0;
DES_set_key_unchecked(a2, (int)cipher_data);
DES_set_key_unchecked(a2 + 8, (int)(cipher_data + 32));
memcpy(cipher_data + 64, cipher_data, 0x80u);
return 1;
}