Function at 0x416920
Capabilities:
Connect pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 8], ecx
push 0x800
call fcn.0042cdc8
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x416946
xor eax, eax
jmp 0x416b29
push 0x800
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.00427e10
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx + 0x1c]
mov dword [ebp - 0x2c], ecx
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4169d3
push 0xffffffffffffffff
push 0
mov edx, dword [ebp - 8]
add edx, 0x1c
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
je 0x4169d3
xor eax, eax
jmp 0x416b29
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x1c]
mov dword [ebp - 0x2c], eax
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0x800
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x416a63
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x416a63
push 0xffffffffffffffff
push 0
mov eax, dword [ebp - 8]
add eax, 0x1c
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
je 0x416a63
xor eax, eax
jmp 0x416b29
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx + 0x1c]
mov dword [ebp - 0x2c], ecx
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx]
mov byte [ebp - 1], dl
add dword [ebp - 0xc], 1
cmp byte [ebp - 1], 0
jne 0x416aab
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x416b19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x416b19
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 8]
add ecx, 0x1c
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
je 0x416b19
xor eax, eax
jmp 0x416b29
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4