Function at 0x40193e
Capabilities:
Create thread
Create udp socket
Execute command
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xc98
mov esi, ecx
call dbg.__main
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x24], 0
mov word [ebp - 0x26], 0x312c
mov dword [ebp - 0x1c], 0
mov dword [esp], 0
call sym._time
mov dword [0x4060a8], eax
lea eax, [ebp - 0x1ec]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sym._WSAStartup_8
sub esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4019d8
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.WSAStartup___failed_with_error__d_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
call sym._WSACleanup_0
mov eax, 0xffffffff
jmp 0x401d9d
call sym._showServerTime
mov dword [esp + 4], eax
mov dword [esp], str._sWSAStartup___is_OK._n
call sym._printf
mov word [ebp - 0x48], 2
cmp dword [ebp - 0x24], 0
je 0x401a09
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._inet_addr_4
sub esp, 4
jmp 0x401a0e
mov eax, 0
mov dword [ebp - 0x44], eax
movzx eax, word [ebp - 0x26]
mov dword [esp], eax
call sym._htons_4
sub esp, 4
mov word [ebp - 0x46], ax
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], 2
call sym._socket_12
sub esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x401a86
call sym._WSAGetLastError_0
mov ebx, eax
call sym._showServerTime
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.socket___failed_with_error__d_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
call sym._WSACleanup_0
mov eax, 0xffffffff
jmp 0x401d9d
call sym._showServerTime
mov dword [esp + 4], eax
mov dword [esp], str._ssocket___is_OK._n
call sym._printf
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._bind_12
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x401af8
call sym._WSAGetLastError_0
mov ebx, eax
call sym._showServerTime
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str._sbind___failed_with_error__d_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
call sym._WSACleanup_0
mov eax, 0xffffffff
jmp 0x401d9d
call sym._showServerTime
mov dword [esp + 4], eax
mov dword [esp], str._sbind___is_OK._n
call sym._printf
mov dword [esp + 4], 5
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._listen_8
sub esp, 8
cmp eax, 0xffffffff
jne 0x401b58
call sym._WSAGetLastError_0
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_listen___failed_with_error__d_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
call sym._WSACleanup_0
mov eax, 0xffffffff
jmp 0x401d9d
call sym._showServerTime
mov dword [esp + 4], eax
mov dword [esp], str._s_listen___is_OK._n
call sym._printf
cmp dword [ebp - 0x20], 1
jne 0x401b7a
mov ebx, 0x404366
jmp 0x401b7f
mov ebx, 0x40436a
movzx edi, word [ebp - 0x26]
mov eax, dword [esi + 4]
mov esi, dword [eax]
call sym._showServerTime
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], str._s__s:_Im_listening_and_waiting_connection_on_port__d__protocol__s_n
call sym._printf
mov dword [esp + 4], 0x50
lea eax, [ebp - 0xc7c]
mov dword [esp], eax
call sym._gethostname_8
sub esp, 8
lea eax, [ebp - 0xc7c]
mov dword [esp + 4], eax
mov dword [esp], str.Host_name_is__s_n
call sym._printf
lea eax, [ebp - 0xc7c]
mov dword [esp], eax
call sym._gethostbyname_4
sub esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc80], eax
mov eax, dword [ebp - 0xc80]
mov dword [esp], eax
call sym._inet_ntoa_4
sub esp, 4
mov dword [esp + 4], eax
mov dword [esp], 0x406088
call sym._strcpy
mov dword [esp + 4], 0x406088
mov dword [esp], str.Address__s_n
call sym._printf
mov dword [esp], str.start_MiniWeb.exe
call sym._system
mov dword [esp], str.Waiting_for_connection
call sym._puts
mov dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x5c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x58]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._accept_12
sub esp, 0xc
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x401cb0
call sym._WSAGetLastError_0
mov ebx, eax
call sym._showServerTime
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str._saccept___error__d_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
call sym._WSACleanup_0
mov eax, 0xffffffff
jmp 0x401d9d
mov ax, word [ebp - 0x56]
movzx eax, ax
mov dword [esp], eax
call sym._htons_4
sub esp, 4
movzx esi, ax
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sym._inet_ntoa_4
sub esp, 4
mov ebx, eax
call sym._showServerTime
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], str._saccepted_connection_from__s__port__d_n
call sym._printf
mov ax, word [ebp - 0x56]
movzx eax, ax
mov dword [esp], eax
call sym._htons_4
sub esp, 4
movzx ebx, ax
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sym._inet_ntoa_4
sub esp, 4
mov edx, eax
lea esi, [ebp - 0xc2c]
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
shl eax, 3
add eax, ecx
shl eax, 2
add eax, esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], str._s:_d
mov dword [esp], eax
call sym._sprintf
mov edx, dword [ebp - 0x1c]
mov eax, edx
shl eax, 3
add eax, edx
shl eax, 2
lea edx, [ebp - 0x18]
add eax, edx
lea edx, [eax - 0xbf4]
mov eax, dword [ebp - 0x38]
mov dword [edx], eax
mov edx, dword [ebp - 0x1c]
mov eax, edx
shl eax, 3
add eax, edx
shl eax, 2
lea edx, [ebp - 0xc2c]
add eax, edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], sym._serverThread
call sym.__beginthread
mov eax, dword [ebp - 0x1c]
inc eax
and eax, 0xf
mov dword [ebp - 0x1c], eax
jmp 0x401c3d
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret