//
// BIO_find_type from 0x7d1098 to 0x7d10f8 (96 bytes)
//
// 12 xrefs:
// > BIO_ssl_copy_session_id @ 0x7866e4
// > BIO_ssl_copy_session_id @ 0x7866f4
// > BIO_ssl_shutdown @ 0x78675c
// > SSL_get_rfd @ 0x796878
// > SSL_get_wfd @ 0x7968bc
// > PKCS7_dataFinal @ 0x827fcc
// > PKCS7_dataFinal @ 0x828148
// > PKCS7_dataFinal @ 0x828440
// > PKCS7_signatureVerify @ 0x8287cc
// > CMS_dataFinal @ 0x875290
// > cms_DigestAlgorithm_find_ctx @ 0x875740
// > ??> @ 0x59f9c
//
// 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
//
_DWORD *__fastcall BIO_find_type(_DWORD *result, int a2)
{
if ( result )
{
if ( (_BYTE)a2 )
{
do
{
if ( *result && *(_DWORD *)*result == a2 )
break;
result = (_DWORD *)result[9];
}
while ( result );
}
else
{
do
{
if ( *result && (a2 & *(_DWORD *)*result) != 0 )
break;
result = (_DWORD *)result[9];
}
while ( result );
}
}
return result;
}