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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x844
mov eax, dword [0x556620]
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 0x44f890
lea eax, [edi + 8]
jmp 0x44fb5e
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x84c], edi
jne 0x44f8a1
mov esi, dword [edi + 0x2c]
jmp 0x44f8a3
xor esi, esi
mov eax, dword [edi]
mov ecx, dword [edi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x844], eax
mov eax, dword [edi + 0x90]
mov dword [ebp - 0x848], esi
mov dword [ebp - 0x840], ecx
mov dword [ebp - 0x850], eax
lea esp, [esp]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x44fb5c
push 0x400
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x1c], 0
push 0
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0
call fcn.004dead0
push 0x400
lea eax, [ebp - 0x420]
mov dword [ebp - 0x42c], 0
push 0
push eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
call fcn.004dead0
add esp, 0x18
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
cmp dword [ebp - 0x844], 0
je 0x44f9f0
mov eax, dword [ebp - 0x850]
test eax, eax
je 0x44f9f0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push ecx
push esi
call eax
test eax, eax
je 0x44f9f0
mov eax, dword [ebp - 0x844]
cmp eax, dword [ebp - 0x20]
je 0x44f9f0
mov eax, dword [ebp - 0x83c]
push 0
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x1c]
push eax
push 0x410
lea eax, [ebp - 0x83c]
mov dword [ebp - 0x428], 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 - 0x42c]
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov ecx, dword [ebp - 0x840]
jmp 0x44f8d0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x410
lea eax, [ebp - 0x83c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44f9de
cmp dword [ebp - 0x1c], 0x410
mov eax, dword [ebp - 0x83c]
jne 0x44fb7c
test eax, eax
je 0x44fb01
cmp eax, 3
je 0x44fb04
cmp dword [ebp - 0x830], 0x400
ja 0x44fb01
push eax
mov ecx, edi
call fcn.0044f600
test eax, eax
jne 0x44fa65
mov eax, dword [ebp - 0x83c]
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], 0xffffffff
jmp 0x44fad0
push edi
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x83c]
push ecx
call eax
add esp, 0xc
jmp 0x44fac9
mov dword [ebp - 4], 0xffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 0x40c
lea eax, [ebp - 0x42c]
push eax
push esi
call ebx
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov ecx, dword [ebp - 0x840]
jmp 0x44f8d0
cmp eax, 3
sete bl
mov dword [ebp - 0x42c], eax
xor ecx, ecx
mov eax, 0xfffffffb
test bl, bl
push ecx
cmovne eax, ecx
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x18]
push eax
push 0x40c
lea eax, [ebp - 0x42c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov ecx, dword [ebp - 0x840]
test bl, bl
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x44f8d0
cmp byte [edi + 0xc], 0
jne 0x44f8d0
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.00401580
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], 0xfffffffe
jmp 0x44f9c9