// // sub_A160D4 from 0xa160d4 to 0xa16198 (196 bytes) // // 1 xrefs: // > @ 0xc79178 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:07:49 +0000 // int __fastcall sub_A160D4(int a1, int a2, int a3, unsigned int a4) { unsigned int v4; // r5 unsigned int v5; // r4 int cipher_data; // r9 int v10; // r11 int v11; // r0 int v12; // r1 unsigned int v13; // r2 _BOOL4 v14; // r3 int v16; // [sp+14h] [bp-8h] BYREF if ( a4 > 0x3FFFFFFF ) v4 = 0x40000000; else v4 = a4; v5 = a4; if ( a4 ) { do { v16 = EVP_CIPHER_CTX_num(a1); cipher_data = EVP_CIPHER_CTX_get_cipher_data(a1); v10 = EVP_CIPHER_CTX_iv_noconst(a1); v11 = EVP_CIPHER_CTX_encrypting(a1); v12 = a2; v13 = v5; v5 -= v4; a2 += v4; RC2_cfb64_encrypt(a3, v12, v13, cipher_data + 4, v10, &v16, v11); EVP_CIPHER_CTX_set_num(a1, v16); a3 += v4; if ( v4 >= v5 ) v4 = v5; v14 = v5 >= v4; if ( !v5 ) v14 = 0; } while ( v14 ); } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source