// // OCSP_parse_url from 0x81eafc to 0x81ed74 (632 bytes) // // 1 xrefs: // > @ 0x64ccc // // 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 OCSP_parse_url(const char *a1, void **a2, void **a3, void **a4, _DWORD *a5) { const char *v8; // r0 char *v9; // r5 char *v10; // r0 char *v11; // r9 const char *v12; // r4 const char *v14; // r10 char *v15; // r0 char *v16; // r11 void *v17; // r0 const char *v18; // r9 char *v19; // r0 void *v20; // r0 void *v21; // r0 char *v22; // r0 *a2 = nullptr; *a3 = nullptr; *a4 = nullptr; v8 = (const char *)CRYPTO_strdup(a1, (int)"crypto/ocsp/ocsp_lib.c", 129); v9 = (char *)v8; if ( !v8 ) goto LABEL_21; v10 = strchr(v8, 58); v11 = v10; if ( !v10 ) goto LABEL_6; *v10 = 0; if ( !strcmp(v9, "http") ) { *a5 = 0; v12 = "80"; if ( v11[1] != 47 ) goto LABEL_6; } else { if ( strcmp(v9, "https") ) goto LABEL_6; *a5 = 1; v12 = "443"; if ( v11[1] != 47 ) goto LABEL_6; } if ( v11[2] != 47 ) goto LABEL_6; v14 = v11 + 3; v15 = strchr(v11 + 3, 47); v16 = v15; if ( v15 ) { *a4 = CRYPTO_strdup(v15, (int)"crypto/ocsp/ocsp_lib.c", 165); *v16 = 0; v17 = *a4; } else { v17 = CRYPTO_strdup((const char *)&word_9B1F2C, (int)"crypto/ocsp/ocsp_lib.c", 163); *a4 = v17; } if ( !v17 ) { LABEL_21: ERR_put_error(39, 114, 65, (int)"crypto/ocsp/ocsp_lib.c", 204); goto LABEL_7; } if ( v11[3] != 91 ) { v18 = v11 + 3; goto LABEL_16; } v18 = v11 + 4; v22 = strchr(v18, 93); if ( !v22 ) { LABEL_6: ERR_put_error(39, 114, 121, (int)"crypto/ocsp/ocsp_lib.c", 208); LABEL_7: CRYPTO_free(v9, (int)"crypto/ocsp/ocsp_lib.c", 211); CRYPTO_free(*a4, (int)"crypto/ocsp/ocsp_lib.c", 212); *a4 = nullptr; CRYPTO_free(*a3, (int)"crypto/ocsp/ocsp_lib.c", 214); *a3 = nullptr; CRYPTO_free(*a2, (int)"crypto/ocsp/ocsp_lib.c", 216); *a2 = nullptr; return 0; } *v22 = 0; v14 = v22 + 1; LABEL_16: v19 = strchr(v14, 58); if ( v19 ) { *v19 = 0; v12 = v19 + 1; } v20 = CRYPTO_strdup(v12, (int)"crypto/ocsp/ocsp_lib.c", 190); *a3 = v20; if ( !v20 ) goto LABEL_21; v21 = CRYPTO_strdup(v18, (int)"crypto/ocsp/ocsp_lib.c", 194); *a2 = v21; if ( !v21 ) goto LABEL_21; CRYPTO_free(v9, (int)"crypto/ocsp/ocsp_lib.c", 199); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source