Function at 0x450670
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472844
mov eax, dword fs:[0]
push eax
mov eax, 0x2038
call fcn.004674c0
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x2044], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [edi + 0x98]
mov edx, dword [edi + 0x94]
xor esi, esi
mov dword [ebp - 0x2034], ebx
mov dword [ebp - 0x203c], ecx
mov dword [ebp - 0x2038], edx
mov dword [ebp - 0x2040], ebx
jmp 0x4506e2
xor ebx, ebx
mov edx, dword [edi + 4]
lea eax, [ebp - 0x2034]
push eax
push 0x2000
lea ecx, [ebp - 0x2014]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4507e3
push 0x482170
lea eax, [ebp - 0x2030]
call fcn.004025cc
lea ecx, [ebp - 0x2030]
mov byte [ebp - 4], 1
call fcn.004502a0
lea ecx, [ebp - 0x2030]
mov byte [ebp - 4], 0
call fcn.004025fd
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x450746
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edi + 4], ebx
mov eax, dword [edi + 0x24]
cmp eax, ebx
je 0x450757
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edi + 0x24], ebx
mov eax, dword [edi + 0x28]
cmp eax, ebx
je 0x450768
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edi + 0x28], ebx
cmp dword [edi + 0xa0], ebx
jle 0x450941
mov eax, dword [edi + 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x203c]
mov edx, dword [ebp - 0x2038]
mov eax, dword [ebp - 0x2044]
dec dword [edi + 0xa0]
add ecx, esi
push ecx
sub edx, esi
push edx
push ebx
push eax
mov ecx, edi
call fcn.00450490
test al, al
je 0x450941
push str.InternetReadFile__use_next_attempt
lea eax, [ebp - 0x2030]
call fcn.004025cc
lea ecx, [ebp - 0x2030]
mov byte [ebp - 4], 2
call fcn.004502a0
lea ecx, [ebp - 0x2030]
mov byte [ebp - 4], 0
call fcn.004025fd
jmp 0x4506e2
mov eax, dword [ebp - 0x2034]
cmp eax, ebx
jne 0x4508bd
mov eax, dword [ebp - 0x2038]
cmp eax, 0xffffffff
je 0x45093a
cmp esi, eax
je 0x45093a
mov eax, dword [edi + 4]
xor esi, esi
cmp eax, ebx
je 0x45081b
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edi + 4], ebx
mov eax, dword [edi + 0x24]
cmp eax, ebx
je 0x45082c
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edi + 0x24], ebx
mov eax, dword [edi + 0x28]
cmp eax, ebx
je 0x45083d
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edi + 0x28], ebx
cmp dword [edi + 0xa0], ebx
jle 0x450941
mov ecx, dword [edi + 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [edi + 0xa0]
cmp dword [ebp - 0x2038], ebx
mov edx, dword [ebp - 0x203c]
push ebx
setne al
movzx ecx, al
push edx
push ecx
push ebx
mov ecx, edi
call fcn.00450490
test al, al
je 0x450941
lea eax, [ebp - 0x2030]
cmp dword [edi + 0x74], ebx
jbe 0x450910
push str.Downloaded_bytes_less_than_the_length_of_the_content__redownload_all
call fcn.004025cc
lea ecx, [ebp - 0x2030]
mov byte [ebp - 4], 3
call fcn.004502a0
lea ecx, [ebp - 0x2030]
mov byte [ebp - 4], 0
call fcn.004025fd
jmp 0x4506e2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push eax
mov eax, dword [ebp - 0x203c]
add eax, esi
push eax
lea eax, [ebp - 0x2014]
push eax
call edx
add esi, dword [ebp - 0x2034]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub eax, dword [ebp - 0x2040]
cmp eax, 0x1f4
jbe 0x4506e0
mov ecx, dword [edi + 0xb0]
mov edx, dword [ecx]
mov eax, dword [edx]
push esi
push edi
call eax
mov dword [ebp - 0x2040], ebx
jmp 0x4506e0
push str.Downloaded_bytes_less_than_the_length_of_the_content__contentLength0__break
call fcn.004025cc
lea ecx, [ebp - 0x2030]
mov byte [ebp - 4], 4
call fcn.004502a0
lea ecx, [ebp - 0x2030]
mov byte [ebp - 4], 0
call fcn.004025fd
jmp 0x450941
mov byte [edi + 0xac], 1
mov ecx, dword [edi + 0xb0]
mov edx, dword [ecx]
mov eax, dword [edx]
push esi
push edi
call eax
mov ecx, dword [edi + 0xb0]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
push edi
call eax
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x450995
lea ecx, [edi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x450995
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x450995
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00452c94
mov esp, ebp
pop ebp
ret 0xc