Function at 0x403500
Capabilities:
Check for time delay via gettickcount
Check http status code
Create http request
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574da0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5dae44]
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
xor esi, esi
mov dword [ebp - 4], 1
mov ebx, dword [ebp + 8]
xor edi, edi
push esi
push esi
push esi
push esi
push str.Mozilla_4.0_compatible_MSIE9.0_WindowsNT6.1_LinLauncher_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x403686
push esi
push esi
push esi
push esi
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x403620
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp - 0x14]
push eax
push 0x20000013
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x403619
cmp dword [ebp - 0x14], 0xc8
jne 0x403619
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x20000005
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x403619
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x403619
push edi
call fcn.00406788
mov esi, eax
add esp, 4
test esi, esi
je 0x403619
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp - 0x24], eax
xor edi, edi
lea eax, [ebp - 0x20]
push eax
push 0x800
lea ecx, [edi + esi]
push ecx
push dword [ebp - 0x28]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x403668
add edi, dword [ebp - 0x20]
call ebx
sub eax, dword [ebp - 0x24]
cmp eax, 0x64
jbe 0x40360d
call ebx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], 0
jne 0x4035e1
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x30]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x403686
push 0x5bb910
push dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
call fcn.0055445f
add esp, 0xc
test eax, eax
jne 0x403677
push dword [ebp - 0x24]
push edi
push 1
push esi
call fcn.005546bf
push dword [ebp - 0x24]
call fcn.005549fb
push dword [ebp - 0x24]
call fcn.00554ac9
add esp, 0x18
mov bl, 1
jmp 0x403679
push esi
xor edi, edi
call fcn.00406783
add esp, 4
xor esi, esi
jmp 0x403616
xor bl, bl
push esi
call fcn.00406783
add esp, 4
test bl, bl
jne 0x403694
push 0
push 0
push 0x12
push 0
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4036b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4036d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0054b27c
mov esp, ebp
pop ebp
ret