//
// AES_cbc_encrypt from 0xe04c90 to 0xe04cac (28 bytes)
//
// 3 xrefs:
// > ??> @ 0x626d0
// > sub_DA200C @ 0xda2144
// > ??> @ 0x122b2d8
//
// 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
//
unsigned __int64 __fastcall AES_cbc_encrypt(
_QWORD *a1,
_QWORD *a2,
unsigned __int64 a3,
__int64 a4,
_QWORD *a5,
int a6)
{
if ( a6 )
return CRYPTO_cbc128_encrypt(a1, a2, a3, a4, a5, (void (__fastcall *)(__int64 *, __int64 *, __int64))AES_encrypt);
else
return CRYPTO_cbc128_decrypt(
(unsigned __int64)a1,
a2,
a3,
a4,
(__int64)a5,
(void (__fastcall *)(unsigned __int64, __int64 *, __int64))AES_decrypt);
}