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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1a0d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
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 edi, dword [ebp + 0x14]
mov ecx, edi
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x30], eax
call fcn.0046d450
cmp byte [ebx + 0xd6], 0
je 0x4fc086
mov eax, dword [esi]
mov ecx, esi
push dword [0x68a5c4]
call dword [eax + 0x14]
xor al, al
jmp 0x4fc3c4
xor al, al
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1f], al
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
test eax, eax
je 0x4fc0af
push esi
mov ecx, eax
call fcn.004a80f0
test al, al
jne 0x4fc07f
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xabcd0123
mov eax, 1
cmovne eax, ecx
mov ecx, edi
mov dword [ebp - 0x2c], eax
call fcn.0046d450
cmp dword [ebx + 0x294], 0xffffffff
je 0x4fc3a8
cmp byte [ebx + 0xd5], 0
lea eax, [ebx + 0xd5]
jne 0x4fc39a
cmp byte [ebx + 0xd6], 0
jne 0x4fc38b
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
push eax
movlpd qword [ebp - 0x18], xmm0
call fcn.0042a060
mov eax, dword [ebp - 0x2c]
mov ecx, 0xc042c00
push esi
push dword [edi + 4]
test eax, eax
mov dword [ebp - 4], 0
push 0x1000
cmove eax, ecx
lea ecx, [ebx + 0x200]
mov dword [ebp - 0x2c], eax
call fcn.0059f1c0
test al, al
jne 0x4fc371
cmp byte [ebx + 0xd6], al
jne 0x4fc35a
cmp dword [ebx + 0x294], 0xffffffff
je 0x4fc344
mov byte [ebp - 0x1d], 1
push 0
push 1
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x294]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jg 0x4fc1d9
je 0x4fc305
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4fc2c9
cmp byte [ebp - 0x1d], 0
je 0x4fc2b5
cmp dword [ebp + 0xc], 0xabcd0123
je 0x4fc2b5
mov ecx, dword [ebp - 0x24]
push esi
call fcn.0046d5b0
test al, al
jne 0x4fc2bc
push esi
push dword [ebp - 0x24]
mov ecx, ebx
push dword [ebp - 0x2c]
call fcn.005011c0
test al, al
je 0x4fc274
mov byte [ebp - 0x1d], 0
test edi, edi
js 0x4fc155
lea ecx, [ebp - 0x18]
call fcn.0042a160
jmp 0x4fc3c1
lea eax, [edi - 0x1000]
push eax
lea ecx, [ebx + 0x200]
call fcn.0059eff0
cmp byte [ebx + 0x342], 0
je 0x4fc207
mov eax, dword [ebp - 0x24]
lea ecx, [ebx + 0xe0]
push esi
push dword [eax + 4]
push edi
call fcn.004e0b90
cmp byte [ebx + 0x339], 0
je 0x4fc225
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4fc225
push esi
mov eax, edi
cdq
push edx
push eax
call fcn.004a8450
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0042a160
mov eax, dword [ebp - 0x1c]
cmp al, 0xa
je 0x4fc244
cmp al, 0xd
je 0x4fc259
inc dword [ebp - 0x28]
jmp 0x4fc259
cmp dword [ebp - 0x28], 0
jne 0x4fc252
mov byte [ebp - 0x1e], 1
mov byte [ebp - 0x1f], 1
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x34]
push eax
call fcn.004354b0
cmp byte [ebp - 0x1e], 0
jne 0x4fc3c1
mov edi, dword [ebp - 0x24]
jmp 0x4fc096
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x15], 0
je 0x4fc296
mov eax, dword [esi]
mov ecx, esi
push str.Socket_recv_aborted_by_application
call dword [eax + 0x14]
lea ecx, [ebp - 0x18]
call fcn.0042a160
jmp 0x4fc3c1
cmp byte [eax + 0x14], 0
jne 0x4fc2bc
mov eax, dword [esi]
mov ecx, esi
push str.Socket_recv_failed.
call dword [eax + 0x14]
lea ecx, [ebp - 0x18]
call fcn.0042a160
jmp 0x4fc3c1
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x14], 1
lea ecx, [ebp - 0x18]
call fcn.0042a160
jmp 0x4fc3c1
mov ecx, esi
call fcn.00449020
push 1
push str.maxToReceive
mov ecx, esi
call fcn.00448770
mov eax, dword [esi]
mov ecx, esi
push str.Failed_to_receive_data_on_the_TCP_socket
call dword [eax + 0x14]
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
mov byte [eax + 0x16], 1
mov byte [ebx + 0x290], 0
call fcn.0042a160
jmp 0x4fc3c1
cmp byte [esi + 0x129], 0
je 0x4fc328
push 1
push str.maxToReceive
mov ecx, esi
call fcn.00448770
mov eax, dword [esi]
mov ecx, esi
push str.Connection_closed_by_peer.
call dword [eax + 0x14]
push esi
mov ecx, ebx
call fcn.004feea0
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
mov byte [eax + 0x17], 1
call fcn.0042a160
jmp 0x4fc3c1
mov eax, dword [esi]
mov ecx, esi
push str.The_socket_is_already_closed.__Cannot_recv.
call dword [eax + 0x14]
lea ecx, [ebp - 0x18]
call fcn.0042a160
jmp 0x4fc3c1
mov eax, dword [esi]
mov ecx, esi
push dword [0x68a5c4]
call dword [eax + 0x14]
lea ecx, [ebp - 0x18]
call fcn.0042a160
jmp 0x4fc3c1
mov byte [edi + 0x15], 1
mov ecx, esi
mov eax, dword [esi]
push str.Aborted_by_application_while_download_throttling__2_
call dword [eax + 0x14]
lea ecx, [ebp - 0x18]
call fcn.0042a160
jmp 0x4fc3c1
mov eax, dword [esi]
mov ecx, esi
push dword [0x68a5c4]
call dword [eax + 0x14]
jmp 0x4fc3c1
mov eax, dword [esi]
mov ecx, esi
push str.Another_thread_is_already_receiving_on_this_socket.
call dword [eax + 0x14]
jmp 0x4fc3c1
mov edx, dword [esi]
mov ecx, esi
push str.This_socket_is_not_connected
call dword [edx + 0x14]
mov byte [edi + 0x16], 1
mov word [ebx + 0x290], 0
mov al, byte [ebp - 0x1f]
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 0x10