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

Disassembly:
push 0xffffffffffffffff
push 0x579f58
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x641030]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [esp + 0x38], 0xabcd0123
jne 0x4adab0
mov byte [esp + 0x34], 1
mov dword [esp + 0x38], 1
cmp dword [esp + 0x2c], 0
je 0x4adda3
mov ebx, dword [esp + 0x3c]
mov ecx, ebx
call fcn.004725a0
or esi, 0xffffffff
cmp dword [edi + 0x294], esi
jne 0x4adaf8
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 0x4adda3
cmp byte [edi + 0xd5], 0
lea eax, [edi + 0xd5]
je 0x4adb1c
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 0x4adda3
cmp byte [edi + 0xd6], 0
je 0x4adb3c
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 0x4adda3
push eax
lea ecx, [esp + 0x18]
call fcn.00439640
mov eax, dword [esp + 0x30]
mov ebp, dword [eax]
mov dword [esp + 0x24], 0
mov dword [esp + 0x3c], ebp
mov dword [eax], 0
test ebp, ebp
jne 0x4adb76
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], esi
call fcn.00439660
mov al, 1
jmp 0x4adda5
cmp dword [esp + 0x38], 0
jne 0x4adb85
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.005361f0
test al, al
je 0x4adbb9
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 0x4add92
cmp byte [edi + 0xd6], 0
je 0x4adbd7
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 0x4add92
cmp dword [edi + 0x294], 0xffffffff
jne 0x4adbf3
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.The_socket_is_already_closed.__Cannot_recv.
mov ecx, esi
call edx
jmp 0x4add92
cmp ebp, 0x100000
jbe 0x4adc07
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 0x4adc94
je 0x4adcf9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4add2f
cmp byte [esp + 0x40], 0
je 0x4add8e
cmp byte [esp + 0x34], 0
jne 0x4add8e
push esi
mov ecx, ebx
call fcn.004725e0
test al, al
jne 0x4add92
mov edx, dword [esp + 0x38]
push esi
push ebx
push edx
mov ecx, edi
call fcn.004ac4d0
test al, al
je 0x4add62
mov byte [esp + 0x40], 0
test ebp, ebp
jge 0x4add92
mov ebp, dword [esp + 0x3c]
jmp 0x4adc10
mov eax, dword [esp + 0x30]
lea ecx, [ebp - 0x1000]
push ecx
lea ecx, [edi + 0x200]
mov dword [eax], ebp
call fcn.005363f0
cmp byte [edi + 0x342], 0
je 0x4adcc6
mov edx, dword [ebx + 4]
push esi
push edx
push ebp
lea ecx, [edi + 0xe0]
call fcn.004f49c0
cmp byte [edi + 0x339], 0
je 0x4adce1
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4adce1
mov eax, ebp
cdq
push esi
push edx
push eax
call fcn.00485750
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.00439660
mov al, 1
jmp 0x4adda5
cmp byte [esi + 0x121], 0
je 0x4add21
mov eax, dword [esp + 0x3c]
push eax
push str.maxToReceive
mov ecx, esi
call fcn.004373b0
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.004ad620
mov byte [ebx + 0x17], 1
jmp 0x4add92
mov ecx, esi
call fcn.00437570
mov ecx, dword [esp + 0x3c]
push ecx
push str.maxToReceive
mov ecx, esi
call fcn.004373b0
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 0x4add92
cmp byte [ebx + 0x15], 0
je 0x4add78
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Socket_recv_aborted_by_application
mov ecx, esi
call eax
jmp 0x4add92
cmp byte [ebx + 0x14], 0
jne 0x4add92
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Socket_recv_failed.
mov ecx, esi
call eax
jmp 0x4add92
mov byte [ebx + 0x14], 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.00439660
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