Function at 0x602820
Capabilities:
Create pipe
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x2c
mov eax, dword [0x6a6040]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
call fcn.006027b0
cmp dword [0x6a7594], 0xffffffff
movzx edi, ax
mov dword [esp + 8], 1
jne 0x602899
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x6a7594], eax
test eax, eax
jne 0x602874
mov eax, 0xfffffffe
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00606a47
add esp, 0x2c
ret
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x602899
mov eax, 0xfffffffd
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00606a47
add esp, 0x2c
ret
mov esi, 0x7f000001
test di, di
je 0x602919
push 9
push str.localhost
push str.localhost:10008
call fcn.00614950
add esp, 0xc
test eax, eax
je 0x602919
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
push str._d._d._d._d
push str.localhost:10008
call fcn.0041abe0
add esp, 0x18
cmp eax, 4
jne 0x602b3d
movzx esi, byte [esp + 0x1c]
movzx eax, byte [esp + 0x20]
shl esi, 8
or esi, eax
mov dword [0x6b0b50], 3
movzx eax, byte [esp + 0x24]
shl esi, 8
or esi, eax
movzx eax, byte [esp + 0x28]
shl esi, 8
or esi, eax
jmp 0x602934
test di, di
mov eax, 6
mov ecx, 3
cmovne eax, ecx
mov dword [0x6b0b50], eax
je 0x602a1f
xorps xmm0, xmm0
mov eax, 2
push esi
movlpd qword [esp + 0x18], xmm0
mov word [esp + 0x10], ax
call dword [sym.imp.WS2_32.dll_htonl]
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 1
push 2
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x602987
mov eax, 0xfffffffc
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00606a47
add esp, 0x2c
ret
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x6029c4
mov eax, 0xfffffff4
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00606a47
add esp, 0x2c
ret
push 0x14
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x6029e7
mov eax, 0xfffffffb
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00606a47
add esp, 0x2c
ret
mov ecx, dword [0x6b0b50]
mov edx, esi
push 0xffffffffffffffff
call fcn.006023b0
add esp, 4
cmp eax, 0xffffffff
jne 0x602b26
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xfffffffa
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00606a47
add esp, 0x2c
ret
push 0x11
call fcn.006159f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x602a43
lea eax, [edi - 7]
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00606a47
add esp, 0x2c
ret
mov ecx, str..pipeFastCGI_
mov edx, edi
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x602a50
lea ecx, [edi - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x602a60
mov eax, dword [str.localhost:10008]
push 0
push 0
push 0x1000
push 0x1000
mov dword [ecx], eax
mov eax, dword [0x653604]
push 0xff
mov dword [ecx + 4], eax
mov eax, dword [0x653608]
push 0
mov dword [ecx + 8], eax
mov eax, dword [0x65360c]
push 3
push edi
mov dword [ecx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push edi
mov esi, eax
call fcn.00614130
add esp, 4
cmp esi, 0xffffffff
jne 0x602acd
mov eax, 0xfffffff8
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00606a47
add esp, 0x2c
ret
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x602af2
mov eax, 0xfffffff7
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00606a47
add esp, 0x2c
ret
mov ecx, dword [0x6b0b50]
mov edx, esi
push 0xffffffffffffffff
call fcn.006023b0
add esp, 4
cmp eax, 0xffffffff
jne 0x602b26
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffff6
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00606a47
add esp, 0x2c
ret
mov ecx, dword [esp + 0x2c]
pop edi
mov dword [0x6a7584], esi
pop esi
xor ecx, esp
call fcn.00606a47
add esp, 0x2c
ret
push str.To_start_a_service_on_a_TCP_port_can_not_specify_a_host_name._nYou_should_either_use__localhost:_port___or__just_use__:_port_.__n
push 2
call fcn.006137ee
add esp, 4
push eax
call fcn.005bac00
add esp, 8
push 1
call fcn.00613bb8
int3