// // X509_get1_ocsp from 0xe041d4 to 0xe04310 (316 bytes) // // 1 xrefs: // > @ 0x786f0 // // 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 // unsigned int *__fastcall X509_get1_ocsp(__int64 a1) { unsigned int *result; // x0 unsigned int *v2; // x21 int *v3; // x22 int v4; // w19 __int64 *v5; // x20 __int64 v6; // x2 __int64 v7; // x20 __int64 v8; // x1 const char *v9; // x1 result = (unsigned int *)X509_get_ext_d2i(a1); v2 = result; if ( result ) { v3 = nullptr; v4 = 0; if ( (int)OPENSSL_sk_num(result) > 0 ) { while ( 1 ) { v5 = (__int64 *)OPENSSL_sk_value((__int64)v2, v4); if ( (unsigned int)OBJ_obj2nid(*v5) == 178 ) { v6 = v5[1]; if ( *(_DWORD *)v6 == 6 ) { v7 = *(_QWORD *)(v6 + 8); if ( *(_DWORD *)(v7 + 4) == 22 ) { v8 = *(_QWORD *)(v7 + 8); if ( v8 ) { if ( *(_DWORD *)v7 ) { if ( !v3 ) { v3 = (int *)OPENSSL_sk_new((__int64)sub_E02A58); if ( !v3 ) goto LABEL_15; v8 = *(_QWORD *)(v7 + 8); } if ( (unsigned int)OPENSSL_sk_find((__int64)v3, v8) == -1 ) { v9 = CRYPTO_strdup(*(const char **)(v7 + 8), (__int64)"crypto/x509v3/v3_utl.c", 470); if ( !v9 || !(unsigned int)OPENSSL_sk_push(v3, (__int64)v9) ) break; } } } } } } if ( ++v4 >= (int)OPENSSL_sk_num(v2) ) goto LABEL_5; } X509_email_free(v3); LABEL_15: v3 = nullptr; } LABEL_5: AUTHORITY_INFO_ACCESS_free((__int64)v2); return (unsigned int *)v3; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source