// // X509_ATTRIBUTE_set1_data from 0xa52ca4 to 0xa52e28 (388 bytes) // // 3 xrefs: // > X509_ATTRIBUTE_create_by_OBJ @ 0xa52ea4 // > X509_ATTRIBUTE_create_by_OBJ @ 0xa52f08 // > @ 0x806ac // // 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:23 +0000 // int *__fastcall X509_ATTRIBUTE_set1_data(int *result, int a2, const char *a3, int a4) { int v4; // r9 int *v8; // r5 signed int *v9; // r0 int v10; // r8 _DWORD *v11; // r10 char *v12; // r0 int v13; // r0 if ( result ) { v4 = a2 & 0x1000; v8 = result; if ( (a2 & 0x1000) == 0 ) { if ( a4 == -1 ) { v10 = a2 & 0x1000; } else { v9 = (signed int *)ASN1_STRING_type_new(a2); v10 = (int)v9; if ( !v9 ) { v11 = nullptr; goto LABEL_8; } if ( !ASN1_STRING_set(v9, a3, a4) ) { v11 = nullptr; goto LABEL_8; } v4 = a2; } if ( !a2 ) { ASN1_STRING_free(v10); return &dword_0 + 1; } v11 = ASN1_TYPE_new(); if ( !v11 ) { LABEL_8: ERR_put_error(11, 138, 65, (int)"crypto/x509/x509_att.c", 290); ASN1_TYPE_free(v11); ASN1_STRING_free(v10); return nullptr; } if ( a4 == -1 ) { if ( !ASN1_TYPE_set1() ) goto LABEL_8; goto LABEL_15; } LABEL_14: ASN1_TYPE_set(v11, v4, v10); v10 = 0; LABEL_15: if ( OPENSSL_sk_push((int *)v8[1], (int)v11) ) return &dword_0 + 1; goto LABEL_8; } v12 = OBJ_obj2nid(*result); v13 = ASN1_STRING_set_by_NID(0, a3, a4, a2, v12); v10 = v13; if ( v13 ) { v4 = *(_DWORD *)(v13 + 4); v11 = ASN1_TYPE_new(); if ( !v11 ) goto LABEL_8; goto LABEL_14; } ERR_put_error(11, 138, 13, (int)"crypto/x509/x509_att.c", 257); return nullptr; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source