Function at 0x405fe0
Capabilities:
Create http request
Download and write a file
Query remote server for available data
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 0x56eded
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5cee6c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00404d30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00404d30
mov byte [ebp - 4], 3
push 0
push 0
push 0
push 1
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x406082
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00404dd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00404dd0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404dd0
mov eax, dword [ebp - 0x34]
jmp 0x406303
imul eax, dword [ebp + 0x10], 0x3e8
mov dword [ebp + 0x10], eax
push 4
lea ecx, [ebp + 0x10]
push ecx
push 6
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0
push 0x24000000
push 0
push 0
lea ecx, [ebp + 8]
call fcn.00403ff0
push eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x406107
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00404dd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00404dd0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404dd0
mov eax, dword [ebp - 0x38]
jmp 0x406303
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp + 0xc]
call fcn.00403ff0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40617d
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00404dd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00404dd0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404dd0
mov eax, dword [ebp - 0x3c]
jmp 0x406303
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x30]
call fcn.00404d30
mov byte [ebp - 4], 4
push 0
push 0
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov ecx, dword [ebp - 0x28]
add ecx, 2
push ecx
call fcn.00554e96
add esp, 4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x28]
add edx, 2
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00550f70
add esp, 0xc
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x406265
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0xa
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
lea edx, [ebp + 0xc]
push edx
call fcn.00404c30
mov ecx, dword [ebp - 0x40]
call fcn.00406530
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.00404dd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00404dd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00404dd0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404dd0
mov eax, dword [ebp - 0x44]
jmp 0x406303
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x2c]
mov byte [eax], 0
push 0
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x10]
push edx
call fcn.00554ea1
add esp, 4
cmp dword [ebp - 0x2c], 0
jne 0x406197
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.00404dd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00404dd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00404dd0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404dd0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc