// // ssl_cert_type from 0xd4ede0 to 0xd4ee88 (168 bytes) // // 8 xrefs: // > sub_D43F10 @ 0xd43f44 // > sub_D440A4 @ 0xd440c4 // > SSL_use_PrivateKey @ 0xd448a0 // > SSL_CTX_use_PrivateKey @ 0xd45190 // > tls_process_server_certificate @ 0xd49b84 // > tls_process_cert_verify @ 0xd5371c // > tls1_check_chain @ 0xd5b074 // > @ 0x689a0 // // 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 ssl_cert_type(__int64 a1, __int64 a2) { int v2; // w0 bool v3; // zf bool v4; // nf bool v5; // vf int v6; // w1 __int64 result; // x0 __int64 v8; // x0 if ( !a2 ) { v8 = X509_get0_pubkey(a1); if ( !v8 ) return 0xFFFFFFFFLL; v2 = EVP_PKEY_id(v8); v5 = __OFSUB__(v2, 408); v3 = v2 == 408; v4 = v2 - 408 < 0; v6 = v2; if ( v2 != 408 ) goto LABEL_3; return 3; } v2 = EVP_PKEY_id(a2); v5 = __OFSUB__(v2, 408); v3 = v2 == 408; v4 = v2 - 408 < 0; v6 = v2; if ( v2 == 408 ) return 3; LABEL_3: if ( v4 ^ v5 | v3 ) { v3 = v2 == 6; result = 0; if ( v3 ) return result; result = 2; if ( v6 == 116 ) return result; return 0xFFFFFFFFLL; } if ( v2 == 979 ) return 5; v3 = v2 == 980; result = 6; if ( !v3 ) { result = 4; if ( v6 != 811 ) return 0xFFFFFFFFLL; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source