Function at 0x416e60
Capabilities:
Create tcp socket
Create thread
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfdc1
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x5049c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1a4], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1b0], edi
mov dword [ebp - 0x1a8], eax
push 0x1c
mov dword [ebp - 4], 0
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.004ab3b0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
lea eax, [edi + 0x34]
push 2
push eax
call fcn.004aae6b
add esp, 0xc
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 3
mov dword [edi + 0x20], 1
mov dword [ebp - 0x1ac], 1
mov dword [edi + 0x1c], 0x10
mov dword [edi + 0x24], eax
test ecx, ecx
je 0x416f1c
lock inc dword [ecx + 4]
mov ecx, dword [ebp + 0x14]
mov esi, dword [edi + 0x68]
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x64], eax
mov dword [edi + 0x68], ecx
test esi, esi
je 0x416f4d
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x416f4d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x416f4d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
mov edx, str.WSAStartup___succeed._n
mov ecx, str.WSAStartup___error_
cmove ecx, edx
push ecx
call fcn.004178f0
add esp, 4
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [edi + 8], eax
test eax, eax
js 0x4170e1
mov ebx, dword [sym.imp.WSOCK32.dll_setsockopt]
lea ecx, [ebp - 0x1ac]
push 4
push ecx
push 4
push 0xffff
push eax
call ebx
test eax, eax
jne 0x4170f5
push dword [ebp - 0x1a8]
mov eax, 2
mov dword [edi + 0x10], 0
lea esi, [edi + 0xc]
mov word [esi], ax
call dword [sym.imp.WSOCK32.dll_htons]
push 0x10
push esi
push dword [edi + 8]
mov word [edi + 0xe], ax
call dword [sym.imp.WSOCK32.dll_bind]
test eax, eax
js 0x417109
push 3
push dword [edi + 8]
call dword [sym.imp.WSOCK32.dll_listen]
test eax, eax
js 0x41711d
push 4
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x1a4], 1
push eax
push 1
push 6
push dword [edi + 8]
call ebx
push str.Server_started_
push 0x507e68
call fcn.004044e0
push eax
call fcn.00405ac0
add esp, 0xc
push dword [ebp - 0x1a8]
push str._Port:
push 0x507e68
call fcn.004044e0
add esp, 8
mov ecx, eax
call fcn.00408280
push eax
call fcn.00405ac0
push 8
mov byte [edi + 0x30], 1
call fcn.004ab3b0
mov esi, eax
add esp, 8
mov dword [ebp - 0x1a8], esi
mov byte [ebp - 4], 4
test esi, esi
je 0x4170b4
push 8
call fcn.004ab3b0
add esp, 4
test eax, eax
je 0x417088
mov dword [eax], edi
mov dword [eax + 4], 0x4172e0
jmp 0x41708a
xor eax, eax
mov dword [ebp - 0x1b4], eax
lea ebx, [esi + 4]
mov byte [ebp - 4], 5
push ebx
push 0
push eax
push 0x405030
push 0
push 0
call fcn.004b09cc
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x417131
jmp 0x4170b6
xor esi, esi
lea ecx, [ebp + 0x10]
mov dword [edi + 0x28], esi
call fcn.00401850
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ab3ee
mov esp, ebp
pop ebp
ret 0x10
push str.socket_failed
call fcn.004b0d39
add esp, 4
push 1
call fcn.004b664c
push str.setsockopt
call fcn.004b0d39
add esp, 4
push 1
call fcn.004b664c
push str.bind_failed
call fcn.004b0d39
add esp, 4
push 1
call fcn.004b664c
push str.listen
call fcn.004b0d39
add esp, 4
push 1
call fcn.004b664c
push 6
mov dword [ebx], 0
call fcn.004aa2aa
int3