Function at 0x420c8f
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 0x599021
mov eax, dword fs:[0]
push eax
mov eax, 0x30bc
call fcn.0055edf0
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.00421781
add esp, 0x18
push eax
lea ecx, [ebp - 0x3060]
mov byte [ebp - 4], 3
call fcn.004086ea
lea ecx, [ebp - 0x30c8]
mov byte [ebp - 4], 2
call fcn.00405438
cmp byte [ebp - 0x3060], 0
je 0x420f53
mov eax, dword [ebp - 0x3020]
mov ecx, dword [ebp - 0x301c]
mov dword [ebp - 0x306c], eax
mov dword [ebp - 0x3078], ecx
test ebx, ebx
je 0x420d61
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.00417c71
xor eax, eax
push eax
push eax
push eax
push eax
push 0x5e5da0
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
je 0x420f09
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 0x420e89
cmp dword [ebp + 0x34], 0x10
lea ecx, [ebp + 0x20]
push 0x5e5db8
cmovae ecx, dword [ebp + 0x20]
push ecx
mov dword [ebp - 0x3014], edi
call fcn.0055bb7c
mov dword [ebp - 0x3070], eax
pop ecx
pop ecx
test eax, eax
je 0x420e82
mov esi, dword [ebp - 0x3064]
xor eax, eax
mov edi, dword [ebp - 0x3068]
cmp dword [ebp - 0x3014], eax
jbe 0x420e74
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.0055c73b
mov ecx, dword [ebp - 0x3014]
add esp, 0x10
mov eax, dword [ebp - 0x3064]
add edi, ecx
adc esi, 0
cmp eax, 0xa
jle 0x420e70
test ebx, ebx
je 0x420e6e
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 0x420df8
push dword [ebp - 0x3070]
call fcn.0055c3f5
pop ecx
jmp 0x420eb5
mov esi, 0x5e5dbc
jmp 0x420e8e
mov esi, 0x5e5dd4
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 0x420ecc
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.0040d01d
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 0x420f84
mov edi, 0x5e5df0
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.0040d01d
lea ecx, [ebp - 0x3060]
call fcn.00405438
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.0040412f
push ebx
push 1
jmp 0x420f7a
lea eax, [ebp - 0x3060]
mov ecx, esi
push eax
call fcn.0040d01d
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.005599c5
mov esp, ebp
pop ebp
ret