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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x651958
push eax
mov eax, dword [esp + 0x1c]
mov dword fs:[0], esp
sub esp, 8
cmp eax, 0xabcd0123
push ebx
push ebp
push esi
push edi
mov esi, ecx
jne 0x590b26
mov byte [esp + 0x30], 1
mov dword [esp + 0x34], 1
mov eax, dword [esp + 0x28]
test eax, eax
je 0x590e14
mov ebx, dword [esp + 0x38]
mov ecx, ebx
call fcn.00514cb0
mov eax, dword [esi + 0x294]
or edi, 0xffffffff
cmp eax, edi
jne 0x590b6f
mov ecx, dword [esp + 0x3c]
push str.This_socket_is_not_connected
mov eax, dword [ecx]
call dword [eax + 0x14]
mov byte [ebx + 0x16], 1
mov byte [esi + 0x290], 0
mov byte [esi + 0x291], 0
jmp 0x590e14
mov cl, byte [esi + 0xd5]
lea eax, [esi + 0xd5]
test cl, cl
je 0x590b92
mov ecx, dword [esp + 0x3c]
push str.Another_thread_is_already_receiving_on_this_socket.
mov edx, dword [ecx]
call dword [edx + 0x14]
jmp 0x590e14
mov cl, byte [esi + 0xd6]
test cl, cl
je 0x590bb1
mov ecx, dword [esp + 0x3c]
mov edx, dword [str.Another_thread_is_closing_this_socket.]
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x590e14
push eax
lea ecx, [esp + 0x14]
call fcn.004f5c70
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], 0
mov ebp, dword [eax]
mov dword [eax], 0
test ebp, ebp
mov dword [esp + 0x38], ebp
jne 0x590beb
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], edi
call fcn.004f5c90
mov al, 1
jmp 0x590e16
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x590bfb
mov dword [esp + 0x34], 0xc042c00
mov edi, dword [esp + 0x3c]
mov eax, dword [ebx + 4]
push edi
push eax
lea ecx, [esi + 0x200]
push 0x1000
call fcn.00628150
test al, al
je 0x590c2d
mov byte [ebx + 0x15], 1
mov edx, dword [edi]
push str.Aborted_by_application_while_download_throttling__2_
mov ecx, edi
call dword [edx + 0x14]
jmp 0x590e03
mov al, byte [esi + 0xd6]
test al, al
je 0x590c4a
mov ecx, dword [str.Another_thread_is_closing_this_socket.]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x14]
jmp 0x590e03
cmp dword [esi + 0x294], 0xffffffff
jne 0x590c64
mov edx, dword [edi]
push str.The_socket_is_already_closed.__Cannot_recv.
mov ecx, edi
call dword [edx + 0x14]
jmp 0x590e03
cmp ebp, 0x100000
jbe 0x590c78
mov dword [esp + 0x38], 0x100000
mov ebp, dword [esp + 0x38]
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x294]
push 0
push ebp
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
test ebp, ebp
jg 0x590d08
je 0x590d6f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, esi
call fcn.00590a00
test al, al
je 0x590da4
mov al, byte [esp + 0x3c]
test al, al
je 0x590dff
mov al, byte [esp + 0x30]
test al, al
jne 0x590dff
push edi
mov ecx, ebx
call fcn.00514cf0
test al, al
jne 0x590e03
mov edx, dword [esp + 0x34]
push edi
push ebx
push edx
mov ecx, esi
call fcn.0058fc50
test al, al
je 0x590dd5
test ebp, ebp
mov byte [esp + 0x3c], 0
jge 0x590e03
mov ebp, dword [esp + 0x38]
jmp 0x590c7d
mov eax, dword [esp + 0x2c]
lea ecx, [ebp - 0x1000]
push ecx
lea ecx, [esi + 0x200]
mov dword [eax], ebp
call fcn.00628310
mov al, byte [esi + 0x342]
test al, al
je 0x590d3b
mov edx, dword [ebx + 4]
push edi
push edx
push ebp
lea ecx, [esi + 0xe0]
call fcn.0061adb0
mov al, byte [esi + 0x339]
test al, al
je 0x590d57
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x590d57
mov eax, ebp
push edi
cdq
push edx
push eax
call fcn.00536270
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.004f5c90
mov al, 1
jmp 0x590e16
mov al, byte [edi + 0x121]
test al, al
je 0x590d96
mov eax, dword [esp + 0x38]
mov ecx, edi
push eax
push str.maxToReceive
call fcn.004effe0
mov edx, dword [edi]
push str.Connection_closed_by_peer.
mov ecx, edi
call dword [edx + 0x14]
push edi
mov ecx, esi
call fcn.0058f5b0
mov byte [ebx + 0x17], 1
jmp 0x590e03
mov ecx, edi
call fcn.004f01e0
mov eax, dword [esp + 0x38]
mov ecx, edi
push eax
push str.maxToReceive
call fcn.004effe0
mov edx, dword [edi]
push str.Failed_to_receive_data_on_the_TCP_socket
mov ecx, edi
call dword [edx + 0x14]
mov byte [ebx + 0x16], 1
mov byte [esi + 0x290], 0
jmp 0x590e03
mov al, byte [ebx + 0x15]
test al, al
je 0x590dea
mov eax, dword [edi]
push str.Socket_recv_aborted_by_application
mov ecx, edi
call dword [eax + 0x14]
jmp 0x590e03
mov al, byte [ebx + 0x14]
test al, al
jne 0x590e03
mov edx, dword [edi]
push str.Socket_recv_failed.
mov ecx, edi
call dword [edx + 0x14]
jmp 0x590e03
mov byte [ebx + 0x14], 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.004f5c90
xor al, al
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x18