// // dtls1_query_mtu from 0xd5dd44 to 0xd5de34 (240 bytes) // // 3 xrefs: // > dtls1_do_write @ 0xd4cd60 // > dtls1_do_write @ 0xd4d120 // > @ 0x42300 // // 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 dtls1_query_mtu(__int64 a1) { __int64 v1; // x20 int v3; // w21 unsigned int v4; // w20 unsigned int v5; // w1 __int16 options; // w0 __int64 v8; // x20 __int64 v9; // x21 __int64 v10; // x0 int v11; // w0 __int64 v12; // x1 __int64 v13; // x21 __int64 v14; // x0 __int64 wbio; // x0 v1 = *(_QWORD *)(a1 + 152); v3 = *(_DWORD *)(v1 + 288); if ( v3 ) { wbio = SSL_get_wbio(a1); *(_DWORD *)(v1 + 292) = v3 - BIO_ctrl(wbio, 49, 0, 0); v1 = *(_QWORD *)(a1 + 152); *(_DWORD *)(v1 + 288) = 0; } v4 = *(_DWORD *)(v1 + 292); if ( v4 < (unsigned int)dtls1_min_mtu(a1) ) { options = SSL_get_options(a1); v8 = options & 0x1000; v5 = 0; if ( (options & 0x1000) != 0 ) return v5; v9 = *(_QWORD *)(a1 + 152); v10 = SSL_get_wbio(a1); v11 = BIO_ctrl(v10, 40, v8, v8); v12 = *(_QWORD *)(a1 + 152); *(_DWORD *)(v9 + 292) = v11; LODWORD(v9) = *(_DWORD *)(v12 + 292); if ( (unsigned int)v9 < (unsigned int)dtls1_min_mtu(a1) ) { v13 = *(_QWORD *)(a1 + 152); *(_DWORD *)(v13 + 292) = dtls1_min_mtu(a1); v14 = SSL_get_wbio(a1); BIO_ctrl(v14, 42, *(unsigned int *)(*(_QWORD *)(a1 + 152) + 292LL), v8); } } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source