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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432860
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x43e460]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea esi, [ebx + 0xe0]
xor edi, edi
mov ecx, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
call fcn.004199f0
lea eax, [ebp + 8]
push eax
lea edx, [ebp - 0x10]
lea ecx, [ebx + 0xcc]
push edx
mov dword [ebp - 4], edi
call fcn.0040f130
mov edi, dword [ebp - 0x10]
cmp edi, dword [ebx + 0xd0]
jne 0x40fdfb
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x40ff83
mov ecx, esi
call fcn.00419a00
jmp 0x40ff83
push 0x1c
call fcn.0041be14
add esp, 4
test eax, eax
je 0x40fe1d
mov esi, dword [edi + 0x10]
mov ecx, 7
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jmp 0x40fe24
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
push edi
push str.Have_new_dataCreated_a_new_channel_on_socket:__d_n
call fcn.0041c077
add esp, 8
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x40fe47
mov ecx, esi
call fcn.00419a00
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebx + 0xec]
cmp eax, ecx
jb 0x40fe59
mov eax, ecx
mov ecx, dword [ebx + 0xe8]
push 0
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jle 0x40fe96
push edi
push esi
push str.Received__d_bytes_from_socket__d._Sending_to_LME_n
call fcn.0041c077
mov ecx, dword [ebx + 0xe8]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
add esp, 0xc
push ecx
push esi
push eax
mov ecx, ebx
call fcn.004081a0
jmp 0x40feca
jne 0x40fea8
push edi
push str.Received_0_bytes_from_socket__d._n
call fcn.0041c077
add esp, 8
jmp 0x40feca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov dword [ebp - 0x14], eax
call fcn.00404a90
mov edx, dword [ebp - 0x14]
push eax
push edx
push edi
push str.Receive_error_on_socket__d___d_:__s_n
call fcn.0041c077
add esp, 0x14
lea edi, [ebx + 0xe0]
mov ecx, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0
call fcn.004199f0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebx + 0xcc]
mov dword [ebp - 4], 1
call fcn.0040f130
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebx + 0xd0]
jne 0x40ff26
mov edx, dword [ebp - 0x10]
push edx
call fcn.0041b28a
add esp, 4
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x40ff83
mov ecx, edi
call fcn.00419a00
jmp 0x40ff83
test esi, esi
jle 0x40ff4e
mov edx, dword [ecx + 0x10]
mov eax, esi
neg eax
add dword [edx + 0xc], eax
mov ecx, dword [ecx + 0x10]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx]
push eax
push esi
push ecx
push str.channel__d_reduces_its_window_size_by__d_and_result_is__d_n
call fcn.0041c077
add esp, 0x10
jmp 0x40ff65
mov ecx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x14], 2
mov eax, dword [eax]
push eax
mov ecx, ebx
call fcn.00408120
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x40ff77
mov ecx, edi
call fcn.00419a00
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0041b28a
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4