Function at 0x420dc3
Capabilities:
Create http request
Download and write a file
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 0x5991f4
mov eax, dword fs:[0]
push eax
mov eax, 0x30bc
call fcn.0055ef30
mov eax, dword [0x610490]
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
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x3074], esi
and dword [ebp - 0x3080], 0
xor edi, edi
lea ecx, [ebp - 0x3060]
inc edi
mov dword [ebp - 4], edi
call fcn.00407888
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
xorps xmm0, xmm0
mov ecx, esp
movlpd qword [ebp - 0x3068], xmm0
push eax
call fcn.00403e6e
lea ecx, [ebp - 0x30c8]
call fcn.004218b5
add esp, 0x18
push eax
lea ecx, [ebp - 0x3060]
mov byte [ebp - 4], 3
call fcn.004086e4
lea ecx, [ebp - 0x30c8]
mov byte [ebp - 4], 2
call fcn.00405438
cmp byte [ebp - 0x3060], 0
je 0x421087
mov eax, dword [ebp - 0x3020]
mov ecx, dword [ebp - 0x301c]
mov dword [ebp - 0x306c], eax
mov dword [ebp - 0x3078], ecx
test ebx, ebx
je 0x420e95
push 0
push 0
push ecx
push eax
call ebx
add esp, 0x10
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
lea edx, [ebp - 0x810]
cmovae ecx, dword [ebp + 8]
call fcn.00417da5
xor eax, eax
push eax
push eax
push eax
push eax
push 0x5e5d90
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
je 0x42103d
xor ecx, ecx
push ecx
push 0x4000000
push ecx
push ecx
lea ecx, [ebp - 0x810]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x307c], eax
test eax, eax
je 0x420fbd
cmp dword [ebp + 0x34], 0x10
lea ecx, [ebp + 0x20]
push 0x5e5da8
cmovae ecx, dword [ebp + 0x20]
push ecx
mov dword [ebp - 0x3014], edi
call fcn.0055bcbc
mov dword [ebp - 0x3070], eax
pop ecx
pop ecx
test eax, eax
je 0x420fb6
mov esi, dword [ebp - 0x3064]
xor eax, eax
mov edi, dword [ebp - 0x3068]
cmp dword [ebp - 0x3014], eax
jbe 0x420fa8
inc eax
mov dword [ebp - 0x3064], eax
lea eax, [ebp - 0x3014]
push eax
push 0x27ff
lea eax, [ebp - 0x3010]
push eax
push dword [ebp - 0x307c]
call dword [sym.imp.WININET.dll_InternetReadFile]
push dword [ebp - 0x3070]
lea eax, [ebp - 0x3010]
push dword [ebp - 0x3014]
push 1
push eax
call fcn.0055c87b
mov ecx, dword [ebp - 0x3014]
add esp, 0x10
mov eax, dword [ebp - 0x3064]
add edi, ecx
adc esi, 0
cmp eax, 0xa
jle 0x420fa4
test ebx, ebx
je 0x420fa2
push esi
push edi
push dword [ebp - 0x3078]
push dword [ebp - 0x306c]
call ebx
mov ecx, dword [ebp - 0x3014]
add esp, 0x10
xor eax, eax
test ecx, ecx
jne 0x420f2c
push dword [ebp - 0x3070]
call fcn.0055c535
pop ecx
jmp 0x420fe9
mov esi, 0x5e5dac
jmp 0x420fc2
mov esi, 0x5e5dc4
push esi
mov byte [ebp - 0x3060], 0
call fcn.004035ea
pop ecx
push eax
push esi
lea ecx, [ebp - 0x305c]
call fcn.004042b9
mov edi, dword [ebp - 0x3068]
mov esi, dword [ebp - 0x3064]
test ebx, ebx
je 0x421000
push esi
push edi
push dword [ebp - 0x301c]
push dword [ebp - 0x3020]
call ebx
add esp, 0x10
mov ecx, dword [ebp - 0x3074]
lea eax, [ebp - 0x3060]
push eax
call fcn.0040d019
lea ecx, [ebp - 0x3060]
call fcn.00405438
push 0
push 1
lea ecx, [ebp + 8]
call fcn.0040412f
push 0
push 1
lea ecx, [ebp + 0x20]
call fcn.0040412f
mov eax, dword [ebp - 0x3074]
jmp 0x4210b8
mov edi, 0x5e5de0
xor ebx, ebx
push edi
mov byte [ebp - 0x3060], bl
call fcn.004035ea
pop ecx
push eax
push edi
lea ecx, [ebp - 0x305c]
call fcn.004042b9
lea eax, [ebp - 0x3060]
mov ecx, esi
push eax
call fcn.0040d019
lea ecx, [ebp - 0x3060]
call fcn.00405438
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.0040412f
push ebx
push 1
jmp 0x4210ae
lea eax, [ebp - 0x3060]
mov ecx, esi
push eax
call fcn.0040d019
lea ecx, [ebp - 0x3060]
call fcn.00405438
push 0
push edi
lea ecx, [ebp + 8]
call fcn.0040412f
push 0
push edi
lea ecx, [ebp + 0x20]
call fcn.0040412f
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 - 0x10]
xor ecx, ebp
call fcn.00559b09
mov esp, ebp
pop ebp
ret