// // CMS_dataInit from 0x8750a0 to 0x8751b4 (276 bytes) // // 2 xrefs: // > sub_872AE8 @ 0x872b38 // > @ 0x69e8c // // 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 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