// // BIO_read from 0xd76748 to 0xd76860 (280 bytes) // // 20 xrefs: // > ssl3_read_n @ 0xd31f7c // > DTLSv1_listen @ 0xd5d520 // > DTLSv1_listen @ 0xd5d5b4 // > DTLSv1_listen @ 0xd5d830 // > sub_D75F28 @ 0xd76038 // > sub_D76088 @ 0xd76140 // > sub_D76088 @ 0xd76194 // > sub_DFF0C8 @ 0xdff458 // > ASN1_d2i_bio @ 0xe08128 // > ASN1_d2i_bio @ 0xe08220 // > ASN1_item_d2i_bio @ 0xe08594 // > ASN1_item_d2i_bio @ 0xe0868c // > sub_E5E9C8 @ 0xe5ec14 // > sub_E5F5E4 @ 0xe5f624 // > OCSP_REQ_CTX_nbio @ 0xe638c4 // > SMIME_crlf_copy @ 0xe71988 // > SMIME_text @ 0xe72454 // > sub_E7D90C @ 0xe7da50 // > sub_E80B70 @ 0xe80b94 // > @ 0x93558 // // 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 BIO_read(__int64 a1, __int64 a2, unsigned int a3) { __int64 (*v6)(void); // x20 __int64 result; // x0 int v8; // w5 if ( a1 && *(_QWORD *)a1 && *(_QWORD *)(*(_QWORD *)a1 + 24LL) ) { v6 = *(__int64 (**)(void))(a1 + 8); if ( !v6 || (result = v6(), (int)result > 0) ) { if ( *(_DWORD *)(a1 + 24) ) { v8 = (*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 24LL))(a1, a2, a3); if ( v8 > 0 ) *(_QWORD *)(a1 + 80) += v8; if ( v6 ) return ((__int64 (__fastcall *)(__int64, __int64, __int64, _QWORD, _QWORD))v6)(a1, 130, a2, a3, 0); else return (unsigned int)v8; } else { ERR_put_error(32, 111, 120, "crypto/bio/bio_lib.c", 193); return 4294967294LL; } } } else { ERR_put_error(32, 111, 121, "crypto/bio/bio_lib.c", 183); return 4294967294LL; } return result; }