Function at 0x40ada8
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43dd0f
mov eax, dword fs:[0]
push eax
mov eax, 0x202c
call fcn.0041bad0
mov eax, dword [0x456070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2024], ebx
xor esi, esi
mov dword [ebp - 0x2030], ebx
mov dword [ebp - 0x2028], esi
push esi
mov dword [ebp - 4], 1
call fcn.0042a1e4
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x2014]
mov dword [esp], 0x458e38
mov dword [ebp - 0x2020], eax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push esi
push ecx
push eax
push esi
mov dword [ebp - 0x2024], edx
mov dword [ebp - 0x2014], esi
call dword [sym.imp.urlmon.dll_URLOpenBlockingStreamW]
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebp - 0x2028], 1
test eax, eax
js 0x40b053
cmp dword [ebp - 0x2014], esi
je 0x40b053
mov dword [ebp - 0x201c], esi
jmp 0x40ae61
xor esi, esi
push esi
call fcn.0042a1e4
pop ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp - 0x2014]
lea edx, [ebp - 0x2018]
push edx
push 0x2000
lea edx, [ebp - 0x2010]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
push 0
mov dword [ebp - 0x202c], eax
call fcn.0042a1e4
sub eax, esi
pop ecx
sbb edx, edi
mov dword [ebp - 0x2034], edx
js 0x40aec5
jg 0x40aeac
cmp eax, 0x78
jbe 0x40aec5
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
push eax
push str.Oops_after__d_bytes._n
push dword [0x4585c4]
call fcn.00408bec
add esp, 0xc
mov eax, dword [ebp - 0x2018]
test eax, eax
je 0x40af4e
mov esi, dword [ebx + 4]
mov ecx, ebx
sub esi, dword [ebx]
add eax, esi
push eax
call fcn.0040d88e
push dword [ebp - 0x2018]
lea eax, [ebp - 0x2010]
push eax
mov eax, dword [ebx]
add eax, esi
push eax
call fcn.0041d770
add esp, 0xc
push 0x44dbb0
push dword [0x4585c4]
call fcn.00408bec
mov eax, dword [ebp - 0x201c]
pop ecx
inc eax
pop ecx
mov dword [ebp - 0x201c], eax
push 0x46
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x40af42
push edx
call fcn.0042a1e4
sub eax, dword [ebp - 0x2020]
pop ecx
push eax
push 0x44dbb4
push dword [0x4585c4]
call fcn.00408bec
add esp, 0xc
push dword [0x4585c4]
call fcn.00420a4b
pop ecx
mov eax, dword [ebp - 0x202c]
test eax, eax
js 0x40af61
cmp eax, 1
jne 0x40ae5f
mov ecx, dword [ebp - 0x2014]
test ecx, ecx
je 0x40af78
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [ebp - 0x2014], 0
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
push eax
call fcn.0040a064
mov ecx, dword [ebx + 4]
lea eax, [ebp + 8]
sub ecx, dword [ebx]
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
push eax
push str._nFile_downloading_complete__s__size:__d_n
push dword [0x4585c4]
call fcn.00408bec
push 0
call fcn.0042a1e4
mov edi, dword [ebp - 0x2020]
mov esi, eax
add esp, 0x14
mov ecx, esi
sub ecx, edi
mov eax, ecx
sbb edx, dword [ebp - 0x2024]
or eax, edx
je 0x40b00c
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
push edx
push ecx
push 0
push eax
call fcn.0043ccb0
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push eax
push str.Speed:__dKBs_n
push dword [0x4585c4]
call fcn.00408bec
add esp, 0xc
sub esi, edi
push esi
push str.Time:__ds_n
push dword [0x4585c4]
call fcn.00408bec
add esp, 0xc
xor esi, esi
mov ecx, dword [ebp - 0x2014]
test ecx, ecx
je 0x40b01e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [0x4585c4]
call fcn.00420a4b
pop ecx
push esi
push 1
lea ecx, [ebp + 8]
call fcn.00401a9a
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041aa0d
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.0040a064
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push str.File_doesnt_exist:__s_n
push dword [0x4585c4]
call fcn.00408bec
add esp, 0xc
jmp 0x40b00e