// // X509_load_cert_crl_file from 0xde4cec to 0xde4e3c (336 bytes) // // 3 xrefs: // > sub_DE4E3C @ 0xde4ea0 // > sub_DE4E3C @ 0xde4ed4 // > @ 0x6f540 // // 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 X509_load_cert_crl_file(__int64 a1, const char *a2, int a3) { _QWORD *v5; // x21 unsigned int v6; // w20 int v7; // w19 unsigned int *bio; // x22 bool v9; // cc int v10; // w1 int *v11; // x0 _QWORD *v12; // x21 __int64 v13; // x1 if ( a3 != 1 ) return X509_load_cert_file(a1, (__int64)a2, a3); v5 = (_QWORD *)BIO_new_file(a2, "r"); if ( v5 ) { v6 = 0; v7 = 0; bio = (unsigned int *)PEM_X509_INFO_read_bio(); BIO_free(v5); if ( bio ) { while ( 1 ) { v9 = v7 < (int)OPENSSL_sk_num(bio); v10 = v7; v11 = (int *)bio; ++v7; if ( !v9 ) break; while ( 1 ) { v12 = (_QWORD *)OPENSSL_sk_value((__int64)v11, v10); if ( *v12 ) { ++v6; X509_STORE_add_cert(*(_QWORD *)(a1 + 24), *v12); } v13 = v12[1]; if ( !v13 ) break; ++v6; X509_STORE_add_crl(*(_QWORD *)(a1 + 24), v13); v9 = v7 < (int)OPENSSL_sk_num(bio); v10 = v7; v11 = (int *)bio; ++v7; if ( !v9 ) goto LABEL_11; } } LABEL_11: OPENSSL_sk_pop_free(v11, (void (__fastcall *)(__int64))X509_INFO_free); return v6; } else { ERR_put_error(11, 132, 9, (__int64)"crypto/x509/by_file.c", 205); return 0; } } else { ERR_put_error(11, 132, 2, (__int64)"crypto/x509/by_file.c", 199); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source