Function at 0x519af0
Capabilities:
Check if file exists
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 0x5a8050
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x60f520]
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 eax, edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x68], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x74], edx
test ecx, ecx
je 0x519d79
test eax, eax
je 0x519d79
test ebx, ebx
je 0x519d79
push 0x63ce44
push 0x100
call fcn.005527e9
xor esi, esi
mov dword [ebp - 0x80], 0x5be2fc
add esp, 8
mov dword [ebp - 0x7c], esi
test eax, eax
je 0x519b7b
mov esi, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], esi
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x519b9b
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
jmp 0x519ba9
xorps xmm0, xmm0
movlpd qword [ebp - 0x4c], xmm0
mov ebx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x4c]
push dword [ebp - 0x54]
lea ecx, [ebp - 0x3c]
call fcn.0040c2d0
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00513d50
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x519be4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x50]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x519bf9
lea ecx, [ebp - 0x50]
call fcn.00513840
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
sub esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
push 0x80
push 4
push 2
push 0x40000000
push dword [ebp - 0x54]
call fcn.004338b0
test eax, eax
mov eax, dword [ebp - 0x4c]
js 0x519d35
cmp eax, 0xffffffff
je 0x519d35
push 2
lea ecx, [ebp - 0x60]
xorps xmm0, xmm0
push ecx
push 0
push eax
movlpd qword [ebp - 0x64], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x519c5c
call fcn.00433890
mov ecx, dword [ebp - 0x44]
call fcn.0051bbf0
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x58], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x60], 0
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x40]
push eax
push 0x100
push esi
push dword [ecx]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x519d35
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x519d72
push 0
lea ecx, [ebp - 0x3c]
push ecx
push eax
push esi
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x519cce
call fcn.00433890
test eax, eax
js 0x519d35
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x3c], eax
jne 0x519d35
mov ecx, dword [ebp - 0x68]
add edi, eax
adc ebx, 0
test ecx, ecx
je 0x519d00
push eax
push ebx
push edi
push dword [ebp - 0x58]
push dword [ebp - 0x70]
push dword [ebp - 0x54]
push dword [ebp - 0x74]
push dword [ebp - 0x44]
push dword [ebp - 0x6c]
call ecx
add esp, 0x24
test eax, eax
je 0x519d35
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
push ecx
push 0x100
push esi
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x60], 0
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x519ca5
xor edi, edi
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x519d45
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov esi, dword [ebp - 0x50]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x519d66
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x80]
call fcn.0043aa50
mov eax, edi
jmp 0x519d7b
mov edi, 1
jmp 0x519d37
xor eax, eax
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.0055199a
mov esp, ebp
pop ebp
ret