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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x641c60
mov eax, dword fs:[0]
push eax
sub esp, 0x854
mov eax, dword [0x6ccc30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
jne 0x5ea530
lea eax, [edi + 8]
jmp 0x5ea84a
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x850], edi
jne 0x5ea541
mov esi, dword [edi + 0x2c]
jmp 0x5ea543
xor esi, esi
mov ecx, dword [edi + 8]
mov eax, dword [edi]
mov ebx, dword [edi + 0x90]
mov dword [ebp - 0x854], esi
mov dword [ebp - 0x844], ecx
mov dword [ebp - 0x84c], eax
mov dword [ebp - 0x848], ebx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x5ea848
push 0x400
lea eax, [ebp - 0x830]
mov dword [ebp - 0x20], 0
push 0
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x840], 0
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 0
call fcn.0061e8c0
push 0x404
lea eax, [ebp - 0x428]
mov dword [ebp - 0x430], 0
push 0
push eax
mov dword [ebp - 0x42c], 0
call fcn.0061e8c0
add esp, 0x18
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
cmp dword [ebp - 0x84c], 0
je 0x5ea686
test ebx, ebx
je 0x5ea686
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push esi
mov ecx, ebx
call dword [0x64689c]
call ebx
test eax, eax
je 0x5ea686
mov eax, dword [ebp - 0x84c]
cmp eax, dword [ebp - 0x1c]
je 0x5ea686
mov eax, dword [ebp - 0x840]
push 0
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x20]
push eax
push 0x410
lea eax, [ebp - 0x840]
mov dword [ebp - 0x42c], 0xfffffffa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0x18]
push eax
push 0x40c
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov ecx, dword [ebp - 0x844]
jmp 0x5ea566
push 0
lea eax, [ebp - 0x20]
push eax
push 0x410
lea eax, [ebp - 0x840]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5ea674
cmp dword [ebp - 0x20], 0x410
jne 0x5ea868
mov ecx, dword [ebp - 0x840]
test ecx, ecx
je 0x5ea7ec
cmp ecx, 3
je 0x5ea7ef
cmp dword [ebp - 0x834], 0x400
ja 0x5ea7ec
lea eax, [edi + 0x14]
mov dword [ebp - 0x24], ecx
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x860]
push eax
lea ecx, [edi + 0x38]
call fcn.005e3090
mov ecx, dword [ebp - 0x858]
cmp byte [ecx + 0xd], 0
jne 0x5ea70e
mov eax, dword [ebp - 0x24]
cmp eax, dword [ecx + 0x10]
jae 0x5ea711
mov ecx, dword [edi + 0x38]
cmp ecx, dword [edi + 0x38]
je 0x5ea79c
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x38]
call fcn.005e30e0
mov ebx, dword [eax]
test ebx, ebx
je 0x5ea79c
push edi
lea eax, [ebp - 0x430]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x840]
mov ecx, ebx
push eax
call dword [0x64689c]
call ebx
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
jmp 0x5ea7b2
mov eax, dword [ebp - 0x840]
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], 0xffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 0x40c
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp - 0x848]
push esi
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov ecx, dword [ebp - 0x844]
jmp 0x5ea566
cmp ecx, 3
sete bl
mov dword [ebp - 0x430], ecx
xor edx, edx
mov eax, 0xfffffffb
cmp ecx, 3
push edx
cmove eax, edx
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x18]
push eax
push 0x40c
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov ecx, dword [ebp - 0x844]
test bl, bl
mov ebx, dword [ebp - 0x848]
je 0x5ea566
cmp byte [edi + 0xc], 0
jne 0x5ea566
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005ce525
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x840]
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], 0xfffffffe
jmp 0x5ea65b