Function at 0x517fbf
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
mov eax, 0x5ae17c
call fcn.00591b5c
sub esp, 0x58
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x18], 0x7d0
push dword [ebp - 0x18]
call fcn.00565bb9
pop ecx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
xor eax, eax
inc eax
test eax, eax
je 0x5181b7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x10]
jae 0x518015
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
jmp 0x518029
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x64
jbe 0x518029
jmp 0x5181b7
lea eax, [ebp - 0x1d]
push eax
push dword [ebp + 0x10]
push 0
mov ecx, dword [ebp - 0x64]
add ecx, 0x90
call fcn.0053b47a
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x51805f
push str.Aborted_by_application_while_download_throttling__3_
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
xor al, al
jmp 0x5181b9
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x64]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x1c], eax
and dword [ebp - 0x24], 0
cmp dword [ebp - 0x1c], 0
jne 0x5180c4
push 2
mov eax, dword [ebp - 0x64]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebp - 0x64]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x64]
or dword [eax + 0x4c], 0xffffffff
mov eax, dword [ebp - 0x64]
and byte [eax + 0x48], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
push dword [ebp - 0x54]
call fcn.00565be4
pop ecx
xor al, al
jmp 0x5181b9
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x51815f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x2733
jne 0x5180f6
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x58], eax
push dword [ebp - 0x58]
call fcn.00565be4
pop ecx
mov al, 1
jmp 0x5181b9
lea ecx, [ebp - 0x48]
call fcn.004cde9c
and dword [ebp - 4], 0
push str.SOCKET_ERROR:
lea ecx, [ebp - 0x48]
call fcn.004cd951
lea ecx, [ebp - 0x48]
call fcn.004cfd54
lea ecx, [ebp - 0x48]
call fcn.0055420c
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
push str.Failed_to_accumulate_data_on_socket.
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], eax
push dword [ebp - 0x5c]
call fcn.00565be4
pop ecx
and byte [ebp - 0x5d], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004ce1b7
mov al, byte [ebp - 0x5d]
jmp 0x5181b9
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x1c], 0
jle 0x518193
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x64]
movzx eax, byte [eax + 0xe4]
test eax, eax
je 0x518193
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x64]
add ecx, 8
call fcn.0053b91f
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x64]
add ecx, 0x90
call fcn.0053b3ea
push dword [ebp - 0x24]
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
call fcn.004d2c5e
jmp 0x517ff1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc