Function at 0x4605f0
Capabilities:
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
sub esp, 0x40
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0x18], 0
je 0x46065d
cmp dword [ebp + 0x10], 0
je 0x460612
mov dword [ebp - 0x34], 0x51b460
jmp 0x460619
mov dword [ebp - 0x34], 0x51b468
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.004b97a3
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x460649
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004be7ad
add esp, 0xc
mov dword [ebp - 0x38], eax
jmp 0x460650
mov dword [ebp - 0x38], 1
cmp dword [ebp - 0xc], 0
jne 0x46065d
xor eax, eax
jmp 0x460889
mov dword [ebp - 8], 4
mov dword [ebp - 0x14], 0
push 0
push 0
push 0
push 0
push str.VsyDownload_1.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x460887
push 0
push 0x84000002
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4606be
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x460889
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x24]
push eax
push 0x20000013
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4606e4
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0xc8
je 0x4606fe
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x460889
cmp dword [ebp + 0x14], 0
je 0x46070c
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
jmp 0x460732
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0x20000005
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x460732
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x10], 0
je 0x46074c
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
mov ecx, dword [ebp - 0x10]
add ecx, 1
push ecx
call fcn.0048097b
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004b83b0
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x460787
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
mov dword [edx], eax
cmp dword [ebp + 0x10], 0
je 0x46079c
cmp dword [ebp + 0x14], 0
jne 0x46079c
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
cmp edx, 0x400
jb 0x4607d0
mov dword [ebp - 0x3c], 0x400
jmp 0x4607d9
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 0xc], 0
je 0x46081c
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004b965b
add esp, 0x10
mov dword [ebp - 0x40], eax
jmp 0x460823
mov dword [ebp - 0x40], 1
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x1c], 0
ja 0x4607aa
cmp dword [ebp - 0xc], 0
je 0x460854
mov eax, dword [ebp - 0xc]
push eax
call fcn.004bf740
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004b947d
add esp, 4
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp + 0xc], 0
jne 0x460880
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.004b7eaf
add esp, 4
mov eax, 1
jmp 0x460889
xor eax, eax
mov esp, ebp
pop ebp
ret