// // sub_DF9DF0 from 0xdf9df0 to 0xdfa1d8 (1000 bytes) // // 1 xrefs: // > @ 0x12249a8 // // 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_DF9DF0(__int64 a1, __int64 a2, unsigned int *a3) { int v4; // w21 __int64 *v5; // d8 int v6; // w25 _QWORD *v7; // x22 const char *v8; // x19 int v9; // w0 __int64 v10; // x24 int v11; // w20 int v12; // w20 __int64 v13; // x23 int v14; // w0 const char *v15; // x0 char *v16; // x20 __int64 v17; // x19 int v18; // w0 __int64 *v19; // x1 __int16 v21; // w2 int v22; // w4 char v23; // [xsp+78h] [xbp+78h] __int64 v24; // [xsp+88h] [xbp+88h] BYREF v24 = 0; v4 = 0; v5 = (__int64 *)ASIdentifiers_new(); if ( v5 ) { if ( (int)OPENSSL_sk_num(a3) > 0 ) { do { v6 = 0; v7 = (_QWORD *)OPENSSL_sk_value((__int64)a3, v4); if ( (unsigned int)name_cmp(v7[1], "AS") ) { if ( (unsigned int)name_cmp(v7[1], "RDI") ) { v21 = 115; v22 = 522; goto LABEL_24; } v8 = (const char *)v7[2]; v6 = 1; if ( strcmp(v8, "inherit") ) { LABEL_5: v9 = strspn(v8, "0123456789"); v10 = v9; if ( v8[v9] ) { v11 = strspn(&v8[v9], " \t") + v9; if ( v8[v11] != 45 ) { v21 = 162; v22 = 550; goto LABEL_24; } v12 = v11 + 1 + strspn(&v8[v11 + 1], " \t"); v13 = v12; v14 = v12 + strspn(&v8[v12], "0123456789"); if ( v8[v14] ) { v21 = 163; v22 = 559; goto LABEL_24; } v23 = v8[v14]; v15 = CRYPTO_strdup(v8, (__int64)"crypto/x509v3/v3_asid.c", 574); v16 = (char *)v15; if ( !v15 ) { v17 = 0; ERR_put_error(34, 163, 65, (__int64)"crypto/x509v3/v3_asid.c", 576); goto LABEL_25; } v15[v10] = v23; v24 = s2i_ASN1_INTEGER(0, v15); v17 = s2i_ASN1_INTEGER(0, &v16[v13]); CRYPTO_free(v16, (__int64)"crypto/x509v3/v3_asid.c", 582); if ( !v24 || !v17 ) { ERR_put_error(34, 163, 65, (__int64)"crypto/x509v3/v3_asid.c", 584); goto LABEL_25; } if ( (int)ASN1_INTEGER_cmp(v24, v17) > 0 ) { ERR_put_error(34, 163, 116, (__int64)"crypto/x509v3/v3_asid.c", 589); goto LABEL_25; } if ( !(unsigned int)X509v3_asid_add_id_or_range((__int64)v5, v6, v24, v17) ) goto LABEL_19; } else { if ( !(unsigned int)X509V3_get_value_int(v7, &v24) ) { v17 = 0; ERR_put_error(34, 163, 65, (__int64)"crypto/x509v3/v3_asid.c", 570); goto LABEL_25; } v17 = 0; if ( !(unsigned int)X509v3_asid_add_id_or_range((__int64)v5, v6, v24, 0) ) { LABEL_19: ERR_put_error(34, 163, 65, (__int64)"crypto/x509v3/v3_asid.c", 594); goto LABEL_25; } } v24 = 0; goto LABEL_14; } } else { v8 = (const char *)v7[2]; if ( strcmp(v8, "inherit") ) goto LABEL_5; } if ( !X509v3_asid_add_inherit(v5, v6) ) { v21 = 165; v22 = 534; LABEL_24: ERR_put_error(34, 163, v21, (__int64)"crypto/x509v3/v3_asid.c", v22); v17 = 0; ERR_add_error_data(6, "section:", *v7, ",name:", v7[1], ",value:", v7[2]); goto LABEL_25; } LABEL_14: ++v4; } while ( v4 < (int)OPENSSL_sk_num(a3) ); } v18 = X509v3_asid_canonize(v5); v19 = v5; if ( !v18 ) { v17 = 0; LABEL_25: ASIdentifiers_free((__int64)v5); ASN1_INTEGER_free(v24); ASN1_INTEGER_free(v17); return nullptr; } } else { ERR_put_error(34, 163, 65, (__int64)"crypto/x509v3/v3_asid.c", 505); return nullptr; } return v19; }
GD Web Decomp Icon

GD Web Decomp

Raw Source