DigestFileRange
function · net · primitive
- Address
0x5b0880· 145 bytes, up to0x5b0910- Signature
void __thiscall (void *this, void *file, uint64_t start, uint64_t end, uint8_t digest[16])- Meaning
- Writes the MD5 of a file's bytes from start to end less start, read in 32 KiB chunks, or zeros when a read fails
- Confidence
- verified, proof one
- Finding
- net/download#download-trailer
- Test
net::download_digest_range
Finding: Download trailer in net: download
0x5b09b0 accepts a file one trailer longer than the total when its last 40 bytes hold the magic, a zero dword, the kept MD5 and the kept total. It keeps that trailer, and calls it complete when the trailer says every byte arrived and the data's MD5 matches; a mismatch then fails. A file exactly the total long is accepted, and complete, when its MD5 matches (0x5b0970). 0x5b0b70 writes the kept trailer at the total's low dword; a failed write sets state 3, error 1. 0x5b0880 hashes the file in 32 KiB reads, or gives zeros when a read fails, over start to end - start: the start is subtracted twice, harmless since every caller passes 0.
The derivation is in the doc.
Callers 2
- DownloadFileVerify net
- DownloadFileFeed net
Callees 4
- __alloca_probe crt
- MD5Init storm
- MD5Update storm
- MD5Final storm
Calls and jumps by a bare address, from tables/calls.tsv.