Function at 0x4013ee
Capabilities:
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
and esp, 0xfffffff0
mov eax, 0
add eax, 0xf
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1ec]
call fcn.0040d6e4
call sym.___main
lea eax, [ebp - 0x198]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sym._WSAStartup_8
sub esp, 8
test eax, eax
jne 0x401611
lea eax, [ebp - 0x1b8]
mov dword [esp + 0x190], eax
mov dword [ebp - 0x1dc], 0
lea edx, [ebp - 0x198]
mov dword [ebp - 0x1e0], edx
jmp 0x401486
mov ecx, dword [ebp - 0x1e0]
mov edx, dword [ebp - 0x1dc]
movzx eax, byte [ecx + edx]
mov ecx, dword [ebp - 0x1dc]
mov byte [esp + ecx], al
inc dword [ebp - 0x1dc]
cmp dword [ebp - 0x1dc], 0x190
jb 0x401467
call sym.printip_WSAData__sockaddr_in_
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sym._socket_12
sub esp, 0xc
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0xffffffff
je 0x4015d7
lea eax, [ebp - 0x1b8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x19c]
mov dword [esp], eax
call sym.myBind_unsigned_int__sockaddr_in_
mov dword [ebp - 0x1d4], eax
cmp dword [ebp - 0x1d4], 0xffffffff
je 0x4015c6
mov dword [ebp - 0x1d0], 0x10
mov dword [esp + 4], str.Now_accepting........
mov dword [esp], 0x4463c0
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp + 4], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov dword [esp], eax
call method.std::ostream.operator___std::ostream____std::ostream__
lea eax, [ebp - 0x1d0]
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x19c]
mov dword [esp], eax
call sym._accept_12
sub esp, 0xc
mov dword [ebp - 0x1a0], eax
mov dword [esp + 4], str.accept_end...........
mov dword [esp], 0x4463c0
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp + 4], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov dword [esp], eax
call method.std::ostream.operator___std::ostream____std::ostream__
cmp dword [ebp - 0x1a0], 0xffffffff
je 0x40159d
lea eax, [ebp - 0x1c8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1a0]
mov dword [esp], eax
call sym.ReceiveAndSend_unsigned_int__sockaddr_in_
mov dword [ebp - 0x1d4], eax
jmp 0x4014fe
mov dword [esp + 4], str.Accept___failen......
mov dword [esp], 0x4463c0
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp + 4], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov dword [esp], eax
call method.std::ostream.operator___std::ostream____std::ostream__
jmp 0x4014fe
mov eax, dword [ebp - 0x19c]
mov dword [esp], eax
call sym._closesocket_4
sub esp, 4
call sym._WSACleanup_0
mov dword [esp + 4], 0x443042
mov dword [esp], 0x4463c0
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp + 4], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov dword [esp], eax
call method.std::ostream.operator___std::ostream____std::ostream__
call sym._getch
mov dword [ebp - 0x1d8], 0
jmp 0x401668
mov dword [esp + 4], str.Error_Socket
mov dword [esp], 0x4463c0
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp + 4], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov dword [esp], eax
call method.std::ostream.operator___std::ostream____std::ostream__
mov dword [esp + 4], 0x443042
mov dword [esp], 0x4463c0
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp + 4], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov dword [esp], eax
call method.std::ostream.operator___std::ostream____std::ostream__
call sym._getch
mov dword [ebp - 0x1d8], 0
mov eax, dword [ebp - 0x1d8]
leave
ret