// // sub_E0E46C from 0xe0e46c to 0xe0e7b0 (836 bytes) // // 2 xrefs: // > ASN1_add_stable_module @ 0xe0e7b4 // > ASN1_add_stable_module @ 0xe0e7c0 // // 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 // __int64 __fastcall sub_E0E46C(__int64 a1, __int64 a2) { int v3; // w28 __int64 value; // x0 unsigned int *section; // x0 unsigned int *v6; // d9 __int64 v7; // x0 __int64 v8; // x20 const char *v9; // x21 int v10; // w25 int *v11; // x0 unsigned int *v12; // x22 __int64 v13; // x26 int v14; // w19 unsigned __int64 v15; // d10 unsigned __int64 v16; // d8 __int64 v17; // x0 const char *v18; // x20 __int64 v19; // x21 const char *v20; // x20 char *v22; // [xsp+80h] [xbp+80h] BYREF __int64 v23; // [xsp+88h] [xbp+88h] BYREF v3 = 0; value = CONF_imodule_get_value(a1); section = (unsigned int *)NCONF_get_section(a2, value); v6 = section; if ( section ) { if ( (int)OPENSSL_sk_num(section) <= 0 ) { return 1; } else { while ( 1 ) { v7 = OPENSSL_sk_value((__int64)v6, v3); v8 = *(_QWORD *)(v7 + 8); v9 = *(const char **)(v7 + 16); v23 = 0; v10 = (unsigned int)OBJ_sn2nid(v8); if ( !v10 && (v10 = (unsigned int)OBJ_ln2nid(v8)) == 0 || (v11 = X509V3_parse_list(v9), (v12 = (unsigned int *)v11) == nullptr) ) { v12 = nullptr; ERR_put_error(13, 222, 218, (__int64)"crypto/asn1/asn_mstbl.c", 100); ERR_add_error_data(4, "name=", v8, ", value=", v9); goto LABEL_20; } v13 = 0; v14 = 0; v15 = -1; v16 = -1; if ( (int)OPENSSL_sk_num((unsigned int *)v11) > 0 ) { while ( 1 ) { v17 = OPENSSL_sk_value((__int64)v12, v14); v18 = *(const char **)(v17 + 8); v19 = v17; if ( !strcmp(v18, "min") ) break; if ( !strcmp(v18, "max") ) { v15 = strtoul(*(const char **)(v19 + 16), &v22, 0); if ( *v22 ) goto LABEL_19; ++v14; } else { if ( strcmp(v18, "mask") ) { if ( strcmp(v18, "flags") ) goto LABEL_19; v20 = *(const char **)(v19 + 16); if ( !strcmp(v20, "nomask") ) { v13 = 2; ++v14; goto LABEL_14; } if ( strcmp(v20, "none") ) goto LABEL_19; v13 = 1; goto LABEL_13; } if ( !(unsigned int)ASN1_str2mask(*(char **)(v19 + 16), &v23) || !v23 ) { LABEL_19: ERR_put_error(13, 222, 218, (__int64)"crypto/asn1/asn_mstbl.c", 100); ERR_add_error_data(4, "field=", *(_QWORD *)(v19 + 8), ", value=", *(_QWORD *)(v19 + 16)); goto LABEL_20; } ++v14; } LABEL_14: if ( v14 >= (int)OPENSSL_sk_num(v12) ) goto LABEL_15; } v16 = strtoul(*(const char **)(v19 + 16), &v22, 0); if ( *v22 ) goto LABEL_19; LABEL_13: ++v14; goto LABEL_14; } LABEL_15: if ( !(unsigned int)ASN1_STRING_TABLE_add(v10, v16, v15, v23, v13) ) break; ++v3; OPENSSL_sk_pop_free((int *)v12, (void (__fastcall *)(__int64))X509V3_conf_free); if ( v3 >= (int)OPENSSL_sk_num(v6) ) return 1; } ERR_put_error(13, 222, 65, (__int64)"crypto/asn1/asn_mstbl.c", 110); LABEL_20: OPENSSL_sk_pop_free((int *)v12, (void (__fastcall *)(__int64))X509V3_conf_free); ERR_put_error(13, 223, 219, (__int64)"crypto/asn1/asn_mstbl.c", 36); return 0; } } else { ERR_put_error(13, 223, 172, (__int64)"crypto/asn1/asn_mstbl.c", 30); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source