// // OCSP_check_validity from 0xdc3ad4 to 0xdc3c9c (456 bytes) // // 2 xrefs: // > sub_BB678C @ 0xbb7720 // > @ 0x660a8 // // 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 OCSP_check_validity(__int64 a1, const void **a2, __int64 a3, __int64 a4) { unsigned int v8; // w19 time_t timer; // [xsp+40h] [xbp+40h] BYREF time_t v11; // [xsp+48h] [xbp+48h] BYREF time(&timer); v8 = ASN1_GENERALIZEDTIME_check(a1); if ( v8 ) { v8 = 1; v11 = timer + a3; if ( (int)X509_cmp_time(a1, &v11) > 0 ) { v8 = 0; ERR_put_error(39, 115, 126, (__int64)"crypto/ocsp/ocsp_cl.c", 320); } if ( (a4 & 0x8000000000000000LL) == 0 ) { v11 = timer - a4; if ( (X509_cmp_time(a1, &v11) & 0x80000000) != 0 ) { v8 = 0; ERR_put_error(39, 115, 127, (__int64)"crypto/ocsp/ocsp_cl.c", 331); } } } else { ERR_put_error(39, 115, 123, (__int64)"crypto/ocsp/ocsp_cl.c", 315); } if ( !a2 ) return v8; if ( (unsigned int)ASN1_GENERALIZEDTIME_check(a2) ) { v11 = timer - a3; if ( (X509_cmp_time(a2, &v11) & 0x80000000) != 0 ) { v8 = 0; ERR_put_error(39, 115, 125, (__int64)"crypto/ocsp/ocsp_cl.c", 347); } if ( (ASN1_STRING_cmp(a2, a1) & 0x80000000) == 0 ) return v8; } else { v8 = 0; ERR_put_error(39, 115, 122, (__int64)"crypto/ocsp/ocsp_cl.c", 342); if ( (ASN1_STRING_cmp(a2, a1) & 0x80000000) == 0 ) return v8; } ERR_put_error(39, 115, 124, (__int64)"crypto/ocsp/ocsp_cl.c", 355); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source