Function at 0x4397c0
Capabilities:
Create tcp socket
Create udp socket
Start tcp server

Disassembly:
mov eax, dword [0x517ff0]
sub esp, 0x40
mov ecx, dword [0x517ff4]
push ebx
push ebp
push esi
push edi
push 0
push 0x439160
push eax
push 0x70
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
jne 0x439af8
mov eax, dword [0x5167e4]
cmp eax, 0x400
jb 0x439adf
cmp eax, 0x1f90
je 0x439adf
cmp eax, 0xffff
ja 0x439adf
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
or ebp, 0xffffffff
mov dword [0x4a0c80], eax
cmp eax, ebp
push 0
jne 0x43983a
push 0x4a0d2c
push str.socket___failed
jmp 0x439aeb
mov cx, word [0x5167e4]
xor eax, eax
mov dword [esp + 0x18], eax
mov word [esp + 0x18], 2
mov dword [esp + 0x1c], eax
mov word [esp + 0x1a], cx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call sub.WSOCK32.dll_htonl
mov dword [esp + 0x18], eax
mov eax, dword [0x4a0c80]
lea edx, [esp + 0x14]
push 0x10
push edx
push eax
call sub.WSOCK32.dll_bind
cmp eax, ebp
push 0
jne 0x4398a1
mov ecx, dword [0x517ff0]
push 0x4a0d2c
push str.bind___failed
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x40
ret
mov edx, dword [0x4a0c80]
push edx
call sub.WSOCK32.dll_listen
cmp eax, ebp
mov eax, dword [0x4a0c80]
jne 0x4398e5
push eax
call sub.WSOCK32.dll_closesocket
mov ecx, dword [0x517ff0]
push 0
push 0x4a0d2c
push str.listen___failed
push ecx
mov dword [0x4a0c80], ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x40
ret
mov edx, dword [0x517ff0]
push 8
push 0x401
push edx
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
cmp eax, ebp
jne 0x439920
mov ecx, dword [0x4a0c80]
push ecx
call sub.WSOCK32.dll_closesocket
push 0
push 0x4a0d2c
mov dword [0x4a0c80], ebp
push str.WSAAsyncSelect___failed
jmp 0x439aeb
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea eax, [esp + 0x40]
push 0
push eax
call esi
test eax, eax
je 0x439932
mov eax, dword [esp + 0x38]
cmp eax, 0x111
je 0x4399df
cmp eax, 0x401
je 0x43996b
lea ecx, [esp + 0x34]
push ecx
call edi
lea edx, [esp + 0x34]
push edx
call ebx
jmp 0x439932
mov eax, dword [esp + 0x40]
mov ecx, eax
shr ecx, 0x10
jne 0x439a2e
cmp ax, 8
jne 0x439932
mov ecx, dword [0x4a0c80]
lea edx, [esp + 0x10]
lea eax, [esp + 0x24]
push edx
push eax
push ecx
mov dword [esp + 0x1c], 0x10
call sub.WSOCK32.dll_accept
cmp eax, ebp
mov dword [0x4a0c7c], eax
jne 0x439a70
mov edx, dword [0x4a0c80]
push edx
call sub.WSOCK32.dll_closesocket
mov eax, dword [0x517ff0]
push 0
push 0x4a0d2c
push str.accept___failed
push eax
mov dword [0x4a0c80], ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x40
ret
cmp word [esp + 0x3c], 0x9c4b
jne 0x439932
mov edx, dword [0x4a0c80]
push 2
push edx
call sub.WSOCK32.dll_shutdown
mov eax, dword [0x4a0c80]
push eax
call sub.WSOCK32.dll_closesocket
mov ecx, dword [0x517ff0]
push 0
push 0x4a0d2c
push str.accepting_canceled
push ecx
mov dword [0x4a0c80], ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x40
ret
mov edx, dword [0x4a0c80]
push 2
push edx
call sub.WSOCK32.dll_shutdown
mov eax, dword [0x4a0c80]
push eax
call sub.WSOCK32.dll_closesocket
mov ecx, dword [0x517ff0]
push 0
push 0x4a0d2c
push str.socket_error
push ecx
mov dword [0x4a0c80], ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x40
ret
mov ecx, dword [0x517ff0]
push 0x20
push 0x401
push ecx
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
cmp eax, ebp
jne 0x439ace
mov edx, dword [0x4a0c80]
push edx
call sub.WSOCK32.dll_closesocket
mov eax, dword [0x4a0c7c]
mov dword [0x4a0c80], ebp
push eax
call sub.WSOCK32.dll_closesocket
mov ecx, dword [0x517ff0]
push 0
push 0x4a0d2c
push str.WSAAsyncSelect___failed
push ecx
mov dword [0x4a0c7c], ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
mov byte [0x5167f3], 1
mov al, 1
pop ebx
add esp, 0x40
ret
push 0
push 0x4a0d2c
push str.Invalid_Port_number
mov edx, dword [0x517ff0]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x40
ret