DownloadFileWriteTrailer
function · net · orchestration
- Address
0x5b0b70· 80 bytes, up to0x5b0bbf- Signature
void __thiscall (void *this)- Meaning
- Writes the 40-byte trailer after the data, setting state 3 with error 1 when the write fails
- Confidence
- verified, proof one
- Finding
- net/download#download-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 2
- DownloadFileAbort net
- DownloadFileFeed net
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.