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

Disassembly:
mov eax, 0x10654
call fcn.00413ba0
mov eax, dword [0x418a28]
xor eax, esp
mov dword [esp + 0x1064c], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
lea eax, [esp + 0x858]
push eax
mov eax, dword [ebx + 0xa4]
lea ecx, [esp + 0x45c]
push ecx
lea edx, [esp + 0x34]
push edx
xor ebp, ebp
lea edi, [ebx + 0x108]
push eax
mov edx, edi
lea ecx, [esp + 0x68]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x34], ebp
call fcn.00403fa0
add esp, 0x10
cmp eax, 0xffffffff
je 0x404d6b
cmp dword [esp + 0x2c], 4
je 0x404d73
push str.This_function_is_able_to_open_only_remote_interfaces
push 0x100
push edi
call fcn.0040722a
add esp, 0xc
or eax, 0xffffffff
jmp 0x405138
mov esi, edi
mov dword [esp + 0x14], ebp
call fcn.00406360
cmp eax, 0xffffffff
je 0x404d6b
lea ecx, [esp + 0x458]
push edi
push ecx
call fcn.00405820
add esp, 8
cmp eax, 0xffffffff
je 0x404d6b
cmp eax, ebp
je 0x404dac
mov ebp, eax
mov dword [esp + 0x24], 1
jmp 0x404e7f
xor eax, eax
cmp byte [esp + 0x858], al
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], 1
je 0x404e13
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x860]
push ecx
lea edx, [esp + 0x464]
push edx
mov eax, edi
call fcn.004065c0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x404e3d
or eax, eax
jmp 0x405138
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x460]
push str.2002
push edx
mov eax, edi
call fcn.004065c0
add esp, 0x10
cmp eax, 0xffffffff
je 0x404d6b
mov eax, dword [esp + 0x14]
push ebp
push ebp
push eax
mov ecx, edi
call fcn.004063f0
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffffff
je 0x40509f
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00401c00
push ebp
mov ecx, edi
mov dword [esp + 0x18], 0
call fcn.00405520
add esp, 4
cmp eax, 0xffffffff
je 0x40509f
lea eax, [esp + 0x58]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404e86
sub eax, edx
push eax
push 3
xor ecx, ecx
lea esi, [esp + 0xc60]
call fcn.00405680
lea eax, [esp + 0x60]
add esp, 8
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404eb0
sub eax, edx
lea esi, [eax + 8]
cmp esi, 0xfa00
jle 0x404eed
test edi, edi
je 0x40509f
push str.Not_enough_space_in_the_temporary_send_buffer.
push 0x100
push edi
call fcn.0040722a
add esp, 0xc
mov byte [edi + 0xff], 0
jmp 0x40509f
push eax
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0xc68]
push eax
call fcn.0040dcd0
add esp, 0xc
push 0x100
push edi
mov eax, esi
lea ecx, [esp + 0xc60]
mov edx, ebp
call fcn.004066b0
add esp, 8
test eax, eax
jne 0x40509f
xor esi, esi
push 0
mov ecx, 8
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x24]
push edx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x404f92
test eax, eax
je 0x404fa8
add esi, eax
cmp esi, 8
jne 0x404f26
push 0
push 1
push 0x83
lea eax, [esp + 0x28]
push eax
push ebp
mov ecx, edi
call fcn.004056b0
add esp, 0x14
cmp eax, 0x83
je 0x404fd2
cmp eax, 0xfffffffd
jl 0x404fba
test eax, eax
jl 0x40509f
cmp eax, 1
jne 0x404fba
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0x18], eax
jmp 0x40509f
mov esi, edi
mov ebx, 0x100
mov edi, str.recv__:
call fcn.00406290
jmp 0x40509f
test edi, edi
je 0x40509f
push str.The_other_host_terminated_the_connection.
jmp 0x404ed3
push str.Internal_error
push 0x100
push edi
call fcn.0040722a
add esp, 0xc
jmp 0x40509f
xor esi, esi
push 0
mov edx, 8
sub edx, esi
push edx
lea eax, [esp + esi + 0x58]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4050f3
test eax, eax
je 0x405110
add esi, eax
cmp esi, 8
jne 0x404fd4
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x40509f
mov ecx, dword [esp + 0x50]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push ecx
call edi
mov edx, dword [esp + 0x54]
push edx
mov dword [ebx + 0x20], eax
call edi
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0xe4], eax
mov dword [ebx + 0xe8], eax
mov eax, dword [esp + 0x20]
push eax
mov dword [ebx + 0x228], ebp
mov dword [ebx + 0x224], 1
mov dword [ebx + 0xd0], 0x404800
mov dword [ebx + 0xd8], 0x4053e0
mov dword [ebx + 0xec], 0x404a50
mov dword [ebx + 0xfc], 0x404860
call edi
cmp esi, eax
je 0x405136
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
call edi
mov ecx, eax
sub ecx, esi
push ebp
call fcn.004067a0
add esp, 0xc
cmp eax, 1
jne 0x405136
mov edx, dword [esp + 0x20]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push edx
call edi
mov esi, dword [esp + 0x18]
cmp esi, eax
je 0x4050cc
mov eax, dword [esp + 0x20]
push 0
push 0
push eax
call edi
mov ecx, eax
sub ecx, esi
push ebp
call fcn.004067a0
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4050da
push eax
call fcn.00401c00
cmp dword [esp + 0x24], 0
jne 0x4050ee
push ebp
xor ebx, ebx
xor esi, esi
call fcn.00406580
add esp, 4
or eax, 0xffffffff
jmp 0x405138
mov esi, edi
mov ebx, 0x100
mov edi, str.recv__:
call fcn.00406290
mov ebx, dword [esp + 0x28]
or esi, 0xffffffff
jmp 0x405002
test edi, edi
je 0x40512e
push str.The_other_host_terminated_the_connection.
push 0x100
push edi
call fcn.0040722a
add esp, 0xc
mov byte [edi + 0xff], 0
or esi, 0xffffffff
jmp 0x405002
xor eax, eax
mov ecx, dword [esp + 0x1065c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004075d7
add esp, 0x10654
ret