Function at 0x517d76
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 + 0x1c]
and byte [eax], 0
mov eax, dword [ebp + 0x20]
and byte [eax], 0
mov eax, dword [ebp + 0x24]
and byte [eax], 0
mov eax, dword [ebp + 0x28]
and byte [eax], 0
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x4c], 0xffffffff
jne 0x517dca
mov eax, dword [ebp + 0xc]
and dword [eax], 0
push str.This_socket_is_not_connected
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
call dword [eax + 0x10]
mov eax, dword [ebp + 0x24]
mov byte [eax], 1
xor al, al
jmp 0x517fb1
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0xb8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x517de3
mov dword [ebp - 0x10], 0x1499700
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push dword [ebp + 0x20]
push dword [ebp + 0x24]
push dword [ebp + 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x3c]
call fcn.00516f13
mov byte [ebp - 0x15], al
movzx eax, byte [ebp - 0x15]
test eax, eax
jne 0x517e18
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor al, al
jmp 0x517fb1
push dword [ebp + 0x20]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x3c]
add ecx, 0x90
call fcn.0053b47a
mov eax, dword [ebp + 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x517e56
push str.Aborted_by_application_while_download_throttling__2_
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
call dword [eax + 0x10]
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor al, al
jmp 0x517fb1
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
cmp dword [ebp - 0x14], 0
jne 0x517ed5
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.numBytesRequested
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
call dword [eax + 0x2c]
push str.Connection_closed_by_server.
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
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 + 0x28]
mov byte [eax], 1
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor al, al
jmp 0x517fb1
cmp dword [ebp - 0x14], 0xffffffff
jne 0x517f56
lea ecx, [ebp - 0x34]
call fcn.004cde9c
and dword [ebp - 4], 0
push str.SOCKET_ERROR:
lea ecx, [ebp - 0x34]
call fcn.004cd951
lea ecx, [ebp - 0x34]
call fcn.004cfd54
lea ecx, [ebp - 0x34]
call fcn.0055420c
push eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
call dword [eax + 0x10]
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.numBytesRequested
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
call dword [eax + 0x2c]
push str.Failed_to_receive_data_on_the_TCP_socket
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
call dword [eax + 0x10]
mov eax, dword [ebp + 0x24]
mov byte [eax], 1
mov eax, dword [ebp + 0xc]
and dword [eax], 0
and byte [ebp - 0x36], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004ce1b7
mov al, byte [ebp - 0x36]
jmp 0x517fb1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
cmp dword [ebp - 0x14], 0
jle 0x517f94
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 0x517f94
push dword [ebp + 0x18]
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x3c]
add ecx, 8
call fcn.0053b91f
cmp dword [ebp + 0x18], 0
je 0x517faf
and byte [ebp - 0x35], 0
lea eax, [ebp - 0x35]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
mov ecx, dword [ebp + 0x18]
call fcn.004f24ac
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0x24