// // sub_DF885C from 0xdf885c to 0xdf8a74 (536 bytes) // // 1 xrefs: // > @ 0x12248d8 // // 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 sub_DF885C(int a1, __int64 a2, unsigned int *a3) { int v6; // w19 int *v7; // x22 __int64 v8; // x20 const char *v9; // x0 char *v10; // x1 __int64 v12; // x0 unsigned int *v13; // x23 int v14; // w20 __int64 v15; // x0 bool v16; // cc int v17; // w1 v6 = 0; v7 = (int *)OPENSSL_sk_new_null(); if ( !v7 ) { ERR_put_error(34, 153, 65, (__int64)"crypto/x509v3/v3_alt.c", 199); return v7; } if ( (int)OPENSSL_sk_num(a3) <= 0 ) return v7; while ( 1 ) { v8 = OPENSSL_sk_value((__int64)a3, v6); if ( (unsigned int)name_cmp(*(_QWORD *)(v8 + 8), "issuer") || (v9 = *(const char **)(v8 + 16)) == nullptr || strcmp(v9, "copy") ) { v10 = v2i_GENERAL_NAME(a1, a2, v8); if ( !v10 ) goto LABEL_22; OPENSSL_sk_push(v7, (__int64)v10); goto LABEL_8; } if ( !a2 ) goto LABEL_21; if ( *(_DWORD *)a2 != 1 ) { v12 = *(_QWORD *)(a2 + 8); if ( !v12 ) { LABEL_21: ERR_put_error(34, 123, 127, (__int64)"crypto/x509v3/v3_alt.c", 233); goto LABEL_22; } if ( (X509_get_ext_by_NID(v12) & 0x80000000) == 0 ) break; } LABEL_8: ++v6; LABEL_9: if ( v6 >= (int)OPENSSL_sk_num(a3) ) return v7; } if ( X509_get_ext(*(_QWORD *)(a2 + 8)) && (v13 = (unsigned int *)X509V3_EXT_d2i()) != nullptr ) { v14 = 0; do { v16 = v14 < (int)OPENSSL_sk_num(v13); v17 = v14++; if ( !v16 ) { OPENSSL_sk_free((void **)v13); ++v6; goto LABEL_9; } v15 = OPENSSL_sk_value((__int64)v13, v17); } while ( (unsigned int)OPENSSL_sk_push(v7, v15) ); ERR_put_error(34, 123, 65, (__int64)"crypto/x509v3/v3_alt.c", 248); } else { ERR_put_error(34, 123, 126, (__int64)"crypto/x509v3/v3_alt.c", 241); } LABEL_22: OPENSSL_sk_pop_free(v7, (void (__fastcall *)(__int64))GENERAL_NAME_free); return nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source