Function at 0x602c80
Capabilities:
Connect pipe
Get socket status

Disassembly:
sub esp, 0x130
mov eax, dword [0x6a6040]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [0x6af4f0]
or esi, 0xffffffff
cmp byte [0x6ac735], 0
mov dword [esp + 0x14], edi
je 0x602cba
call fcn.006026b0
or eax, esi
jmp 0x602f28
mov eax, dword [0x6a7594]
cmp eax, 0xffffffff
je 0x602cf7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x602ce4
mov ecx, str.WaitForSingleObject___failed
call fcn.00602c20
or eax, 0xffffffff
jmp 0x602f28
cmp byte [0x6ac735], 0
je 0x602cf7
call fcn.006026b0
jmp 0x602f15
mov eax, dword [0x6b0b50]
cmp eax, 5
jne 0x602dad
push 0
push dword [0x6a7584]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x602d7c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x218
ja 0x602d36
je 0x602d36
cmp eax, 0xe8
je 0x602d36
cmp eax, 0x217
je 0x602d7c
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
call esi
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [esp + 0x10]
push str.unexpected_ConnectNamedPipe___error
push str._s:__S_n
push 2
call fcn.006137ee
add esp, 4
push eax
call fcn.005bac00
add esp, 0x10
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [0x6a7584]
mov ecx, 5
push 0xffffffffffffffff
call fcn.006023b0
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
jne 0x602f15
push dword [0x6a7584]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x602f15
cmp eax, 3
jne 0x602efc
mov esi, dword [sym.imp.WS2_32.dll_select]
mov ebp, dword [sym.imp.WS2_32.dll_WSAAccept]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [eax + eax]
mov dword [esp + 0x10], 0x10
nop dword [eax + eax]
mov eax, dword [0x6a7584]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
lea eax, [esp + 0x3c]
mov dword [esp + 0x24], 1
push eax
push 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x44], 1
call esi
test eax, eax
jne 0x602e8a
cmp byte [0x6ac735], al
je 0x602de0
mov eax, dword [0x6a759c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x602e3c
push eax
call esi
mov dword [0x6a759c], 0xffffffff
mov eax, dword [0x6a7598]
cmp eax, 0xffffffff
je 0x602e53
push eax
call esi
mov dword [0x6a7598], 0xffffffff
mov eax, dword [0x6a7594]
cmp eax, 0xffffffff
je 0x602e64
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x6a7584]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [0x6a7584]
call dword [sym.imp.KERNEL32.dll_CancelIo]
call dword [sym.imp.WS2_32.dll_WSACleanup]
or esi, 0xffffffff
jmp 0x602f15
push edi
push 0x602b60
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [0x6a7584]
call ebp
mov edi, eax
cmp edi, 0xffffffff
jne 0x602edb
call ebx
cmp eax, 0x274d
jne 0x602ebb
mov edi, dword [esp + 0x14]
jmp 0x602dd0
call ebx
push eax
push str.accept___WSAAccept___failed:__d
push 2
call fcn.006137ee
add esp, 4
push eax
call fcn.005bac00
add esp, 0xc
or esi, 0xffffffff
jmp 0x602f15
push 0xffffffffffffffff
mov edx, edi
mov ecx, 3
call fcn.006023b0
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
jne 0x602f15
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x602f15
push eax
push str.unknown_listenType___d__n
push 2
call fcn.006137ee
add esp, 4
push eax
call fcn.005bac00
add esp, 0xc
mov eax, dword [0x6a7594]
cmp eax, 0xffffffff
je 0x602f26
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00606a47
add esp, 0x130
ret