// // CMS_dataInit from 0xa89ca0 to 0xa89db4 (276 bytes) // // 2 xrefs: // > sub_A876E8 @ 0xa87738 // > @ 0x8390c // // 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:54 +0000 // int *__fastcall CMS_dataInit(int *a1, int *a2) { int *v4; // r6 int *result; // r0 int *v6; // r0 if ( a2 ) { v4 = a2; } else { v6 = cms_content_bio(a1); v4 = v6; if ( !v6 ) { ERR_put_error(46, 111, 127, (int)"crypto/cms/cms_lib.c", 64); return nullptr; } } switch ( (unsigned int)OBJ_obj2nid(*a1) ) { case 0x15u: return v4; case 0x16u: result = (int *)cms_SignedData_init_bio(a1); goto LABEL_8; case 0x17u: result = (int *)cms_EnvelopedData_init_bio((int)a1); if ( !result ) goto LABEL_11; goto LABEL_9; case 0x19u: result = (int *)cms_DigestedData_init_bio(a1); goto LABEL_8; case 0x1Au: result = (int *)cms_EncryptedData_init_bio(a1); LABEL_8: if ( result ) { LABEL_9: result = BIO_push(result, (int)v4); } else { LABEL_11: if ( !a2 ) { BIO_free(v4); result = nullptr; } } break; default: ERR_put_error(46, 111, 156, (int)"crypto/cms/cms_lib.c", 94); result = nullptr; break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source