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

Disassembly:
sub esp, 0x1ac
lea eax, [esp + 0x1c]
push esi
push edi
push eax
mov esi, ecx
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
push 0
je 0x41109a
push str.WSAStart__
call fcn.00410120
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x1ac
ret 4
mov edi, dword [sym.imp.WSOCK32.dll_socket]
push 2
push 2
call edi
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4110c9
push 0
push str.Please_setup_TCP_IP_controlpanel__network__r_n
call fcn.00410120
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x1ac
ret 4
mov eax, dword [esp + 0x1b8]
test eax, eax
je 0x411345
push 0
push 1
push 2
call edi
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x411104
push 0
push str.Please_setup2_TCP_IP_controlpanel__network__r_n
call fcn.00410120
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x1ac
ret 4
mov edx, dword [esi + 0xc0]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov ax, word [esi + 0xc4]
mov dword [esp + 0x18], ecx
mov edi, dword [sym.imp.WSOCK32.dll_bind]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov edx, dword [esi]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x14]
push 0x10
push ecx
push edx
mov word [esp + 0x20], 2
mov word [esp + 0x22], ax
call edi
test eax, eax
je 0x411165
push 0
push str.bind__
call fcn.00410120
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x1ac
ret 4
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push 0x10
push eax
push ecx
call edi
test eax, eax
je 0x411196
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
push 0
push str.bind_tcp__error._Cant_support_file_attach
mov dword [esi + 4], 0xffffffff
call fcn.00410120
add esp, 8
mov ecx, dword [esi]
mov edi, dword [sym.imp.WSOCK32.dll_ioctlsocket]
lea eax, [esp + 8]
mov dword [esp + 8], 1
push eax
push 0x8004667e
push ecx
call edi
test eax, eax
je 0x4111d3
push 0
push str.ioctlsocket_nonblock_
call fcn.00410120
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x1ac
ret 4
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x411208
lea edx, [esp + 8]
push edx
push 0x8004667e
push eax
call edi
test eax, eax
je 0x411208
push 0
push str.ioctlsocket_tcp_nonblock_
call fcn.00410120
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x1ac
ret 4
mov ecx, dword [esi]
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
lea eax, [esp + 8]
push 4
push eax
push 0x20
push 0xffff
push ecx
mov dword [esp + 0x1c], 1
call edi
test eax, eax
je 0x411249
push 0
push str.setsockopt_broadcast_
call fcn.00410120
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x1ac
ret 4
mov eax, dword [esi]
lea edx, [esp + 0x10]
push 4
push edx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x24], 0x10000
mov dword [esp + 0x20], 0x8000
call edi
test eax, eax
je 0x41129c
mov edx, dword [esi]
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x1001
push 0xffff
push edx
call edi
test eax, eax
je 0x41129c
push 0
push str.setsockopt_sendbuf_
call fcn.00410120
add esp, 8
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push 4
push eax
push 0x1002
push 0xffff
push ecx
mov dword [esp + 0x24], 0x10000
mov dword [esp + 0x20], 0x8000
call edi
test eax, eax
je 0x4112ef
mov eax, dword [esi]
lea edx, [esp + 0xc]
push 4
push edx
push 0x1002
push 0xffff
push eax
call edi
test eax, eax
je 0x4112ef
push 0
push str.setsockopt_recvbuf_
call fcn.00410120
add esp, 8
mov eax, dword [esi + 4]
mov dword [esp + 8], 1
cmp eax, 0xffffffff
je 0x411323
lea ecx, [esp + 8]
push 4
push ecx
push 4
push 0xffff
push eax
call edi
test eax, eax
je 0x411323
push 0
push str.setsockopt_tcp_reuseaddr_
call fcn.00410120
add esp, 8
mov esi, dword [esi + 4]
cmp esi, 0xffffffff
je 0x411345
push 0x64
push esi
call dword [sym.imp.WSOCK32.dll_listen]
test eax, eax
je 0x411345
pop edi
xor eax, eax
pop esi
add esp, 0x1ac
ret 4
pop edi
mov eax, 1
pop esi
add esp, 0x1ac
ret 4