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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
push ebx
lea eax, [ebp - 0x1ac]
push esi
push edi
mov esi, ecx
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
push 0
test eax, eax
je 0x40826c
push str.WSAStart__
call fcn.0040c2ab
add esp, 8
xor eax, eax
jmp 0x4084c9
push 2
push 2
call sub.WSOCK32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x408292
push 0
push str.Please_setup_TCP_IP_controlpanel__network__r_n
call fcn.0040c2ab
add esp, 8
xor eax, eax
jmp 0x4084c9
cmp dword [ebp + 8], 1
jne 0x4084c4
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x4082c5
push 0
push str.Please_setup2_TCP_IP_controlpanel__network__r_n
call fcn.0040c2ab
add esp, 8
xor eax, eax
jmp 0x4084c9
push 0x10
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00418610
add esp, 0xc
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0x88]
lea edx, [ebp - 0x1c]
mov word [ebp - 0x1a], cx
push 0x10
push edx
mov dword [ebp - 0x18], eax
push dword [esi]
mov word [ebp - 0x1c], 2
call sub.WSOCK32.dll_bind
test eax, eax
je 0x408315
push 0
push str.bind__
call fcn.0040c2ab
add esp, 8
xor eax, eax
jmp 0x4084c9
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 4]
call sub.WSOCK32.dll_bind
test eax, eax
je 0x408345
push dword [esi + 4]
call sub.WSOCK32.dll_closesocket
mov dword [esi + 4], 0xffffffff
push 0
push str.bind_tcp__error._Cant_support_file_attach
call fcn.0040c2ab
add esp, 8
mov dword [ebp - 4], 1
lea eax, [ebp - 4]
push eax
push 0x8004667e
push dword [esi]
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
je 0x408376
push 0
push str.ioctlsocket_nonblock_
call fcn.0040c2ab
add esp, 8
xor eax, eax
jmp 0x4084c9
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4083a7
lea ecx, [ebp - 4]
push ecx
push 0x8004667e
push eax
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
je 0x4083a7
push 0
push str.ioctlsocket_tcp_nonblock_
call fcn.0040c2ab
add esp, 8
xor eax, eax
jmp 0x4084c9
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0x20
push 0xffff
push dword [esi]
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x4083dc
push 0
push str.setsockopt_broadcast_
call fcn.0040c2ab
add esp, 8
xor eax, eax
jmp 0x4084c9
push 4
lea eax, [ebp - 0xc]
push eax
mov edi, 0x1001
push edi
mov ebx, 0xffff
mov dword [ebp - 0xc], 0x10000
mov dword [ebp - 8], 0x8000
push ebx
push dword [esi]
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x408429
push 4
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [esi]
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x408429
push 0
push str.setsockopt_sendbuf_
call fcn.0040c2ab
add esp, 8
push 4
lea eax, [ebp - 0xc]
push eax
mov edi, 0x1002
push edi
mov ebx, 0xffff
mov dword [ebp - 0xc], 0x10000
mov dword [ebp - 8], 0x8000
push ebx
push dword [esi]
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x408476
push 4
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [esi]
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x408476
push 0
push str.setsockopt_recvbuf_
call fcn.0040c2ab
add esp, 8
mov dword [ebp - 4], 1
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4084ab
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push eax
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x4084ab
push 0
push str.setsockopt_tcp_reuseaddr_
call fcn.0040c2ab
add esp, 8
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4084c4
push 5
push eax
call sub.WSOCK32.dll_listen
test eax, eax
mov eax, 0
jne 0x4084c9
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4