DownloadFileReadTrailer
function · net · primitive
- Address
0x5b09b0· 249 bytes, up to0x5b0aa8- Signature
bool __thiscall (void *this, bool *complete)- Meaning
- Loads a matching DInf trailer from a file one trailer longer than the data, or accepts a complete trailerless file
- Confidence
- verified, proof one
- Finding
- net/download#download-trailer
- Test
net::download_read_trailer
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 1
- DownloadFileOpen net
Callees 2
Calls and jumps by a bare address, from tables/calls.tsv.