Function at 0x42192a
Capabilities:
Check for time delay via gettickcount
Get file size
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
sub esp, 0x804
lea ebp, [esp - 4]
mov eax, dword [0x4f9590]
xor eax, ebp
mov dword [ebp + 0x804], eax
push 0x110
mov eax, 0x4be66c
call fcn.00494508
mov eax, dword [ebp + 0x810]
mov edi, dword [ebp + 0x81c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x814]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x818]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x820]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x824]
push eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x44]
xor ebx, ebx
push eax
mov esi, ecx
mov dword [ebp - 0x20], ebx
call fcn.0043459c
pop ecx
pop ecx
mov dword [ebp - 0x30], eax
push edi
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], ebx
call fcn.00472760
push eax
lea eax, [ebp - 0x8c]
push str.Download__:_strURL_
push eax
mov byte [ebp - 4], 1
call fcn.00473090
push 0x4cf3b0
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 2
call fcn.00473040
push dword [ebp - 0x30]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00472ff0
push 0x4cf21c
push eax
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 4
call fcn.00473040
push eax
mov byte [ebp - 4], 5
call fcn.00411cd0
add esp, 0x34
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.00472740
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00472740
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.00472740
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.00472740
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.00472740
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00472740
cmp dword [ebp - 0x2c], ebx
jne 0x421a5f
push 0x4cd9fc
jmp 0x4222bc
mov dword [esi + 0x18], ebx
cmp edi, ebx
je 0x4222b7
mov dword [ebp - 0x24], 0xbb8
cmp dword [ebp - 0x10], ebx
je 0x421a8d
mov eax, dword [ebp - 0x10]
fld dword [eax + 0xe94]
fmul qword [0x4cf3a8]
call fcn.004980f0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x80004005
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x50], ebx
jle 0x421af0
push dword [ebp + 0x828]
mov ecx, esi
push edi
call fcn.0042162b
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jge 0x421b3c
mov eax, dword [ebp - 0x50]
cmp eax, 1
jle 0x421ae5
dec eax
cmp dword [ebp - 0x14], eax
je 0x421ae5
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x10], ebx
je 0x421ae5
mov eax, dword [ebp - 0x10]
fld dword [eax + 0xe98]
fimul dword [ebp - 0x24]
call fcn.004980f0
mov dword [ebp - 0x24], eax
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x50]
jl 0x421a9c
lea ecx, [ebp - 0x44]
call fcn.004724b0
push dword [ebp - 0x14]
lea eax, [ebp - 0x44]
push 0x4cf3a4
push eax
mov dword [ebp - 4], 6
call fcn.00473410
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
mov ecx, 0x4fb644
call fcn.00472ca0
mov ecx, esi
call fcn.00421323
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00472740
mov eax, dword [ebp - 0x1c]
jmp 0x4222cb
push ebx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x20000005
push dword [esi]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x74], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x421b68
cmp dword [ebp - 0x74], 4
jne 0x421ba7
jmp 0x421ba2
push 7
push str.file:__
push edi
call fcn.00497fb3
add esp, 0xc
test eax, eax
jne 0x421ba2
push ebx
push ebx
push 3
push ebx
push 1
push ebx
add edi, 7
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], ebx
jne 0x421bae
mov dword [ebp - 0x34], 1
cmp dword [ebp + 0x82c], ebx
je 0x421bc4
mov ecx, esi
call fcn.00421323
xor eax, eax
jmp 0x4222cb
lea edi, [esi + 4]
push edi
lea ecx, [ebp - 0xec]
call fcn.0047b970
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0xec]
mov dword [ebp - 4], 7
call fcn.0047b870
cmp byte [eax + 7], 0xff
mov byte [ebp - 4], 8
jne 0x421bf5
mov eax, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 7
call fcn.00472740
cmp dword [ebp - 0x1c], ebx
jge 0x421cd7
lea ecx, [ebp - 0x7c]
call fcn.004724b0
cmp byte [0x4fb64b], 0xff
mov eax, 0x3e8
mov ebx, 0x4fb644
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], eax
mov edi, ebx
jne 0x421c40
mov edi, dword [0x4fb644]
push 0x3000
lea ecx, [ebp - 0x30]
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.004731d0
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_UrlEscapeA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x7c]
call fcn.00473260
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x68]
push 0x4cf3a0
push eax
call fcn.00473090
push str.____zz
push eax
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 0xa
call fcn.00473040
add esp, 0x18
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.004727f0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xa
call fcn.00472740
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 9
call fcn.00472740
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 7
call fcn.00472740
mov ecx, esi
call fcn.00421323
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call fcn.0047b860
jmp 0x421b34
cmp dword [ebp - 0x10], ebx
je 0x421d19
cmp dword [ebp - 0x28], ebx
je 0x421d19
push str.downloadStart
lea ecx, [ebp - 0x58]
call fcn.00472760
mov eax, dword [ebp - 0x28]
add eax, 0x3c
cmp byte [eax + 7], 0xff
mov byte [ebp - 4], 0xc
jne 0x421d00
mov eax, dword [eax]
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0x10]
push eax
call fcn.00435093
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.00472740
cmp dword [ebp - 0x48], ebx
je 0x421d34
cmp byte [edi + 7], 0xff
mov eax, edi
jne 0x421d28
mov eax, dword [edi]
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
or dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x9c], eax
jmp 0x4221c8
mov edi, str.BreakDownload
cmp dword [esi + 0x14], ebx
je 0x422207
cmp dword [ebp - 0x10], ebx
je 0x421d98
mov eax, dword [ebp - 0x10]
fld dword [eax + 0xe94]
fmul qword [0x4cf3a8]
call fcn.004980f0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], ebx
je 0x421d98
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x421d98
cmp dword [eax + 4], ebx
je 0x4221e4
push 0x400
lea eax, [ebp + 0x401]
push ebx
push eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x5c], ebx
mov byte [ebp + 0x400], bl
call fcn.00493f80
add esp, 0xc
push 0x4cf354
lea ecx, [ebp - 0x68]
call fcn.00472760
push 0x4cf354
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xd
call fcn.00472760
push edi
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xe
call fcn.00472760
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0xf
call fcn.00420576
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x11
call fcn.00472740
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x12
call fcn.00472740
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x13
call fcn.00472740
lea ecx, [ebp - 0x58]
call fcn.004724b0
cmp dword [ebp - 0x14], 0x800
mov byte [ebp - 4], 0x14
jb 0x421eed
push edi
lea ecx, [ebp - 0x3c]
call fcn.00472760
or dword [ebp - 0x20], 1
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x4fc174
mov byte [ebp - 4], 0x15
call fcn.0041f83c
mov ecx, eax
call fcn.0041e239
cmp eax, ebx
je 0x421eaf
push edi
lea ecx, [ebp - 0x70]
call fcn.00472760
or dword [ebp - 0x20], 2
lea eax, [ebp - 0x70]
push eax
mov ecx, 0x4fc174
mov dword [ebp - 4], 0x16
call fcn.0041f83c
mov ecx, eax
call fcn.0041e285
mov byte [ebp - 0x15], 1
cmp eax, 0x4cd9fc
je 0x421eb2
mov byte [ebp - 0x15], bl
test byte [ebp - 0x20], 2
mov dword [ebp - 4], 0x15
je 0x421ecb
and dword [ebp - 0x20], 0xfffffffd
lea ecx, [ebp - 0x70]
call fcn.00472740
test byte [ebp - 0x20], 1
mov dword [ebp - 4], 0x14
je 0x421ee4
and dword [ebp - 0x20], 0xfffffffe
lea ecx, [ebp - 0x3c]
call fcn.00472740
cmp byte [ebp - 0x15], bl
jne 0x4221e9
lea eax, [ebp - 0x5c]
push eax
mov edi, 0x400
push edi
lea eax, [ebp + 0x400]
push eax
push dword [esi]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x421f7f
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x4221ec
add dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x9c]
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x4c]
jns 0x421f32
fadd dword [0x4cf350]
fdiv qword [0x4cf3a8]
mov eax, dword [ebp - 0x14]
fstp dword [ebp - 0x4c]
fild dword [ebp - 0x14]
test eax, eax
jns 0x421f4b
fadd dword [0x4cf350]
fmul qword [0x4cf348]
fdiv dword [ebp - 0x4c]
call fcn.004980f0
mov ecx, dword [ebp - 0x48]
mov dword [esi + 0x10], eax
cmp ecx, ebx
je 0x421f6b
push dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 8]
push dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
lea edx, [ebp + 0x400]
push edx
call dword [eax + 0x10]
jmp 0x421fab
mov dword [ebp - 0x30], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x60], eax
cmp eax, 0x2ee3
jne 0x421fab
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x4c], edi
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
cmp dword [ebp - 0x30], ebx
je 0x4221ad
mov edi, dword [ebp - 0x10]
inc dword [ebp - 0x1c]
cmp edi, ebx
je 0x422045
cmp dword [ebp - 0x28], ebx
je 0x422045
lea ecx, [ebp - 0x84]
call fcn.004724b0
push dword [ebp - 0x1c]
lea eax, [ebp - 0x84]
push dword [ebp - 0x60]
mov byte [ebp - 4], 0x17
push str.actiondownloadfailurevalue_ddownloadattempt_d
push eax
call fcn.00473410
mov eax, dword [ebp - 0x28]
add eax, 0x3c
push eax
lea eax, [ebp - 0xb4]
push str.packageID
push eax
call fcn.00473090
add esp, 0x1c
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x18
call fcn.00472ca0
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0x17
call fcn.00472740
mov eax, dword [edi]
push ebx
lea ecx, [ebp - 0x84]
push ecx
mov ecx, edi
call dword [eax + 0x10]
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x14
call fcn.00472740
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x50]
jge 0x4221d3
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, ebx
je 0x42206f
fld dword [edi + 0xe98]
fimul dword [ebp - 0x24]
call fcn.004980f0
mov dword [ebp - 0x24], eax
push dword [esi]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [esi + 4]
mov dword [esi], ebx
cmp byte [eax + 7], 0xff
jne 0x422084
mov eax, dword [eax]
push ebx
push 0x200000
push ebx
push ebx
push eax
push dword [0x4fb63c]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [esi], eax
cmp eax, ebx
je 0x421fab
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
mov dword [ebp - 0x14], ebx
call dword [eax + 8]
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xec]
call fcn.0047b870
cmp byte [eax + 7], 0xff
mov byte [ebp - 4], 0x19
jne 0x4220cc
mov eax, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0xac]
mov edi, eax
mov byte [ebp - 4], 0x14
call fcn.00472740
cmp edi, ebx
jge 0x4221ad
lea ecx, [ebp - 0x44]
call fcn.004724b0
cmp byte [0x4fb64b], 0xff
mov byte [ebp - 4], 0x1a
mov dword [ebp - 0x98], 0x3e8
mov edi, 0x4fb644
jne 0x422118
mov edi, dword [0x4fb644]
push 0x3000
lea eax, [ebp - 0x98]
push eax
push 0x3e8
lea ecx, [ebp - 0x44]
call fcn.004731d0
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_UrlEscapeA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x44]
call fcn.00473260
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xa4]
push 0x4cf300
push eax
call fcn.00473090
push str.____zz
push eax
lea eax, [ebp - 0xbc]
push eax
mov byte [ebp - 4], 0x1b
call fcn.00473040
add esp, 0x18
push eax
mov ecx, 0x4fb644
mov byte [ebp - 4], 0x1c
call fcn.004727f0
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0x1b
call fcn.00472740
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0x1a
call fcn.00472740
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x14
call fcn.00472740
mov dword [esi + 0x14], ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x13
call fcn.00472740
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 7
call fcn.0041e464
cmp dword [esi + 0x18], ebx
je 0x421d56
jmp 0x422207
push 0x4cf2fc
mov ecx, 0x4fb644
call fcn.00472bc0
jmp 0x4221aa
mov dword [esi + 0x14], ebx
jmp 0x422207
mov dword [esi + 0x14], ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x13
call fcn.00472740
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 7
call fcn.0041e464
cmp dword [ebp - 0x10], ebx
je 0x422266
cmp dword [ebp - 0x28], ebx
je 0x422266
cmp dword [esi + 0x18], ebx
je 0x422229
push str.downloadCancel
lea ecx, [ebp - 0x3c]
call fcn.00472760
mov byte [ebp - 4], 0x1d
jmp 0x42223f
cmp dword [esi + 0x14], ebx
je 0x422266
push str.downloadSuccessful
lea ecx, [ebp - 0x3c]
call fcn.00472760
mov byte [ebp - 4], 0x1e
mov eax, dword [ebp - 0x28]
add eax, 0x3c
cmp byte [eax + 7], 0xff
jne 0x42224d
mov eax, dword [eax]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x10]
push eax
call fcn.00435093
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
call fcn.00472740
mov ecx, dword [ebp - 0x48]
cmp ecx, ebx
je 0x42227d
mov eax, dword [ecx]
cmp dword [esi + 0x18], ebx
je 0x422277
push ebx
jmp 0x42227a
push dword [esi + 0x14]
call dword [eax + 0xc]
mov edi, 0x80004005
cmp dword [esi + 0x18], ebx
je 0x42228e
mov edi, 0x8000aaa3
jmp 0x422295
cmp dword [esi + 0x14], ebx
je 0x422295
xor edi, edi
mov ecx, esi
call fcn.00421323
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call fcn.0047b860
mov eax, edi
jmp 0x4222cb
push 0x4cf2d4
mov ecx, 0x4fb644
call fcn.00472890
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x804]
xor ecx, ebp
call fcn.004944f9
add ebp, 0x808
leave
ret 0x20