// // sub_DE9BD4 from 0xde9bd4 to 0xde9cb0 (220 bytes) // // 1 xrefs: // > X509_STORE_CTX_set0_trusted_stack @ 0xded878 // // 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_DE9BD4(__int64 a1, __int64 a2) { int v4; // w19 int *v5; // x22 bool v6; // cc int v7; // w1 __int64 v8; // x21 __int64 subject_name; // x0 v4 = 0; v5 = nullptr; while ( 1 ) { v6 = v4 < (int)OPENSSL_sk_num(*(unsigned int **)(a1 + 40)); v7 = v4++; if ( !v6 ) break; while ( 1 ) { v8 = OPENSSL_sk_value(*(_QWORD *)(a1 + 40), v7); subject_name = X509_get_subject_name(v8); if ( (unsigned int)X509_NAME_cmp(a2, subject_name) ) break; if ( !v5 && (v5 = (int *)OPENSSL_sk_new_null()) == nullptr || !(unsigned int)OPENSSL_sk_push(v5, v8) ) { OPENSSL_sk_pop_free(v5, (void (__fastcall *)(__int64))X509_free); return nullptr; } X509_up_ref(v8); v6 = v4 < (int)OPENSSL_sk_num(*(unsigned int **)(a1 + 40)); v7 = v4++; if ( !v6 ) return v5; } } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source