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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1d8d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x68cc00]
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 ebx, ecx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x20], esi
test edx, edx
jne 0x4ffbdd
xor al, al
jmp 0x4fff2f
mov eax, dword [ecx]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4ffbed
mov al, 1
jmp 0x4fff2f
mov al, byte [ebp + 0x10]
mov dword [ecx], 0
mov dword [ebp - 0x34], 1
nop dword [eax]
cmp dword [ebp - 0x24], 0
mov cl, 1
je 0x4fff2d
mov ecx, dword [ebp + 0x14]
cmp ecx, 0xabcd0123
movzx eax, al
cmove eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, 1
cmovne eax, ecx
mov dword [ebp - 0x28], eax
test edx, edx
je 0x4fff2b
mov ecx, esi
call fcn.0046d450
cmp dword [ebx + 0x294], 0xffffffff
je 0x4fff12
cmp byte [ebx + 0xd5], 0
lea eax, [ebx + 0xd5]
jne 0x4fff04
cmp byte [ebx + 0xd6], 0
jne 0x4ffef5
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
push eax
movlpd qword [ebp - 0x18], xmm0
call fcn.0042a060
mov eax, dword [ebp - 0x28]
mov ecx, 0xc042c00
push edi
push dword [esi + 4]
test eax, eax
mov dword [ebp - 4], 0
push 0x1000
cmove eax, ecx
lea ecx, [ebx + 0x200]
mov dword [ebp - 0x28], eax
call fcn.0059f1c0
test al, al
jne 0x4ffedb
cmp byte [ebx + 0xd6], al
jne 0x4ffec4
cmp dword [ebx + 0x294], 0xffffffff
je 0x4ffeae
mov eax, dword [ebp - 0x24]
mov ecx, 0x100000
cmp eax, 0x100000
mov byte [ebp - 0x19], 1
cmova eax, ecx
mov dword [ebp - 0x30], eax
nop word [eax + eax]
push 0
push eax
push dword [ebp - 0x2c]
push dword [ebx + 0x294]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jg 0x4ffd5b
je 0x4ffe71
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4ffe34
cmp byte [ebp - 0x19], 0
je 0x4ffe20
cmp byte [ebp - 0x38], 0
jne 0x4ffe20
mov ecx, dword [ebp - 0x20]
push edi
call fcn.0046d5b0
test al, al
jne 0x4ffe13
push edi
push dword [ebp - 0x20]
mov ecx, ebx
push dword [ebp - 0x28]
call fcn.005011c0
test al, al
je 0x4ffddf
mov byte [ebp - 0x19], 0
test esi, esi
jns 0x4ffe27
mov eax, dword [ebp - 0x30]
jmp 0x4ffce0
lea eax, [esi - 0x1000]
push eax
lea ecx, [ebx + 0x200]
call fcn.0059eff0
cmp byte [ebx + 0x342], 0
je 0x4ffd89
mov eax, dword [ebp - 0x20]
lea ecx, [ebx + 0xe0]
push edi
push dword [eax + 4]
push esi
call fcn.004e0b90
cmp byte [ebx + 0x339], 0
je 0x4ffda7
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4ffda7
push edi
mov eax, esi
cdq
push edx
push eax
call fcn.004a8450
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0042a160
mov eax, dword [ebp - 0x20]
mov cl, 1
cmp byte [eax + 0x15], 0
jne 0x4fff2d
mov ecx, dword [ebp - 0x3c]
xor al, al
mov edx, dword [ebp - 0x2c]
sub dword [ebp - 0x24], esi
add dword [ecx], esi
add edx, esi
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
jmp 0x4ffc00
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x15], 0
je 0x4ffe01
mov eax, dword [edi]
mov ecx, edi
push str.Socket_recv_aborted_by_application
call dword [eax + 0x14]
lea ecx, [ebp - 0x18]
call fcn.0042a160
jmp 0x4fff2b
cmp byte [eax + 0x14], 0
jne 0x4ffe13
mov eax, dword [edi]
mov ecx, edi
push str.Socket_recv_failed.
call dword [eax + 0x14]
lea ecx, [ebp - 0x18]
call fcn.0042a160
jmp 0x4fff2b
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x14], 1
lea ecx, [ebp - 0x18]
call fcn.0042a160
jmp 0x4fff2b
mov ecx, edi
call fcn.00449020
push dword [ebp - 0x30]
mov ecx, edi
push str.maxToReceive
call fcn.00448770
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_receive_data_on_the_TCP_socket
call dword [eax + 0x14]
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
mov byte [eax + 0x16], 1
mov byte [ebx + 0x290], 0
call fcn.0042a160
jmp 0x4fff2b
cmp byte [edi + 0x129], 0
je 0x4ffe95
push dword [ebp - 0x30]
mov ecx, edi
push str.maxToReceive
call fcn.00448770
mov eax, dword [edi]
mov ecx, edi
push str.Connection_closed_by_peer.
call dword [eax + 0x14]
push edi
mov ecx, ebx
call fcn.004feea0
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
mov byte [eax + 0x17], 1
call fcn.0042a160
jmp 0x4fff2b
mov eax, dword [edi]
mov ecx, edi
push str.The_socket_is_already_closed.__Cannot_recv.
call dword [eax + 0x14]
lea ecx, [ebp - 0x18]
call fcn.0042a160
jmp 0x4fff2b
mov eax, dword [edi]
mov ecx, edi
push dword [0x68a5c4]
call dword [eax + 0x14]
lea ecx, [ebp - 0x18]
call fcn.0042a160
jmp 0x4fff2b
mov byte [esi + 0x15], 1
mov ecx, edi
mov eax, dword [edi]
push str.Aborted_by_application_while_download_throttling__2_
call dword [eax + 0x14]
lea ecx, [ebp - 0x18]
call fcn.0042a160
jmp 0x4fff2b
mov eax, dword [edi]
mov ecx, edi
push dword [0x68a5c4]
call dword [eax + 0x14]
jmp 0x4fff2b
mov eax, dword [edi]
mov ecx, edi
push str.Another_thread_is_already_receiving_on_this_socket.
call dword [eax + 0x14]
jmp 0x4fff2b
mov eax, dword [edi]
mov ecx, edi
push str.This_socket_is_not_connected
call dword [eax + 0x14]
mov byte [esi + 0x16], 1
mov word [ebx + 0x290], 0
xor cl, cl
mov al, cl
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.005af618
mov esp, ebp
pop ebp
ret 0x18