Function at 0x401460
Capabilities:
Create thread
Initialize winsock library
Resolve dns

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x200
call sym.___main
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1dc], 0x10
call sym._DummyFunc
lea eax, [ebp - 0x1a4]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sym._WSAStartup_8
sub esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4014e0
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], str.WSAStartup_failed_with_error:__d_n
call sym._printf
mov eax, 1
jmp 0x4017d1
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0
lea eax, [ebp - 0x1c8]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x1c4], 2
mov dword [ebp - 0x1c0], 1
mov dword [ebp - 0x1bc], 6
mov dword [ebp - 0x1c8], 1
mov dword [esp + 8], 6
mov dword [esp + 4], str.1337
lea eax, [ebp - 0x1e2]
mov dword [esp], eax
call sym._strncpy
lea eax, [ebp - 0x1a8]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1c8]
mov dword [esp + 8], eax
lea eax, [ebp - 0x1e2]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._getaddrinfo_16
sub esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40159c
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], str.Getaddrinfo_failed_with_error:__d_n
call sym._printf
call sym._WSACleanup_0
mov eax, 1
jmp 0x4017d1
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x1a8]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x1a8]
mov eax, dword [eax + 4]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._socket_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401608
call sym._WSAGetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Socket_failed_with_error:__ld_n
call sym._printf
mov eax, dword [ebp - 0x1a8]
mov dword [esp], eax
call sym._freeaddrinfo_4
sub esp, 4
call sym._WSACleanup_0
mov eax, 1
jmp 0x4017d1
mov eax, dword [ebp - 0x1a8]
mov eax, dword [eax + 0x10]
mov edx, eax
mov eax, dword [ebp - 0x1a8]
mov eax, dword [eax + 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._bind_12
sub esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40166d
call sym._WSAGetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Bind_failed_with_error:__d_n
call sym._printf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._closesocket_4
sub esp, 4
call sym._WSACleanup_0
mov eax, 1
jmp 0x4017d1
mov eax, dword [ebp - 0x1a8]
mov dword [esp], eax
call sym._freeaddrinfo_4
sub esp, 4
mov dword [esp + 4], 0x7fffffff
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._listen_8
sub esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4017af
call sym._WSAGetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Listen_failed_with_error:__d_n
call sym._printf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._closesocket_4
sub esp, 4
call sym._WSACleanup_0
mov eax, 1
jmp 0x4017d1
mov dword [esp], str.Waiting_for_client_connections...
call sym._puts
lea eax, [ebp - 0x1dc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x1d8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._accept_12
sub esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40173c
call sym._WSAGetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Accept_failed_with_error:__d_n
call sym._printf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._closesocket_4
sub esp, 4
call sym._WSACleanup_0
mov eax, 1
jmp 0x4017d1
movzx eax, word [ebp - 0x1d6]
movzx eax, ax
mov dword [esp], eax
call sym._htons_4
sub esp, 4
movzx ebx, ax
mov eax, dword [ebp - 0x1d4]
mov dword [esp], eax
call sym._inet_ntoa_4
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], str.Received_a_client_connection_from__s:_u_n
call sym._printf
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], sym._ConnectionHandler_4
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
cmp dword [ebp - 0xc], 0
jne 0x4016d3
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._closesocket_4
sub esp, 4
call sym._WSACleanup_0
mov eax, 0
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret