// // sub_8011CC from 0x8011cc to 0x801310 (324 bytes) // // 6 xrefs: // > @ 0xa31ed4 // > @ 0xa31f08 // > @ 0xa31f3c // > @ 0xa31f70 // > @ 0xa31fa4 // > @ 0xa31fd8 // // 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_8011CC(int a1, int a2) { unsigned int v4; // r4 int v5; // r6 int v6; // r8 int v8; // [sp+Ch] [bp-14h] BYREF _BYTE v9[16]; // [sp+10h] [bp-10h] BYREF v8 = 0; if ( a2 ) { v4 = EVP_CIPHER_CTX_iv_length(a1); if ( v4 > 0x10 ) OPENSSL_die("assertion failed: l <= sizeof(iv)", "crypto/evp/e_rc2.c", 130); if ( v4 != ASN1_TYPE_get_int_octetstring(a2, &v8, v9, v4) ) return -1; switch ( v8 ) { case 58: v5 = 16; v6 = 128; break; case 120: v5 = 8; v6 = 64; break; case 160: v5 = 5; v6 = 40; break; default: ERR_put_error(6, 109, 108, (int)"crypto/evp/e_rc2.c", 115); return -1; } if ( !v4 || EVP_CipherInit_ex(a1, 0, 0, 0, v9, -1) ) { EVP_CIPHER_CTX_ctrl(a1, 3, v6, 0); if ( EVP_CIPHER_CTX_set_key_length(a1, v5) > 0 ) return v4; } return -1; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source