// // a2i_GENERAL_NAME from 0x10766b4 to 0x10769f8 (836 bytes) // // 2 xrefs: // > v2i_GENERAL_NAME_ex @ 0x1076a7c // > @ 0x55e10 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:17:04 +0000 // char *__fastcall a2i_GENERAL_NAME(__int64 a1, int a2, __int64 a3, int a4, char *a5, int a6, int a7, int a8) { char *v8; // x19 __int64 v12; // x21 __int64 v13; // x0 __int64 v14; // x23 int v15; // w0 char **v16; // x0 __int64 v18; // x0 __int16 v19; // w2 int v20; // w4 __int64 v21; // x24 __int64 section; // x26 char *v23; // x24 __int64 v24; // x0 __int64 v25; // x25 __int64 v26; // x0 char *v27; // x0 int v28; // w2 int v29; // w3 int v30; // w4 int v31; // w5 int v32; // w6 int v33; // w7 char *v34; // x19 char ***v35; // x24 __int64 v36; // x0 __int64 v37; // x0 char v38; // [xsp+0h] [xbp+0h] int v39; // [xsp+58h] [xbp+58h] v8 = a5; if ( !a5 ) { ERR_put_error(34, 164, 124, (__int64)"crypto/x509v3/v3_alt.c", 392); return v8; } v12 = a1; if ( !a1 ) { v39 = a6; v37 = GENERAL_NAME_new(); a6 = v39; v12 = v37; if ( !v37 ) { v8 = nullptr; ERR_put_error(34, 164, 65, (__int64)"crypto/x509v3/v3_alt.c", 401); return v8; } } switch ( a4 ) { case 0: v23 = strchr(v8, 59); if ( v23 ) { v24 = OTHERNAME_new(); *(_QWORD *)(v12 + 8) = v24; if ( v24 ) { ASN1_TYPE_free(*(_QWORD *)(v24 + 8)); v25 = *(_QWORD *)(v12 + 8); v26 = ASN1_generate_v3(v23 + 1, a3); *(_QWORD *)(v25 + 8) = v26; if ( v26 ) { v27 = CRYPTO_strndup(v8, (int)v23 - (int)v8, (__int64)"crypto/x509v3/v3_alt.c", 0x213u); v34 = v27; if ( v27 ) { v35 = *(char ****)(v12 + 8); *v35 = OBJ_txt2obj(v27, 0, v28, v29, v30, v31, v32, v33, v38); CRYPTO_free(v34, (__int64)"crypto/x509v3/v3_alt.c", 535); if ( **(_QWORD **)(v12 + 8) ) goto LABEL_13; } } } } ERR_put_error(34, 164, 147, (__int64)"crypto/x509v3/v3_alt.c", 446); goto LABEL_5; case 1: case 2: case 6: v13 = ASN1_IA5STRING_new(); *(_QWORD *)(v12 + 8) = v13; v14 = v13; if ( v13 ) { v15 = strlen(v8); if ( (unsigned int)ASN1_STRING_set(v14, v8, v15) ) goto LABEL_13; } ERR_put_error(34, 164, 65, (__int64)"crypto/x509v3/v3_alt.c", 459); goto LABEL_5; case 4: v21 = X509_NAME_new(); if ( !v21 ) { section = 0; goto LABEL_22; } section = X509V3_get_section(a3, v8); if ( !section ) { ERR_put_error(34, 144, 150, (__int64)"crypto/x509v3/v3_alt.c", 551); ERR_add_error_data(2, "section=", v8); goto LABEL_22; } if ( !(unsigned int)X509V3_NAME_from_section(v21, section, 4097) ) { LABEL_22: X509_NAME_free(v21); X509V3_section_free(a3, section); ERR_put_error(34, 164, 149, (__int64)"crypto/x509v3/v3_alt.c", 439); goto LABEL_5; } *(_QWORD *)(v12 + 8) = v21; X509V3_section_free(a3, section); goto LABEL_13; case 7: if ( a6 ) { v18 = a2i_IPADDRESS_NC(v8); *(_QWORD *)(v12 + 8) = v18; if ( v18 ) goto LABEL_13; goto LABEL_17; } v36 = a2i_IPADDRESS(v8); *(_QWORD *)(v12 + 8) = v36; if ( !v36 ) { LABEL_17: v19 = 118; v20 = 431; goto LABEL_18; } LABEL_13: *(_DWORD *)v12 = a4; return (char *)v12; case 8: v16 = OBJ_txt2obj(v8, 0, a3, a4, (int)a5, a6, a7, a8, v38); if ( v16 ) { *(_QWORD *)(v12 + 8) = v16; goto LABEL_13; } v19 = 119; v20 = 417; LABEL_18: ERR_put_error(34, 164, v19, (__int64)"crypto/x509v3/v3_alt.c", v20); ERR_add_error_data(2, "value=", v8); LABEL_5: v8 = nullptr; if ( !a1 ) GENERAL_NAME_free(v12); return v8; default: ERR_put_error(34, 164, 167, (__int64)"crypto/x509v3/v3_alt.c", 451); goto LABEL_5; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source