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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0xc], 0x7d0
mov eax, dword [ebp - 0xc]
push eax
call fcn.0057c795
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x4bcef4
push str.Socket_receive_memory_allocation_failed.
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x10]
call edx
xor al, al
jmp 0x4bd0d0
call fcn.00440b60
mov dword [ebp - 4], eax
mov eax, 1
test eax, eax
je 0x4bd0ce
call fcn.00440b60
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 4]
jae 0x4bcf21
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], edx
jmp 0x4bcf35
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x64
jbe 0x4bcf35
jmp 0x4bd0ce
lea ecx, [ebp - 0x11]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov ecx, dword [ebp - 0x38]
add ecx, 0xf0
call fcn.005120a0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x4bcf6e
push str.Aborted_by_application_while_download_throttling__3_
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
call eax
xor al, al
jmp 0x4bd0d0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x10], 0
jne 0x4bd007
push 2
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xa4]
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0xa4], 0xffffffff
mov edx, dword [ebp - 0x38]
mov byte [edx + 0xa0], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0057c38d
add esp, 4
push str.Socket_already_closed_by_peer.
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x10]
call edx
xor al, al
jmp 0x4bd0d0
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4bd072
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x2733
jne 0x4bd038
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0057c38d
add esp, 4
mov al, 1
jmp 0x4bd0d0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.004b6950
add esp, 8
push str.Failed_to_accumulate_data_on_socket.
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.0057c38d
add esp, 4
xor al, al
jmp 0x4bd0d0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x10], 0
jle 0x4bd0a7
call fcn.00440b60
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x38]
movzx edx, byte [ecx + 0x184]
test edx, edx
je 0x4bd0a7
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x38]
add ecx, 0x10
call fcn.004c1810
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x38]
add ecx, 0xf0
call fcn.00512010
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00417000
jmp 0x4bcefc
mov al, 1
mov esp, ebp
pop ebp
ret 0xc