Function at 0x41c520
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e3c8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4c9230]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x18]
call fcn.00404e00
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x70]
cmp dword [eax + 0x200], 0
je 0x41c584
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401d60
mov eax, dword [ebp - 0x34]
jmp 0x41c7f8
mov ecx, 2
mov word [ebp - 0x2c], cx
mov edx, dword [ebp - 0x70]
movzx eax, word [edx + 0x19a]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x2a], ax
mov ecx, dword [ebp - 0x70]
add ecx, 0x19c
push ecx
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x28], eax
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov edx, dword [ebp - 0x70]
mov dword [edx + 0x200], eax
mov eax, dword [ebp - 0x70]
cmp dword [eax + 0x200], 0xffffffff
jne 0x41c636
mov ecx, dword [ebp - 0x70]
movsx edx, word [ecx + 0x19a]
push edx
mov eax, dword [ebp - 0x70]
add eax, 0x19c
push eax
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.CreateListenSocket___socket___ERROR____ErrorNo_d_IP__s:_05d_
mov ecx, dword [ebp - 0x70]
add ecx, 0x424
push ecx
call fcn.00402f10
add esp, 0x14
mov ecx, dword [ebp - 0x70]
call fcn.0041d170
mov ecx, dword [ebp - 0x70]
call fcn.0041c990
mov dword [ebp - 0x38], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401d60
mov eax, dword [ebp - 0x38]
jmp 0x41c7f8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x8004667e
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x200]
push ecx
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
mov dword [ebp - 0x10], eax
push 0x10
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x200]
push ecx
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x41c6dd
mov edx, dword [ebp - 0x70]
movsx eax, word [edx + 0x19a]
push eax
mov ecx, dword [ebp - 0x70]
add ecx, 0x19c
push ecx
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.CreateListenSocket___bind___ERROR____ErrorNo_d_IP__s:_05d_
mov edx, dword [ebp - 0x70]
add edx, 0x424
push edx
call fcn.00402f10
add esp, 0x14
mov ecx, dword [ebp - 0x70]
call fcn.0041d170
mov ecx, dword [ebp - 0x70]
call fcn.0041c990
mov dword [ebp - 0x3c], 0xfffffffd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401d60
mov eax, dword [ebp - 0x3c]
jmp 0x41c7f8
mov eax, dword [ebp - 0x70]
movzx ecx, byte [eax + 0x434]
test ecx, ecx
jne 0x41c737
mov dword [ebp - 0x30], 1
push 4
lea edx, [ebp - 0x30]
push edx
push 1
push 6
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x200]
push ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x41c737
mov ecx, dword [ebp - 0x70]
call fcn.0041c990
mov dword [ebp - 0x40], 0xfffffffb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401d60
mov eax, dword [ebp - 0x40]
jmp 0x41c7f8
push 1
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x200]
push eax
call dword [sym.imp.WSOCK32.dll_listen]
cmp eax, 0xffffffff
jne 0x41c7ab
mov ecx, dword [ebp - 0x70]
movsx edx, word [ecx + 0x19a]
push edx
mov eax, dword [ebp - 0x70]
add eax, 0x19c
push eax
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.CreateListenSocket___listen___ERROR____ErrorNo_d_IP__s:_05d_
mov ecx, dword [ebp - 0x70]
add ecx, 0x424
push ecx
call fcn.00402f10
add esp, 0x14
mov ecx, dword [ebp - 0x70]
call fcn.0041d170
mov ecx, dword [ebp - 0x70]
call fcn.0041c990
mov dword [ebp - 0x44], 0xfffffffc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401d60
mov eax, dword [ebp - 0x44]
jmp 0x41c7f8
mov edx, dword [ebp - 0x70]
movsx eax, word [edx + 0x19a]
push eax
mov ecx, dword [ebp - 0x70]
add ecx, 0x19c
push ecx
push str.CreateListenSocket___OK_IP__s:_05d_
mov edx, dword [ebp - 0x70]
add edx, 0x424
push edx
call fcn.00402f10
add esp, 0x10
mov ecx, dword [ebp - 0x70]
call fcn.0041d170
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401d60
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0046a109
mov esp, ebp
pop ebp
ret