Function at 0x608a70
Capabilities:
Connect pipe
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6773cd
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x73bb00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov eax, dword [edi + 0x208]
cmp eax, 0xffffffff
je 0x608ca7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x608b10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x218
je 0x608ca7
cmp esi, 0xe8
je 0x608c12
cmp esi, 0x217
je 0x608b10
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00626020
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
cmova eax, dword [ebp - 0x28]
push eax
push esi
lea eax, [edi + 4]
push eax
push str.failed_to_connect_named_pipe__s___ld__s_
jmp 0x608c92
push 0
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push dword [edi + 0x208]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x608c04
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x608ca7
inc eax
push eax
call fcn.00643185
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x44]
push 0
push eax
push dword [ebp - 0x48]
push ebx
push dword [edi + 0x208]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x608c23
mov eax, dword [ebp - 0x44]
xor esi, esi
mov edi, ebx
mov byte [eax + ebx], 0
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x608bb0
cmp byte [ebx + esi], 0xa
jne 0x608bab
push edi
mov byte [ebx + esi], 0
call fcn.00624df0
add esp, 4
test eax, eax
je 0x608ba3
mov edx, dword [ebp - 0x4c]
push 1
push 0xffffffffffffffff
mov ecx, dword [edx]
push dword [edx + 0x204]
push edi
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov eax, dword [ebp - 0x44]
lea edi, [ebx + 1]
add edi, esi
inc esi
cmp esi, eax
jb 0x608b77
add eax, ebx
cmp edi, eax
jae 0x608bd8
push edi
call fcn.00624df0
add esp, 4
test eax, eax
je 0x608bd8
mov edx, dword [ebp - 0x4c]
push 1
push 0xffffffffffffffff
mov ecx, dword [edx]
push dword [edx + 0x204]
push edi
mov eax, dword [ecx]
call dword [eax + 0x3c]
push ebx
call fcn.0064316a
mov edi, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
add esp, 4
push 0
push eax
push 0
push 0
push 0
push dword [edi + 0x208]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x608b30
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov esi, eax
cmp esi, 0x6d
jne 0x608c6b
push dword [edi + 0x208]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x608ca7
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov esi, eax
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.00626020
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
lea eax, [edi + 4]
mov dword [ebp - 4], 2
cmova ecx, dword [ebp - 0x40]
push ecx
push esi
push eax
push str.failed_to_read_from_pipe__s___ld__s_
push str.fifo
call fcn.0061d2f0
push ebx
call fcn.0064316a
add esp, 0x20
lea ecx, [ebp - 0x40]
jmp 0x608ca2
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00626020
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
cmova eax, dword [ebp - 0x28]
push eax
push esi
lea eax, [edi + 4]
push eax
push str.failed_to_peek_at_pipe__s___ld__s_
push str.fifo
call fcn.0061d2f0
add esp, 0x1c
lea ecx, [ebp - 0x28]
call fcn.004171c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0063292f
mov esp, ebp
pop ebp
ret