Function at 0x401745
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Start tcp server

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0xc4
call fcn.004023e0
mov dword [0x408084], 0xde11
mov dword [esp + 4], 0x4080a0
mov dword [esp], 0x101
call sub.WS2_32.dll_WSAStartup
sub esp, 8
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.dll_socket
sub esp, 0xc
mov dword [0x4186e0], eax
mov word [0x4182c0], 2
mov dword [0x4182c4], 0
mov eax, dword [0x408084]
movzx eax, ax
mov dword [esp], eax
call sub.WS2_32.dll_htons
sub esp, 4
mov word [0x4182c2], ax
mov eax, dword [0x4186e0]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x4182c0
mov dword [esp], eax
call sub.WS2_32.dll_bind
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x401803
call sub.WS2_32.dll_WSACleanup
mov eax, 1
jmp 0x401a08
mov eax, dword [0x4186e0]
mov dword [esp + 4], 5
mov dword [esp], eax
call sub.WS2_32.dll_listen
sub esp, 8
cmp eax, 0xffffffff
jne 0x40182f
call sub.WS2_32.dll_WSACleanup
mov eax, 1
jmp 0x401a08
mov dword [0x4186f8], 0xffffffff
jmp 0x401879
mov eax, dword [0x4186e0]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.WS2_32.dll_accept
sub esp, 0xc
mov dword [0x4186f8], eax
mov eax, dword [0x4186f8]
cmp eax, 0xffffffff
jne 0x401879
call sub.WS2_32.dll_WSACleanup
mov eax, 1
jmp 0x401a08
mov eax, dword [0x4186f8]
cmp eax, 0xffffffff
je 0x40183b
mov eax, dword [0x4186f8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x2b
mov dword [esp + 4], str.Welcome__enter_password_for_d3vnu11_door:
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
mov eax, dword [0x4186f8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x4182e0
mov dword [esp], eax
call sub.WS2_32.dll_recv
sub esp, 0x10
mov dword [esp], 0x4182e0
call sub.msvcrt.dll_strlen
sub eax, 1
mov byte [eax + 0x4182e0], 0
lea eax, [ebp - 0xac]
mov dword [esp], eax
call fcn.004015f4
mov dword [esp], 0x4182e0
call sub.msvcrt.dll_strlen
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add eax, 3
shr eax, 2
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0
jmp 0x40197a
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x401966
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x1c]
jae 0x401962
mov eax, dword [ebp - 0x24]
add eax, 0x4182e0
movzx eax, byte [eax]
movsx edx, al
mov eax, dword [ebp - 0x14]
shl eax, 3
mov ecx, eax
shl edx, cl
mov eax, edx
or dword [ebp - 0x10], eax
add dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 3
jbe 0x40192b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x44], edx
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x20]
jb 0x40191b
lea eax, [ebp - 0x44]
mov dword [esp + 4], eax
lea eax, [ebp - 0xac]
mov dword [esp], eax
call fcn.004014fe
mov dword [ebp - 0x18], 0
jmp 0x4019e8
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + eax*4 - 0x44]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax*4 + 0x405020]
cmp edx, eax
je 0x4019e4
mov eax, dword [0x4186f8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x11
mov dword [esp + 4], str._nSorry_D3vnu11_Door_is_Locked_n
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
mov eax, 1
jmp 0x401a08
add dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 7
jle 0x4019a0
call fcn.00401a10
mov eax, dword [0x4186f8]
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
sub esp, 4
jmp 0x40182f
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret