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

Disassembly:
push 0xffffffffffffffff
push 0x6922f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [esp + 0x38], 0xabcd0123
jne 0x575690
mov byte [esp + 0x34], 1
mov dword [esp + 0x38], 1
cmp dword [esp + 0x2c], 0
je 0x575983
mov ebx, dword [esp + 0x3c]
mov ecx, ebx
call fcn.00512090
or esi, 0xffffffff
cmp dword [edi + 0x294], esi
jne 0x5756d8
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.This_socket_is_not_connected
call edx
mov byte [ebx + 0x16], 1
mov byte [edi + 0x290], 0
mov byte [edi + 0x291], 0
jmp 0x575983
cmp byte [edi + 0xd5], 0
lea eax, [edi + 0xd5]
je 0x5756fc
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.Another_thread_is_already_receiving_on_this_socket.
call edx
jmp 0x575983
cmp byte [edi + 0xd6], 0
je 0x57571c
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
mov edx, dword [str.Another_thread_is_closing_this_socket.]
mov eax, dword [eax + 0x14]
push edx
call eax
jmp 0x575983
push eax
lea ecx, [esp + 0x18]
call fcn.004afd70
mov eax, dword [esp + 0x30]
mov ebp, dword [eax]
test ebp, ebp
mov dword [esp + 0x24], 0
mov dword [esp + 0x3c], ebp
mov dword [eax], 0
jne 0x575756
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], esi
call fcn.004afd90
mov al, 1
jmp 0x575985
cmp dword [esp + 0x38], 0
jne 0x575765
mov dword [esp + 0x38], 0xc042c00
mov esi, dword [esp + 0x40]
mov edx, dword [ebx + 4]
push esi
push edx
lea ecx, [edi + 0x200]
push 0x1000
call fcn.005d16c0
test al, al
je 0x575799
mov byte [ebx + 0x15], 1
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Aborted_by_application_while_download_throttling__2_
mov ecx, esi
call edx
jmp 0x575972
cmp byte [edi + 0xd6], 0
je 0x5757b7
mov ecx, dword [str.Another_thread_is_closing_this_socket.]
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push ecx
mov ecx, esi
call edx
jmp 0x575972
cmp dword [edi + 0x294], 0xffffffff
jne 0x5757d3
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.The_socket_is_already_closed.__Cannot_recv.
mov ecx, esi
call edx
jmp 0x575972
cmp ebp, 0x100000
jbe 0x5757e7
mov dword [esp + 0x3c], 0x100000
mov ebp, dword [esp + 0x3c]
mov byte [esp + 0x40], 1
lea esp, [esp]
mov eax, dword [esp + 0x2c]
mov ecx, dword [edi + 0x294]
push 0
push ebp
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
test ebp, ebp
jg 0x575874
je 0x5758d9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x57590f
cmp byte [esp + 0x40], 0
je 0x57596e
cmp byte [esp + 0x34], 0
jne 0x57596e
push esi
mov ecx, ebx
call fcn.005120d0
test al, al
jne 0x575972
mov edx, dword [esp + 0x38]
push esi
push ebx
push edx
mov ecx, edi
call fcn.005740b0
test al, al
je 0x575942
test ebp, ebp
mov byte [esp + 0x40], 0
jge 0x575972
mov ebp, dword [esp + 0x3c]
jmp 0x5757f0
mov eax, dword [esp + 0x30]
lea ecx, [ebp - 0x1000]
push ecx
lea ecx, [edi + 0x200]
mov dword [eax], ebp
call fcn.005d18d0
cmp byte [edi + 0x342], 0
je 0x5758a6
mov edx, dword [ebx + 4]
push esi
push edx
push ebp
lea ecx, [edi + 0xe0]
call fcn.005a62c0
cmp byte [edi + 0x339], 0
je 0x5758c1
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5758c1
mov eax, ebp
cdq
push esi
push edx
push eax
call fcn.004d1140
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.004afd90
mov al, 1
jmp 0x575985
cmp byte [esi + 0x121], 0
je 0x575901
mov eax, dword [esp + 0x3c]
push eax
push str.maxToReceive
mov ecx, esi
call fcn.004b14c0
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Connection_closed_by_peer.
mov ecx, esi
call eax
push esi
mov ecx, edi
call fcn.00575200
mov byte [ebx + 0x17], 1
jmp 0x575972
mov ecx, esi
call fcn.004b1680
mov ecx, dword [esp + 0x3c]
push ecx
push str.maxToReceive
mov ecx, esi
call fcn.004b14c0
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_receive_data_on_the_TCP_socket
mov ecx, esi
call eax
mov byte [ebx + 0x16], 1
mov byte [edi + 0x290], 0
jmp 0x575972
cmp byte [ebx + 0x15], 0
je 0x575958
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Socket_recv_aborted_by_application
mov ecx, esi
call eax
jmp 0x575972
cmp byte [ebx + 0x14], 0
jne 0x575972
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Socket_recv_failed.
mov ecx, esi
call eax
jmp 0x575972
mov byte [ebx + 0x14], 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.004afd90
xor al, al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x18