Function at 0x42a390
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, 0x3c
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x24], 0
push 0
push 0
push 0
push 0
push str.VsyDownload_1.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42a584
push 0
push 0x84000002
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x42a401
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x42a586
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0x20000013
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x42a427
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0xc8
je 0x42a441
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x42a586
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x20000005
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x42a467
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 1
push eax
call fcn.00470eaa
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 4]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004726b0
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x42a4a2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
mov dword [ecx], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
cmp eax, 0x400
jb 0x42a4d5
mov dword [ebp - 0x2c], 0x400
jmp 0x42a4de
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 8]
mov dword [ebp - 0x2c], ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 0x10], 0
je 0x42a518
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0047abaf
add esp, 0x10
mov dword [ebp - 0x34], eax
jmp 0x42a51f
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 0
ja 0x42a4b0
cmp dword [ebp - 0x10], 0
je 0x42a54c
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0047b3ee
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call fcn.00479b52
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp + 0xc], 0
jne 0x42a578
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.004709de
add esp, 4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov al, 1
jmp 0x42a586
xor al, al
mov esp, ebp
pop ebp
ret 0xc