Function at 0x423937
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 [0x4ff5d0]
xor eax, ebp
mov dword [ebp + 0x804], eax
push 0x110
mov eax, 0x4be569
call fcn.004943c6
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.00437c91
pop ecx
pop ecx
mov dword [ebp - 0x30], eax
push edi
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], ebx
call fcn.00472340
push eax
lea eax, [ebp - 0x8c]
push str.Download__:_strURL_
push eax
mov byte [ebp - 4], 1
call fcn.00472c70
push 0x4d3968
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 2
call fcn.00472c20
push dword [ebp - 0x30]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00472bd0
push 0x4d37d4
push eax
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 4
call fcn.00472c20
push eax
mov byte [ebp - 4], 5
call fcn.00411af0
add esp, 0x34
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.00472320
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00472320
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.00472320
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.00472320
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.00472320
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00472320
cmp dword [ebp - 0x2c], ebx
jne 0x423a6c
push 0x4d1a4c
jmp 0x4242c9
mov dword [esi + 0x18], ebx
cmp edi, ebx
je 0x4242c4
mov dword [ebp - 0x24], 0xbb8
cmp dword [ebp - 0x10], ebx
je 0x423a9a
mov eax, dword [ebp - 0x10]
fld dword [eax + 0xff8]
fmul qword [0x4d3960]
call fcn.00497fb0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x80004005
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x50], ebx
jle 0x423afd
push dword [ebp + 0x828]
mov ecx, esi
push edi
call fcn.00423638
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jge 0x423b49
mov eax, dword [ebp - 0x50]
cmp eax, 1
jle 0x423af2
dec eax
cmp dword [ebp - 0x14], eax
je 0x423af2
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x10], ebx
je 0x423af2
mov eax, dword [ebp - 0x10]
fld dword [eax + 0xffc]
fimul dword [ebp - 0x24]
call fcn.00497fb0
mov dword [ebp - 0x24], eax
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x50]
jl 0x423aa9
lea ecx, [ebp - 0x44]
call fcn.00472090
push dword [ebp - 0x14]
lea eax, [ebp - 0x44]
push 0x4d395c
push eax
mov dword [ebp - 4], 6
call fcn.00472ff0
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
mov ecx, 0x501690
call fcn.00472880
mov ecx, esi
call fcn.00423330
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00472320
mov eax, dword [ebp - 0x1c]
jmp 0x4242d8
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 0x423b75
cmp dword [ebp - 0x74], 4
jne 0x423bb4
jmp 0x423baf
push 7
push str.file:__
push edi
call fcn.00497e6e
add esp, 0xc
test eax, eax
jne 0x423baf
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 0x423bbb
mov dword [ebp - 0x34], 1
cmp dword [ebp + 0x82c], ebx
je 0x423bd1
mov ecx, esi
call fcn.00423330
xor eax, eax
jmp 0x4242d8
lea edi, [esi + 4]
push edi
lea ecx, [ebp - 0xec]
call fcn.0047b470
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0xec]
mov dword [ebp - 4], 7
call fcn.0047b4b0
cmp byte [eax + 7], 0xff
mov byte [ebp - 4], 8
jne 0x423c02
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.00472320
cmp dword [ebp - 0x1c], ebx
jge 0x423ce4
lea ecx, [ebp - 0x7c]
call fcn.00472090
cmp byte [0x501697], 0xff
mov eax, 0x3e8
mov ebx, 0x501690
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], eax
mov edi, ebx
jne 0x423c4d
mov edi, dword [0x501690]
push 0x3000
lea ecx, [ebp - 0x30]
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.00472db0
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_UrlEscapeA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x7c]
call fcn.00472e40
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x68]
push 0x4d3958
push eax
call fcn.00472c70
push str.____zz
push eax
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 0xa
call fcn.00472c20
add esp, 0x18
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.004723d0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xa
call fcn.00472320
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 9
call fcn.00472320
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 7
call fcn.00472320
mov ecx, esi
call fcn.00423330
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call fcn.0047b580
jmp 0x423b41
cmp dword [ebp - 0x10], ebx
je 0x423d26
cmp dword [ebp - 0x28], ebx
je 0x423d26
push str.downloadStart
lea ecx, [ebp - 0x58]
call fcn.00472340
mov eax, dword [ebp - 0x28]
add eax, 0x3c
cmp byte [eax + 7], 0xff
mov byte [ebp - 4], 0xc
jne 0x423d0d
mov eax, dword [eax]
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0x10]
push eax
call fcn.00438747
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.00472320
cmp dword [ebp - 0x48], ebx
je 0x423d41
cmp byte [edi + 7], 0xff
mov eax, edi
jne 0x423d35
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 0x4241d5
mov edi, str.BreakDownload
cmp dword [esi + 0x14], ebx
je 0x424214
cmp dword [ebp - 0x10], ebx
je 0x423da5
mov eax, dword [ebp - 0x10]
fld dword [eax + 0xff8]
fmul qword [0x4d3960]
call fcn.00497fb0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x34], ebx
je 0x423da5
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x423da5
cmp dword [eax + 4], ebx
je 0x4241f1
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.00493d40
add esp, 0xc
push 0x4d390c
lea ecx, [ebp - 0x68]
call fcn.00472340
push 0x4d390c
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xd
call fcn.00472340
push edi
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xe
call fcn.00472340
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.0041ab2c
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x11
call fcn.00472320
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x12
call fcn.00472320
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x13
call fcn.00472320
lea ecx, [ebp - 0x58]
call fcn.00472090
cmp dword [ebp - 0x14], 0x800
mov byte [ebp - 4], 0x14
jb 0x423efa
push edi
lea ecx, [ebp - 0x3c]
call fcn.00472340
or dword [ebp - 0x20], 1
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x5022bc
mov byte [ebp - 4], 0x15
call fcn.0041a826
mov ecx, eax
call fcn.0041a24f
test eax, eax
je 0x423ebc
push edi
lea ecx, [ebp - 0x70]
call fcn.00472340
or dword [ebp - 0x20], 2
lea eax, [ebp - 0x70]
push eax
mov ecx, 0x5022bc
mov dword [ebp - 4], 0x16
call fcn.0041a826
mov ecx, eax
call fcn.0042004f
mov byte [ebp - 0x15], 1
cmp eax, 0x4d1a4c
je 0x423ebf
mov byte [ebp - 0x15], bl
test byte [ebp - 0x20], 2
mov dword [ebp - 4], 0x15
je 0x423ed8
and dword [ebp - 0x20], 0xfffffffd
lea ecx, [ebp - 0x70]
call fcn.00472320
test byte [ebp - 0x20], 1
mov dword [ebp - 4], 0x14
je 0x423ef1
and dword [ebp - 0x20], 0xfffffffe
lea ecx, [ebp - 0x3c]
call fcn.00472320
cmp byte [ebp - 0x15], bl
jne 0x4241f6
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 0x423f8c
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x4241f9
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 0x423f3f
fadd dword [0x4d3908]
fdiv qword [0x4d3960]
mov eax, dword [ebp - 0x14]
fstp dword [ebp - 0x4c]
fild dword [ebp - 0x14]
test eax, eax
jns 0x423f58
fadd dword [0x4d3908]
fmul qword [0x4d3900]
fdiv dword [ebp - 0x4c]
call fcn.00497fb0
mov ecx, dword [ebp - 0x48]
mov dword [esi + 0x10], eax
cmp ecx, ebx
je 0x423f78
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 0x423fb8
mov dword [ebp - 0x30], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x60], eax
cmp eax, 0x2ee3
jne 0x423fb8
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 0x4241ba
mov edi, dword [ebp - 0x10]
inc dword [ebp - 0x1c]
cmp edi, ebx
je 0x424052
cmp dword [ebp - 0x28], ebx
je 0x424052
lea ecx, [ebp - 0x84]
call fcn.00472090
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.00472ff0
mov eax, dword [ebp - 0x28]
add eax, 0x3c
push eax
lea eax, [ebp - 0xb4]
push str.packageID
push eax
call fcn.00472c70
add esp, 0x1c
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x18
call fcn.00472880
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0x17
call fcn.00472320
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.00472320
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x50]
jge 0x4241e0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, ebx
je 0x42407c
fld dword [edi + 0xffc]
fimul dword [ebp - 0x24]
call fcn.00497fb0
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 0x424091
mov eax, dword [eax]
push ebx
push 0x200000
push ebx
push ebx
push eax
push dword [0x501688]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [esi], eax
cmp eax, ebx
je 0x423fb8
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.0047b4b0
cmp byte [eax + 7], 0xff
mov byte [ebp - 4], 0x19
jne 0x4240d9
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.00472320
cmp edi, ebx
jge 0x4241ba
lea ecx, [ebp - 0x44]
call fcn.00472090
cmp byte [0x501697], 0xff
mov byte [ebp - 4], 0x1a
mov dword [ebp - 0x98], 0x3e8
mov edi, 0x501690
jne 0x424125
mov edi, dword [0x501690]
push 0x3000
lea eax, [ebp - 0x98]
push eax
push 0x3e8
lea ecx, [ebp - 0x44]
call fcn.00472db0
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_UrlEscapeA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x44]
call fcn.00472e40
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xa4]
push 0x4d38b8
push eax
call fcn.00472c70
push str.____zz
push eax
lea eax, [ebp - 0xbc]
push eax
mov byte [ebp - 4], 0x1b
call fcn.00472c20
add esp, 0x18
push eax
mov ecx, 0x501690
mov byte [ebp - 4], 0x1c
call fcn.004723d0
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0x1b
call fcn.00472320
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0x1a
call fcn.00472320
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x14
call fcn.00472320
mov dword [esi + 0x14], ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x13
call fcn.00472320
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 7
call fcn.0041a2ea
cmp dword [esi + 0x18], ebx
je 0x423d63
jmp 0x424214
push 0x4d38b4
mov ecx, 0x501690
call fcn.004727a0
jmp 0x4241b7
mov dword [esi + 0x14], ebx
jmp 0x424214
mov dword [esi + 0x14], ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x13
call fcn.00472320
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 7
call fcn.0041a2ea
cmp dword [ebp - 0x10], ebx
je 0x424273
cmp dword [ebp - 0x28], ebx
je 0x424273
cmp dword [esi + 0x18], ebx
je 0x424236
push str.downloadCancel
lea ecx, [ebp - 0x3c]
call fcn.00472340
mov byte [ebp - 4], 0x1d
jmp 0x42424c
cmp dword [esi + 0x14], ebx
je 0x424273
push str.downloadSuccessful
lea ecx, [ebp - 0x3c]
call fcn.00472340
mov byte [ebp - 4], 0x1e
mov eax, dword [ebp - 0x28]
add eax, 0x3c
cmp byte [eax + 7], 0xff
jne 0x42425a
mov eax, dword [eax]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x10]
push eax
call fcn.00438747
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
call fcn.00472320
mov ecx, dword [ebp - 0x48]
cmp ecx, ebx
je 0x42428a
mov eax, dword [ecx]
cmp dword [esi + 0x18], ebx
je 0x424284
push ebx
jmp 0x424287
push dword [esi + 0x14]
call dword [eax + 0xc]
mov edi, 0x80004005
cmp dword [esi + 0x18], ebx
je 0x42429b
mov edi, 0x8000aaa3
jmp 0x4242a2
cmp dword [esi + 0x14], ebx
je 0x4242a2
xor edi, edi
mov ecx, esi
call fcn.00423330
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call fcn.0047b580
mov eax, edi
jmp 0x4242d8
push 0x4d388c
mov ecx, 0x501690
call fcn.00472470
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.00493f43
add ebp, 0x808
leave
ret 0x20