//
// SSL_set_connect_state from 0x79a208 to 0x79a248 (64 bytes)
//
// 9 xrefs:
// > sub_643938 @ 0x64420c
// > sub_644AB4 @ 0x644ad0
// > sub_644AB4 @ 0x644afe
// > sub_785EB0 @ 0x786140
// > sub_785EB0 @ 0x786584
// > BIO_new_ssl @ 0x786610
// > SSL_connect @ 0x79a268
// > SSL_dup @ 0x79b148
// > ??> @ 0x5531c
//
// 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 SSL_set_connect_state(_DWORD *a1)
{
a1[7] = 0;
a1[10] = 0;
ossl_statem_clear();
a1[6] = *(_DWORD *)(a1[1] + 28);
ssl_clear_cipher_ctx(a1);
ssl_clear_hash_ctx(a1 + 45);
return ssl_clear_hash_ctx(a1 + 49);
}