//
// sub_7FE4C4 from 0x7fe4c4 to 0x7fe538 (116 bytes)
//
// 3 xrefs:
// > ??> @ 0xa31844
// > ??> @ 0xa319b0
// > ??> @ 0xa31b1c
//
// 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_7FE4C4(int a1, int a2, int a3, int a4)
{
int cipher_data; // r6
int v9; // r0
int v11; // [sp+14h] [bp-8h] BYREF
cipher_data = EVP_CIPHER_CTX_get_cipher_data(a1);
v11 = EVP_CIPHER_CTX_num(a1);
v9 = EVP_CIPHER_CTX_iv_noconst(a1);
CRYPTO_ofb128_encrypt(a3, a2, a4, cipher_data, v9, &v11, *(_DWORD *)(cipher_data + 280));
EVP_CIPHER_CTX_set_num(a1, v11);
return 1;
}