//
// ssl_cipher_disabled from 0x7aeaf4 to 0x7aebe8 (244 bytes)
//
// 4 xrefs:
// > SSL_get1_supported_ciphers @ 0x7980c4
// > tls_construct_client_hello @ 0x7a089c
// > tls_process_server_hello @ 0x7a0f28
// > ??> @ 0x5bdcc
//
// 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
//
bool __fastcall ssl_cipher_disabled(int a1, _DWORD *a2, int a3)
{
_DWORD *v3; // r3
int v4; // r12
int v5; // lr
int v6; // r12
int v7; // r3
v3 = *(_DWORD **)(a1 + 104);
if ( (v3[171] & a2[3]) != 0 )
return 1;
if ( (v3[172] & a2[4]) != 0 )
return 1;
v4 = v3[174];
if ( !v4 )
return 1;
if ( (*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a1 + 4) + 100) + 52) & 8) == 0 )
{
if ( v4 >= a2[7] && a2[8] >= v3[173] )
return ssl_security(a1, a3) == 0;
return 1;
}
v5 = a2[9];
if ( v5 != 256 )
{
if ( v4 == 256 )
v4 = 65280;
LABEL_8:
if ( v4 > v5 )
return 1;
goto LABEL_9;
}
if ( v4 != 256 )
{
v5 = 65280;
goto LABEL_8;
}
LABEL_9:
v6 = a2[10];
v7 = v3[173];
if ( v6 == 256 )
{
if ( v7 == 256 )
return ssl_security(a1, a3) == 0;
v6 = 65280;
}
else if ( v7 == 256 )
{
v7 = 65280;
}
if ( v7 >= v6 )
return ssl_security(a1, a3) == 0;
return 1;
}