Function at 0x60b560
Capabilities:
Check if file exists
Connect to http server
Create directory
Create http request
Download and write a file
Get file attributes
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66049c
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x500
mov eax, dword [0x6feae4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x494], ecx
mov byte [ebp - 0x495], 0
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4a8], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x60b5d0
mov eax, dword [ebp + 8]
push eax
call fcn.0064a3ce
add esp, 4
test eax, eax
jne 0x60b5eb
mov dword [ebp - 0x500], 6
push 0x6f5bc0
lea ecx, [ebp - 0x500]
push ecx
call fcn.0062c21d
mov ecx, dword [ebp - 0x494]
call fcn.0060c930
push 0
push 0
push 0
push 0
push str.Http_connect
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, dword [ebp - 0x494]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x494]
cmp dword [eax + 0xc], 0
jne 0x60b639
mov dword [ebp - 0x4fc], 1
push 0x6f5bc0
lea ecx, [ebp - 0x4fc]
push ecx
call fcn.0062c21d
mov edx, 0x50
mov word [ebp - 0x49c], dx
lea ecx, [ebp - 0x448]
call fcn.0044d7f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x460]
call fcn.0044d7f0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x49c]
push eax
lea ecx, [ebp - 0x460]
push ecx
lea edx, [ebp - 0x448]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0060c5f0
add esp, 0x10
movzx ecx, word [ebp - 0x49c]
cmp ecx, 0x1bb
jne 0x60b69d
mov edx, dword [ebp - 0x494]
mov byte [edx + 8], 1
push 0
push 0
push 3
push 0
push 0
movzx eax, word [ebp - 0x49c]
push eax
lea ecx, [ebp - 0x448]
call fcn.0044d5e0
push eax
mov ecx, dword [ebp - 0x494]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, dword [ebp - 0x494]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x494]
cmp dword [edx + 0x10], 0
jne 0x60b6fb
mov dword [ebp - 0x4f8], 2
push 0x6f5bc0
lea eax, [ebp - 0x4f8]
push eax
call fcn.0062c21d
mov dword [ebp - 0x4b4], htonl
mov ecx, dword [ebp - 0x494]
movzx edx, byte [ecx + 8]
test edx, edx
je 0x60b724
mov eax, dword [ebp - 0x4b4]
or eax, 0x802000
mov dword [ebp - 0x4b4], eax
push 0
mov ecx, dword [ebp - 0x4b4]
push ecx
push 0
push 0
push 0x6cf140
lea ecx, [ebp - 0x460]
call fcn.0044d5e0
push eax
push 0x6cf154
mov edx, dword [ebp - 0x494]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ecx, dword [ebp - 0x494]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x494]
cmp dword [edx + 0x14], 0
jne 0x60b787
mov dword [ebp - 0x4f4], 1
push 0x6f5bc0
lea eax, [ebp - 0x4f4]
push eax
call fcn.0062c21d
lea ecx, [ebp - 0x478]
push ecx
mov ecx, dword [ebp - 0x494]
add ecx, 0x18
call fcn.00614360
mov dword [ebp - 0x508], eax
mov byte [ebp - 4], 3
push 0xa0000000
lea ecx, [ebp - 0x478]
call fcn.00446fa0
push eax
lea ecx, [ebp - 0x478]
call fcn.00446fb0
push eax
mov edx, dword [ebp - 0x494]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x494]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 0x4ac], eax
cmp dword [ebp - 0x4ac], 0
jne 0x60b815
mov dword [ebp - 0x4f0], 3
push 0x6f5bc0
lea eax, [ebp - 0x4f0]
push eax
call fcn.0062c21d
push 0x401
push 0
lea ecx, [ebp - 0x418]
push ecx
call fcn.0062b160
add esp, 0xc
mov dword [ebp - 0x4a4], 0x400
mov ecx, dword [ebp - 0x494]
call fcn.0060c8b0
mov dword [ebp - 0x504], eax
mov edx, dword [ebp - 0x494]
mov eax, dword [ebp - 0x504]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x494]
cmp dword [ecx + 4], 0x194
jne 0x60b87f
mov dword [ebp - 0x4d8], 5
push 0x6f5bc0
lea edx, [ebp - 0x4d8]
push edx
call fcn.0062c21d
push 0
lea eax, [ebp - 0x4a4]
push eax
lea ecx, [ebp - 0x418]
push ecx
push 5
mov edx, dword [ebp - 0x494]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [ebp - 0x4ac], eax
cmp dword [ebp - 0x4ac], 0
jne 0x60b8cb
mov dword [ebp - 0x4dc], 4
push 0x6f5bc0
lea ecx, [ebp - 0x4dc]
push ecx
call fcn.0062c21d
mov edx, dword [ebp - 0x4a4]
mov dword [ebp - 0x4b8], edx
cmp dword [ebp - 0x4b8], 0x401
jae 0x60b8e5
jmp 0x60b8ea
call fcn.006097dc
mov eax, dword [ebp - 0x4b8]
mov byte [ebp + eax - 0x418], 0
lea ecx, [ebp - 0x418]
push ecx
call fcn.0063e477
add esp, 4
fstp qword [ebp - 0x4d4]
movsd xmm0, qword [0x6cf250]
comisd xmm0, xmmword [ebp - 0x4d4]
jbe 0x60b92f
cvttsd2si edx, qword [ebp - 0x4d4]
mov dword [ebp - 0x4bc], edx
jmp 0x60b939
mov dword [ebp - 0x4bc], 0x1000
mov eax, dword [ebp - 0x4bc]
mov dword [ebp - 0x4c0], eax
mov ecx, dword [ebp - 0x4c0]
push ecx
call fcn.006394f3
add esp, 4
mov dword [ebp - 0x4b0], eax
mov dword [ebp - 0x4a0], 0
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x430]
call fcn.0044d7a0
mov dword [ebp - 0x50c], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x4a0]
push eax
push 0x6cf15c
lea ecx, [ebp - 0x430]
call fcn.0060d3c0
mov dword [ebp - 0x4a0], eax
cmp dword [ebp - 0x4a0], 0xffffffff
je 0x60ba08
mov ecx, dword [ebp - 0x4a0]
push ecx
push 0
lea edx, [ebp - 0x490]
push edx
lea ecx, [ebp - 0x430]
call fcn.0044d4e0
lea ecx, [ebp - 0x490]
call fcn.0044d5e0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x60b9e9
push 0
lea ecx, [ebp - 0x490]
call fcn.0044d5e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x4a0]
add eax, 1
mov dword [ebp - 0x4a0], eax
lea ecx, [ebp - 0x490]
call fcn.0044d6c0
jmp 0x60b97d
push 0x6cf160
lea ecx, [ebp - 0x430]
call fcn.0044d5e0
push eax
lea ecx, [ebp - 0x4a8]
push ecx
call fcn.0063944e
add esp, 0xc
cmp dword [ebp - 0x4a8], 0
jne 0x60ba4c
mov dword [ebp - 0x4e0], 7
push 0x6f5bc0
lea edx, [ebp - 0x4e0]
push edx
call fcn.0062c21d
xorps xmm0, xmm0
movsd qword [ebp - 0x4cc], xmm0
mov eax, 1
test eax, eax
je 0x60bb7a
lea ecx, [ebp - 0x4a4]
push ecx
mov edx, dword [ebp - 0x4c0]
push edx
mov eax, dword [ebp - 0x4b0]
push eax
mov ecx, dword [ebp - 0x494]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x4ac], eax
cmp dword [ebp - 0x4ac], 0
je 0x60baa1
cmp dword [ebp - 0x4a4], 0
jne 0x60baa6
jmp 0x60bb7a
mov eax, dword [ebp - 0x4a8]
push eax
push 1
mov ecx, dword [ebp - 0x4a4]
push ecx
mov edx, dword [ebp - 0x4b0]
push edx
call fcn.00639252
add esp, 0x10
mov dword [ebp - 0x4e4], eax
cmp dword [ebp - 0x4e4], 0
jne 0x60baef
mov dword [ebp - 0x4e8], 0xf
push 0x6f5bc0
lea eax, [ebp - 0x4e8]
push eax
call fcn.0062c21d
mov ecx, dword [ebp - 0x4a4]
mov dword [ebp - 0x4c4], ecx
cvtsi2sd xmm0, dword [ebp - 0x4c4]
mov edx, dword [ebp - 0x4c4]
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x6ead30]
addsd xmm0, qword [ebp - 0x4cc]
movsd qword [ebp - 0x4cc], xmm0
mov eax, dword [ebp - 0x494]
cmp dword [eax + 0x74], 0
je 0x60bb75
sub esp, 8
movsd xmm0, qword [ebp - 0x4cc]
movsd qword [esp], xmm0
sub esp, 8
movsd xmm0, qword [ebp - 0x4d4]
movsd qword [esp], xmm0
push 0
mov ecx, dword [ebp - 0x494]
mov edx, dword [ecx + 0x70]
push edx
mov eax, dword [ebp - 0x494]
mov ecx, dword [ebp - 0x494]
mov edx, dword [ecx + 0x74]
mov edx, dword [edx]
mov ecx, dword [eax + 0x74]
mov eax, dword [edx]
call eax
jmp 0x60ba57
mov ecx, dword [ebp - 0x4a8]
push ecx
call fcn.00638f9a
add esp, 4
movsd xmm0, qword [ebp - 0x4d4]
ucomisd xmm0, qword [ebp - 0x4cc]
lahf
test ah, 0x44
jnp 0x60bbba
mov dword [ebp - 0x4ec], 8
push 0x6f5bc0
lea edx, [ebp - 0x4ec]
push edx
call fcn.0062c21d
mov eax, dword [ebp - 0x494]
cmp dword [eax + 0x74], 0
je 0x60bc0a
sub esp, 8
movsd xmm0, qword [ebp - 0x4cc]
movsd qword [esp], xmm0
sub esp, 8
movsd xmm0, qword [ebp - 0x4d4]
movsd qword [esp], xmm0
push 2
mov ecx, dword [ebp - 0x494]
mov edx, dword [ecx + 0x70]
push edx
mov eax, dword [ebp - 0x494]
mov ecx, dword [ebp - 0x494]
mov edx, dword [ecx + 0x74]
mov edx, dword [edx]
mov ecx, dword [eax + 0x74]
mov eax, dword [edx]
call eax
mov byte [ebp - 0x495], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x430]
call fcn.0044d6c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x478]
call fcn.00446fe0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x460]
call fcn.0044d6c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x448]
call fcn.0044d6c0
jmp 0x60bcaa
mov dword [ebp - 4], 0xffffffff
jmp 0x60bcba
cmp dword [ebp - 0x4b0], 0
je 0x60bcd2
mov ecx, dword [ebp - 0x4b0]
push ecx
call fcn.00632f24
add esp, 4
cmp dword [ebp - 0x4a8], 0
je 0x60bcea
mov edx, dword [ebp - 0x4a8]
push edx
call fcn.00638f9a
add esp, 4
mov al, byte [ebp - 0x495]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0060963b
mov esp, ebp
pop ebp
ret 8