ExtraWork is a library sent by the server after a client logs in. ExtraWork has been used by Battle.net to collect statistics on system hardware and to prevent hacking/botting.
Servers choose to send either SID_OPTIONALWORK or SID_REQUIREDWORK with the filename of the ExtraWork MPQ, which is traditionally
IX86ExtraWork.mpq. If SID_OPTIONALWORK is sent, the client will first check the value of registry key
HKCU\Software\Battle.net\Optimize\SysDesc, and if the key is set to
1, the client continues on to request ExtraWork from the server. If SID_REQUIREDWORK is sent, the client continues on to request ExtraWork, regardless of the value of the registry key.
The client then sends SID_GETFILETIME with request ID
0x80000005 for SID_OPTIONALWORK and
0x80000006 for SID_REQUIREDWORK, and with the same filename as the one from SID_OPTIONALWORK and SID_REQUIREDWORK. After the server replies back with the filetime, the client initiates a BNFTPv1 connection to download the ExtraWork MPQ.
After downloading the ExtraWork MPQ, the client extracts the ExtraWork DLL, whose filename must match the filename of the MPQ, with the exception of the file extension. (e.g.
The client then loads the ExtraWork DLL and runs
ExtraWork(), passing in a pointer to a 1028 byte buffer.
|World of Warcraft||0x04|
ExtraWork() fills the buffer and returns, the client sends the buffer to the server via SID_EXTRAWORK.