Function at 0x517995
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x5ae4cc
call fcn.00591b5c
sub esp, 0x30
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 0x10]
and byte [eax], 0
mov eax, dword [ebp + 0x14]
and byte [eax], 0
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x4c], 0xffffffff
jne 0x5179dd
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
push str.This_socket_is_not_connected
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
call dword [eax + 0x10]
xor al, al
jmp 0x517ba7
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0xb8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5179f6
mov dword [ebp - 0x10], 0xea60
push 0xabc
push 0
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x3c]
call fcn.00516c30
mov byte [ebp - 0x16], al
movzx eax, byte [ebp - 0x16]
test eax, eax
jne 0x517a4f
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x4c], 0xffffffff
je 0x517a3c
push str.WaitForData_timed_out.
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
call dword [eax + 0x10]
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x517a42
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor al, al
jmp 0x517ba7
and byte [ebp - 0x15], 0
lea eax, [ebp - 0x15]
push eax
push dword [ebp + 0x1c]
push 0
mov ecx, dword [ebp - 0x3c]
add ecx, 0x90
call fcn.0053b47a
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x517a8f
push str.Aborted_by_application_while_download_throttling__1_
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
call dword [eax + 0x10]
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor al, al
jmp 0x517ba7
push 0
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
mov eax, dword [ebp - 0x3c]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
and dword [eax], 0
cmp dword [ebp - 0x14], 0
jne 0x517af9
push str.The_peer_has_closed_the_socket__TCP__connection
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
call dword [eax + 0x10]
push 2
mov eax, dword [ebp - 0x3c]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebp - 0x3c]
push dword [eax + 0x4c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x3c]
or dword [eax + 0x4c], 0xffffffff
mov eax, dword [ebp - 0x3c]
and byte [eax + 0x48], 0
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
xor al, al
jmp 0x517ba7
cmp dword [ebp - 0x14], 0xffffffff
jne 0x517b4c
lea ecx, [ebp - 0x34]
call fcn.004cde9c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004cfd54
lea ecx, [ebp - 0x34]
call fcn.0055420c
push eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
call dword [eax + 0x10]
push str.Failed_to_receive_on_the_TCP_socket
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
call dword [eax + 0x10]
and byte [ebp - 0x36], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004ce1b7
mov al, byte [ebp - 0x36]
jmp 0x517ba7
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
cmp dword [ebp - 0x14], 0
jle 0x517b8a
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x3c]
add ecx, 0x90
call fcn.0053b3ea
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax + 0xe4]
test eax, eax
je 0x517b8a
push dword [ebp + 0x1c]
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x3c]
add ecx, 8
call fcn.0053b91f
cmp dword [ebp + 0x1c], 0
je 0x517ba5
and byte [ebp - 0x35], 0
lea eax, [ebp - 0x35]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
mov ecx, dword [ebp + 0x1c]
call fcn.004f24ac
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0x18