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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1808
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x676664]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [ebp + 0x14], 0xabcd0123
jne 0x544e2e
mov byte [ebp + 0x10], 1
mov dword [ebp + 0x14], 1
cmp dword [ebp + 8], 0
je 0x545138
mov ebx, dword [ebp + 0x18]
mov ecx, ebx
call fcn.004aef00
or esi, 0xffffffff
cmp dword [edi + 0x294], esi
jne 0x544e6e
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.This_socket_is_not_connected
call edx
mov byte [ebx + 0x16], 1
mov word [edi + 0x290], 0
jmp 0x545138
cmp byte [edi + 0xd5], 0
lea eax, [edi + 0xd5]
je 0x544e91
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.Another_thread_is_already_receiving_on_this_socket.
call edx
jmp 0x545138
cmp byte [edi + 0xd6], 0
je 0x544eb0
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [str.Another_thread_is_closing_this_socket.]
mov eax, dword [eax + 0x14]
push edx
call eax
jmp 0x545138
push eax
lea ecx, [ebp - 0x18]
call fcn.00442240
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], ebx
mov dword [eax], 0
test ebx, ebx
jne 0x544ef3
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], esi
call fcn.00442260
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp dword [ebp + 0x14], 0
jne 0x544f00
mov dword [ebp + 0x14], 0xc042c00
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
mov eax, dword [edx + 4]
push esi
push eax
lea ecx, [edi + 0x200]
push 0x1000
call fcn.00591740
test al, al
je 0x544f39
mov ecx, dword [ebp + 0x18]
mov byte [ecx + 0x15], 1
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Aborted_by_application_while_download_throttling__2_
mov ecx, esi
call eax
jmp 0x545129
cmp byte [edi + 0xd6], 0
je 0x544f56
mov edx, dword [esi]
mov eax, dword [str.Another_thread_is_closing_this_socket.]
mov edx, dword [edx + 0x14]
push eax
mov ecx, esi
call edx
jmp 0x545129
cmp dword [edi + 0x294], 0xffffffff
jne 0x544f72
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.The_socket_is_already_closed.__Cannot_recv.
mov ecx, esi
call edx
jmp 0x545129
cmp ebx, 0x100000
jbe 0x544f84
mov dword [ebp - 0x10], 0x100000
mov ebx, dword [ebp - 0x10]
mov byte [ebp + 0x1f], 1
jmp 0x544f90
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0x294]
push 0
push ebx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jg 0x54500f
je 0x545086
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x5450be
cmp byte [ebp + 0x1f], 0
je 0x545122
cmp byte [ebp + 0x10], 0
jne 0x545122
mov ecx, dword [ebp + 0x18]
push esi
call fcn.004aef30
test al, al
jne 0x545129
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push esi
push edx
push eax
mov ecx, edi
call fcn.005437b0
test al, al
je 0x5450f3
mov byte [ebp + 0x1f], 0
test ebx, ebx
jns 0x545129
mov ebx, dword [ebp - 0x10]
jmp 0x544f90
mov ecx, dword [ebp + 0xc]
lea edx, [ebx - 0x1000]
mov dword [ecx], ebx
push edx
lea ecx, [edi + 0x200]
call fcn.00591940
cmp byte [edi + 0x342], 0
je 0x545043
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
push esi
push ecx
push ebx
lea ecx, [edi + 0xe0]
call fcn.004ef470
cmp byte [edi + 0x339], 0
je 0x545061
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x545061
mov eax, ebx
cdq
push esi
push edx
push eax
call fcn.00463d60
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00442260
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp byte [esi + 0x125], 0
je 0x5450ad
mov eax, dword [ebp - 0x10]
push eax
push str.maxToReceive
mov ecx, esi
call fcn.0044e8c0
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.00544980
mov ecx, dword [ebp + 0x18]
mov byte [ecx + 0x17], 1
jmp 0x545129
mov ecx, esi
call fcn.0044ea80
mov edx, dword [ebp - 0x10]
push edx
push str.maxToReceive
mov ecx, esi
call fcn.0044e8c0
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_receive_data_on_the_TCP_socket
mov ecx, esi
call edx
mov eax, dword [ebp + 0x18]
mov byte [eax + 0x16], 1
mov byte [edi + 0x290], 0
jmp 0x545129
mov eax, dword [ebp + 0x18]
cmp byte [eax + 0x15], 0
je 0x54510c
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Socket_recv_aborted_by_application
mov ecx, esi
call eax
jmp 0x545129
cmp byte [eax + 0x14], 0
jne 0x545129
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Socket_recv_failed.
mov ecx, esi
call eax
jmp 0x545129
mov ecx, dword [ebp + 0x18]
mov byte [ecx + 0x14], 1
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00442260
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18