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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0x1c]
mov byte [eax], 0
mov ecx, dword [ebp + 0x20]
mov byte [ecx], 0
mov edx, dword [ebp + 0x24]
mov byte [edx], 0
mov eax, dword [ebp + 0x28]
mov byte [eax], 0
mov byte [ebp - 0xa], 0
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0xa4], 0xffffffff
jne 0x4c9db3
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
push str.This_socket_is_not_connected
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x24]
mov byte [ecx], 1
mov edx, dword [ebp - 0x10]
mov byte [edx + 0xa0], 0
xor al, al
jmp 0x4c9fe6
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x100]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x4c9dcc
mov dword [ebp - 4], 0x1499700
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [ebp - 0xa]
push ecx
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004c8b40
mov byte [ebp - 9], al
movzx eax, byte [ebp - 9]
test eax, eax
jne 0x4c9e13
mov ecx, dword [ebp + 0x20]
mov dl, byte [ebp - 0xa]
mov byte [ecx], dl
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
xor al, al
jmp 0x4c9fe6
movzx ecx, byte [ebp - 0xa]
test ecx, ecx
je 0x4c9e43
mov edx, dword [ebp + 0x20]
mov byte [edx], 1
push str.Aborted_by_application_while_waiting_for_data.
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
xor al, al
jmp 0x4c9fe6
lea edx, [ebp - 0xa]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xd8
call fcn.00521d30
movzx edx, byte [ebp - 0xa]
test edx, edx
je 0x4c9e8d
mov eax, dword [ebp + 0x20]
mov byte [eax], 1
push str.Aborted_by_application_while_download_throttling__2_
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
xor al, al
jmp 0x4c9fe6
push 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4c9f2b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
push 0x64d28c
mov ecx, dword [ebp + 0x14]
call fcn.00435630
push str.Connection_closed_by_connected_peer.
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx + 0x14]
call eax
push 2
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xa4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xa4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov byte [eax + 0xa0], 0
mov ecx, dword [ebp + 0x28]
mov byte [ecx], 1
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
xor al, al
jmp 0x4c9fe6
cmp dword [ebp - 8], 0xffffffff
je 0x4c9f37
cmp dword [ebp - 8], 0
jge 0x4c9f83
mov ecx, dword [ebp + 0x14]
call fcn.004357c0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
push 0x64d2c8
mov ecx, dword [ebp + 0x14]
call fcn.00435630
push str.Failed_to_receive_data_on_the_TCP_socket
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x14]
call edx
mov eax, dword [ebp + 0x24]
mov byte [eax], 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 0xa0], 0
xor al, al
jmp 0x4c9fe6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp - 8], 0
jle 0x4c9fc4
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0xd8
call fcn.00521ca0
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x16c]
test ecx, ecx
je 0x4c9fc4
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.004cdf50
cmp dword [ebp + 0x18], 0
je 0x4c9fe4
lea ecx, [ebp - 0xa]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x18]
call fcn.0044f2d0
mov ecx, dword [ebp + 0x20]
mov dl, byte [ebp - 0xa]
mov byte [ecx], dl
mov al, 1
mov esp, ebp
pop ebp
ret 0x24