// // cms_env_asn1_ctrl from 0xa87918 to 0xa87a04 (236 bytes) // // 6 xrefs: // > CMS_RecipientInfo_decrypt @ 0xa88190 // > CMS_RecipientInfo_encrypt @ 0xa886dc // > CMS_add1_recipient_cert @ 0xa88d84 // > CMS_RecipientInfo_kari_decrypt @ 0xa8948c // > cms_RecipientInfo_kari_encrypt @ 0xa898c0 // > @ 0x83aac // // 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:08:53 +0000 // int __fastcall cms_env_asn1_ctrl(_DWORD *a1, int a2) { int v3; // r0 int v4; // r3 int (__fastcall *v5)(int, int, int, _DWORD *); // r12 int v6; // r0 int v8; // r0 int v9; // [sp+Ch] [bp-4h] if ( *a1 ) { if ( *a1 != 1 ) return 0; v9 = a2; v8 = *(_DWORD *)(a1[1] + 20); if ( !v8 ) return 0; v3 = EVP_PKEY_CTX_get0_pkey(v8); a2 = v9; if ( !v3 ) return 0; } else { v3 = *(_DWORD *)(a1[1] + 20); } v4 = *(_DWORD *)(v3 + 12); if ( !v4 ) return 1; v5 = *(int (__fastcall **)(int, int, int, _DWORD *))(v4 + 92); if ( !v5 ) return 1; v6 = v5(v3, 7, a2, a1); if ( v6 != -2 ) { if ( v6 > 0 ) return 1; ERR_put_error(46, 171, 111, (int)"crypto/cms/cms_env.c", 75); return 0; } ERR_put_error(46, 171, 125, (int)"crypto/cms/cms_env.c", 71); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source