// // OCSP_parse_url from 0x1042a80 to 0x1042ccc (588 bytes) // // 1 xrefs: // > @ 0xb2810 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:16:31 +0000 // __int64 __fastcall OCSP_parse_url(const char *a1, void **a2, void **a3, void **a4, _DWORD *a5) { const char *v9; // x0 char *v10; // x20 char *v11; // x0 char *v12; // x24 const char *v13; // x25 const char *v15; // x26 char *v16; // x0 char *v17; // x27 const char *v18; // x0 const char *v19; // x27 char *v20; // x0 const char *v21; // x0 const char *v22; // x0 char *v23; // x0 *a2 = nullptr; *a3 = nullptr; *a4 = nullptr; v9 = CRYPTO_strdup(a1, (__int64)"crypto/ocsp/ocsp_lib.c", 129); v10 = (char *)v9; if ( !v9 ) goto LABEL_20; v11 = strchr(v9, 58); v12 = v11; if ( !v11 ) goto LABEL_6; *v11 = 0; if ( !strcmp(v10, "http") ) { *a5 = 0; v13 = "80"; if ( v12[1] != 47 ) goto LABEL_6; } else { if ( strcmp(v10, "https") ) goto LABEL_6; v13 = "443"; *a5 = 1; if ( v12[1] != 47 ) goto LABEL_6; } if ( v12[2] != 47 ) goto LABEL_6; v15 = v12 + 3; v16 = strchr(v12 + 3, 47); v17 = v16; if ( v16 ) { *a4 = (void *)CRYPTO_strdup(v16, (__int64)"crypto/ocsp/ocsp_lib.c", 165); *v17 = 0; v18 = (const char *)*a4; } else { v18 = CRYPTO_strdup((const char *)&word_11BA098, (__int64)"crypto/ocsp/ocsp_lib.c", 163); *a4 = (void *)v18; } if ( !v18 ) { LABEL_20: ERR_put_error(39, 114, 65, (__int64)"crypto/ocsp/ocsp_lib.c", 204); goto LABEL_7; } v19 = v12 + 3; if ( v12[3] != 91 ) goto LABEL_15; v19 = v12 + 4; v23 = strchr(v12 + 4, 93); if ( v23 ) { *v23 = 0; v15 = v23 + 1; LABEL_15: v20 = strchr(v15, 58); if ( v20 ) { *v20 = 0; v13 = v20 + 1; } v21 = CRYPTO_strdup(v13, (__int64)"crypto/ocsp/ocsp_lib.c", 190); *a3 = (void *)v21; if ( v21 ) { v22 = CRYPTO_strdup(v19, (__int64)"crypto/ocsp/ocsp_lib.c", 194); *a2 = (void *)v22; if ( v22 ) { CRYPTO_free(v10, (__int64)"crypto/ocsp/ocsp_lib.c", 199); return 1; } } goto LABEL_20; } LABEL_6: ERR_put_error(39, 114, 121, (__int64)"crypto/ocsp/ocsp_lib.c", 208); LABEL_7: CRYPTO_free(v10, (__int64)"crypto/ocsp/ocsp_lib.c", 211); CRYPTO_free(*a4, (__int64)"crypto/ocsp/ocsp_lib.c", 212); *a4 = nullptr; CRYPTO_free(*a3, (__int64)"crypto/ocsp/ocsp_lib.c", 214); *a3 = nullptr; CRYPTO_free(*a2, (__int64)"crypto/ocsp/ocsp_lib.c", 216); *a2 = nullptr; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source