//
// AES_cbc_encrypt from 0x85faa0 to 0x85fae0 (64 bytes)
//
// 3 xrefs:
// > ??> @ 0x62acc
// > sub_7FBFC0 @ 0x7fc080
// > ??> @ 0xab8614
//
// 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
//
void *__fastcall AES_cbc_encrypt(int a1, unsigned int a2, unsigned int a3, int a4, int *a5, int a6)
{
if ( a6 )
return CRYPTO_cbc128_encrypt(a1, a2, a3, a4, a5, (void (__fastcall *)(int *, int *, int))AES_encrypt);
else
return (void *)CRYPTO_cbc128_decrypt(
a1,
a2,
a3,
a4,
(unsigned int)a5,
(void (__fastcall *)(_DWORD *, _BYTE *, int))AES_decrypt);
}