benilla-re systems structs docs

StartUrlDownload

function · os · host

Address
0x7a6cc0 · 505 bytes, up to 0x7a6eb8
Signature
bool __fastcall (const char *url, void *callback, void *param, int32_t timeoutMs)
Meaning
Sends an asynchronous WinINet GET of a URL with a callback and timeouts; returns 1 once the send is accepted
Confidence
verified, proof one
Finding
glue/manager#the-url-download

Finding: The URL download in glue: the manager

HttpGetAsync(url, callback, param) (0x7a6ee0) is StartUrlDownload(url, callback, param, 5000) (0x7a6cc0). That splits the URL into host, port and path, keeps the callback and param in a 0x38-byte context with four events, opens an asynchronous WinINet session as Blizzard Web Client with the system's proxy settings and the status callback 0x7a6b20, connects for HTTP, sets the connect and receive timeouts when above 0, and sends a GET of the path with flags 0x84000200 (reload, no cache write, no interface) and no headers. A connect or open that answers ERROR_IO_PENDING waits on an event without a limit. It returns 1 once the send is accepted or pending, else 0, freeing the context and leaving its handles open.

The derivation is in the doc.

Callers 1

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.