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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1838
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
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
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov ecx, esi
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xf], 0
mov dword [ebp - 0x1c], eax
call fcn.004aef00
cmp byte [edi + 0xd6], 0
je 0x545571
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [str.Another_thread_is_closing_this_socket.]
mov edx, dword [edx + 0x14]
push eax
call edx
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 0x10
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0
jmp 0x545580
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x545591
push ebx
call fcn.00463a30
test al, al
jne 0x54555b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov byte [ebp + 0x10], 0
cmp eax, 0xabcd0123
jne 0x5455ad
mov byte [ebp + 0x10], 1
mov dword [ebp - 0x18], 1
mov ecx, esi
call fcn.004aef00
cmp dword [edi + 0x294], 0xffffffff
je 0x545758
cmp byte [edi + 0xd5], 0
lea eax, [edi + 0xd5]
jne 0x545778
cmp byte [edi + 0xd6], 0
jne 0x54578b
push eax
lea ecx, [ebp - 0x28]
call fcn.00442240
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
jne 0x5455fe
mov dword [ebp - 0x18], 0xc042c00
mov eax, dword [esi + 4]
push ebx
push eax
lea ecx, [edi + 0x200]
push 0x1000
call fcn.00591740
test al, al
jne 0x5457a0
cmp byte [edi + 0xd6], al
jne 0x5457b7
or esi, 0xffffffff
cmp dword [edi + 0x294], esi
je 0x5457cc
mov byte [ebp - 0xd], 1
lea ebx, [ebx]
mov edx, dword [edi + 0x294]
push 0
push 1
lea ecx, [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jg 0x5456bc
je 0x5457e2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x545818
cmp byte [ebp - 0xd], 0
je 0x54587a
cmp byte [ebp + 0x10], 0
jne 0x54587a
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.004aef30
test al, al
jne 0x545881
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
push ebx
push eax
push ecx
mov ecx, edi
call fcn.005437b0
test al, al
je 0x54584b
mov byte [ebp - 0xd], 0
test esi, esi
js 0x545640
jmp 0x545881
lea edx, [esi - 0x1000]
push edx
lea ecx, [edi + 0x200]
call fcn.00591940
cmp byte [edi + 0x342], 0
je 0x5456eb
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ebx
push ecx
push esi
lea ecx, [edi + 0xe0]
call fcn.004ef470
cmp byte [edi + 0x339], 0
je 0x545709
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x545709
mov eax, esi
cdq
push ebx
push edx
push eax
call fcn.00463d60
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00442260
mov eax, dword [ebp - 0x20]
cmp al, 0xa
je 0x545728
cmp al, 0xd
je 0x545736
inc dword [ebp - 0x14]
jmp 0x54573d
cmp dword [ebp - 0x14], 0
jne 0x545736
mov byte [ebp - 0xe], 1
mov byte [ebp - 0xf], 1
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 8]
push eax
call fcn.00411a20
cmp byte [ebp - 0xe], 0
jne 0x545890
mov esi, dword [ebp + 0x14]
jmp 0x545580
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push str.This_socket_is_not_connected
mov ecx, ebx
call edx
mov byte [esi + 0x16], 1
mov word [edi + 0x290], 0
jmp 0x545890
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push str.Another_thread_is_already_receiving_on_this_socket.
mov ecx, ebx
call edx
jmp 0x545890
mov ecx, dword [str.Another_thread_is_closing_this_socket.]
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push ecx
mov ecx, ebx
call edx
jmp 0x545890
mov byte [esi + 0x15], 1
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push str.Aborted_by_application_while_download_throttling__2_
mov ecx, ebx
call edx
jmp 0x545881
mov ecx, dword [str.Another_thread_is_closing_this_socket.]
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push ecx
mov ecx, ebx
call edx
jmp 0x545881
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push str.The_socket_is_already_closed.__Cannot_recv.
mov ecx, ebx
call edx
mov dword [ebp - 4], esi
jmp 0x545888
cmp byte [ebx + 0x125], 0
je 0x545807
push 1
push str.maxToReceive
mov ecx, ebx
call fcn.0044e8c0
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push str.Connection_closed_by_peer.
mov ecx, ebx
call edx
push ebx
mov ecx, edi
call fcn.00544980
mov eax, dword [ebp + 0x14]
mov byte [eax + 0x17], 1
jmp 0x545881
mov ecx, ebx
call fcn.0044ea80
push 1
push str.maxToReceive
mov ecx, ebx
call fcn.0044e8c0
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
push str.Failed_to_receive_data_on_the_TCP_socket
mov ecx, ebx
call eax
mov ecx, dword [ebp + 0x14]
mov byte [ecx + 0x16], 1
mov byte [edi + 0x290], 0
jmp 0x545881
mov eax, dword [ebp + 0x14]
cmp byte [eax + 0x15], 0
je 0x545864
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
push str.Socket_recv_aborted_by_application
mov ecx, ebx
call eax
jmp 0x545881
cmp byte [eax + 0x14], 0
jne 0x545881
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
push str.Socket_recv_failed.
mov ecx, ebx
call eax
jmp 0x545881
mov ecx, dword [ebp + 0x14]
mov byte [ecx + 0x14], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00442260
mov al, byte [ebp - 0xf]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10