// // ssl_cert_select_current from 0xd3a618 to 0xd3a784 (364 bytes) // // 3 xrefs: // > ssl3_ctrl @ 0xd38b28 // > ssl3_ctx_ctrl @ 0xd39234 // > @ 0xa9878 // // 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_select_current(_QWORD *a1, __int64 a2) { _QWORD *v4; // x19 __int64 v5; // x20 __int64 v6; // x0 unsigned int v7; // w2 __int64 v9; // x1 if ( !a2 ) return 0; if ( a1[4] == a2 && a1[5] ) { v9 = 0; LABEL_31: v7 = 1; *a1 = &a1[5 * v9 + 4]; return v7; } if ( a1[9] == a2 && a1[10] ) { v9 = 1; goto LABEL_31; } if ( a1[14] == a2 && a1[15] ) { v9 = 2; goto LABEL_31; } if ( a1[19] == a2 && a1[20] ) { v9 = 3; goto LABEL_31; } if ( a1[24] == a2 && a1[25] ) { v9 = 4; goto LABEL_31; } if ( a1[29] == a2 && a1[30] ) { v9 = 5; goto LABEL_31; } if ( a1[34] == a2 && a1[35] ) { v9 = 6; goto LABEL_31; } v4 = a1 + 5; v5 = 0; while ( 1 ) { if ( *v4 ) { v6 = *(v4 - 1); if ( v6 ) { if ( !(unsigned int)X509_cmp(v6, a2) ) break; } } ++v5; v4 += 5; if ( v5 == 7 ) return 0; } *a1 = &a1[5 * v5 + 4]; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source