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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fc548
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6baac0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov edx, 1
cmp dword [ebp + 0x14], 0xabcd0123
mov ecx, edx
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
movzx eax, byte [ebp + 0x10]
mov dword [ebp - 0x24], edx
cmovne ecx, eax
cmovne edx, dword [ebp + 0x14]
cmp dword [ebp - 0x30], 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
je 0x50b920
mov ecx, ebx
call fcn.004efd30
cmp dword [edi + 0x294], 0xffffffff
jne 0x50b927
mov eax, dword [esi]
mov ecx, esi
push str.This_socket_is_not_connected
call dword [eax + 0x14]
mov byte [ebx + 0x12], 1
mov word [edi + 0x290], 0
xor al, al
jmp 0x50bb87
cmp byte [edi + 0xd5], 0
lea eax, [edi + 0xd5]
je 0x50b949
mov eax, dword [esi]
mov ecx, esi
push str.Another_thread_is_already_receiving_on_this_socket.
call dword [eax + 0x14]
xor al, al
jmp 0x50bb87
cmp byte [edi + 0xd6], 0
je 0x50b966
mov eax, dword [esi]
mov ecx, esi
push dword [0x6b1f30]
call dword [eax + 0x14]
xor al, al
jmp 0x50bb87
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
push eax
movq qword [ebp - 0x18], xmm0
call fcn.00420670
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
mov dword [ebp - 0x20], eax
mov dword [ecx], 0
test eax, eax
je 0x50bb7b
mov eax, dword [ebp - 0x28]
mov ecx, 0xc042c00
push esi
push dword [ebx + 4]
test eax, eax
push 0x1000
cmove eax, ecx
lea ecx, [edi + 0x200]
mov dword [ebp - 0x28], eax
call fcn.0053b1d0
test al, al
je 0x50b9d3
mov byte [ebx + 0x11], 1
mov ecx, esi
mov eax, dword [esi]
push str.Aborted_by_application_while_download_throttling__2_
call dword [eax + 0x14]
xor bl, bl
jmp 0x50bb7d
cmp byte [edi + 0xd6], 0
je 0x50b9f0
mov eax, dword [esi]
mov ecx, esi
push dword [0x6b1f30]
call dword [eax + 0x14]
xor bl, bl
jmp 0x50bb7d
cmp dword [edi + 0x294], 0xffffffff
jne 0x50ba0c
mov eax, dword [esi]
mov ecx, esi
push str.The_socket_is_already_closed.__Cannot_recv.
call dword [eax + 0x14]
xor bl, bl
jmp 0x50bb7d
mov eax, dword [ebp - 0x20]
mov ecx, 0x100000
cmp eax, ecx
mov byte [ebp - 0x19], 1
cmova eax, ecx
mov dword [ebp - 0x20], eax
push 0
push eax
push dword [ebp - 0x30]
push dword [edi + 0x294]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x2c], eax
test eax, eax
jg 0x50bb2e
je 0x50baf9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x50bac4
cmp byte [ebp - 0x19], 0
je 0x50bab9
cmp byte [ebp - 0x24], 0
jne 0x50bab9
push esi
mov ecx, ebx
call fcn.004efe90
test al, al
jne 0x50babd
push esi
push ebx
push dword [ebp - 0x28]
mov ecx, edi
call fcn.0050c5b0
test al, al
je 0x50ba87
cmp dword [ebp - 0x2c], 0
mov byte [ebp - 0x19], 0
jge 0x50babd
mov eax, dword [ebp - 0x20]
jmp 0x50ba20
cmp byte [ebx + 0x11], 0
je 0x50baa0
mov eax, dword [esi]
mov ecx, esi
push str.Socket_recv_aborted_by_application
call dword [eax + 0x14]
xor bl, bl
jmp 0x50bb7d
cmp byte [ebx + 0x10], 0
jne 0x50babd
mov eax, dword [esi]
mov ecx, esi
push str.Socket_recv_failed.
call dword [eax + 0x14]
xor bl, bl
jmp 0x50bb7d
mov byte [ebx + 0x10], 1
xor bl, bl
jmp 0x50bb7d
mov ecx, esi
call fcn.00431cd0
mov eax, dword [ebp - 0x20]
mov ecx, esi
push eax
push str.maxToReceive
call fcn.00431470
mov eax, dword [esi]
mov ecx, esi
push str.Failed_to_receive_data_on_the_TCP_socket
call dword [eax + 0x14]
mov byte [ebx + 0x12], 1
xor bl, bl
mov byte [edi + 0x290], 0
jmp 0x50bb7d
cmp byte [esi + 0xad], 0
je 0x50bb1e
mov eax, dword [ebp - 0x20]
mov ecx, esi
push eax
push str.maxToReceive
call fcn.00431470
mov eax, dword [esi]
mov ecx, esi
push str.Connection_closed_by_peer.
call dword [eax + 0x14]
push esi
mov ecx, edi
call fcn.0050a780
mov byte [ebx + 0x13], 1
xor bl, bl
jmp 0x50bb7d
mov edx, dword [ebp - 0x34]
lea ecx, [edi + 0x200]
mov dword [edx], eax
add eax, 0xfffff000
push eax
call fcn.0053aff0
cmp byte [edi + 0x342], 0
je 0x50bb5f
push esi
push dword [ebx + 4]
lea ecx, [edi + 0xe0]
push dword [ebp - 0x2c]
call fcn.004e46d0
cmp byte [edi + 0x339], 0
je 0x50bb7b
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x50bb7b
mov eax, dword [ebp - 0x2c]
push esi
cdq
push edx
push eax
call fcn.00480ca0
mov bl, 1
lea ecx, [ebp - 0x18]
call fcn.00420770
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ebe04
mov esp, ebp
pop ebp
ret 0x18