Function at 0x401f0a
Capabilities:
Connect pipe
Create pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x87c
mov eax, dword [0x4888dc]
xor eax, esp
mov dword [esp + 0x878], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
mov ebx, 0x800
push ebx
push ebx
push 1
push 6
push 0x40080003
push str..pipe671A75EB_8A98_4F90_9B16_29DC96A7A4EF
mov edi, ecx
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x401f85
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], str.CreateNamedPipe_failed
call fcn.0047102d
mov dword [esp + 0x1c], 0x482354
push 0x486710
lea eax, [esp + 0x20]
push eax
call fcn.00472871
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x401fc1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], str.CreateEvent_failed
call fcn.0047102d
mov dword [esp + 0x1c], 0x482354
push 0x486710
lea eax, [esp + 0x20]
jmp 0x401f7f
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
lea edi, [esp + 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x401fc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x40203b
cmp eax, 0x3e5
jne 0x402173
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push 0x493e0
mov dword [esp + 0x24], eax
push esi
lea eax, [esp + 0x24]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, esi
jne 0x402139
push 0x7ff
lea eax, [esp + 0x85]
push esi
push eax
mov byte [esp + 0x8c], 0
call fcn.00479d30
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
push esi
lea eax, [esp + 0x1c]
push eax
push ebx
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x24]
mov dword [esp + 0x2c], esi
call edi
jmp 0x40210b
cmp dword [esp + 0x18], esi
je 0x402120
push dword [esp + 0x18]
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x34]
call fcn.00401eda
mov eax, dword [esp + 0x38]
pop ecx
pop ecx
cmp dword [esp + 0x2c], eax
je 0x402115
sub eax, dword [esp + 0x2c]
push esi
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [esp + 0x38]
mov dword [esp + 0x1c], esi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
test eax, eax
je 0x402119
call fcn.00402769
push 0x7ff
xor esi, esi
lea eax, [esp + 0x85]
push esi
push eax
mov byte [esp + 0x8c], 0
call fcn.00479d30
add esp, 0xc
push esi
lea eax, [esp + 0x1c]
push eax
push ebx
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x24]
mov dword [esp + 0x2c], esi
call edi
test eax, eax
jne 0x40207d
jmp 0x402120
lea esi, [esp + 0x2c]
call fcn.00402769
xor esi, esi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x401fc8
dec eax
je 0x4021cb
sub eax, 0x101
je 0x40219f
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x10], str.WaitForSingleObject_failed
call fcn.0047102d
mov dword [esp + 0x48], 0x482354
push 0x486710
lea eax, [esp + 0x4c]
jmp 0x401f7f
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x10], str.ConnectNamedPipe_failed
call fcn.0047102d
mov dword [esp + 0x3c], 0x482354
push 0x486710
lea eax, [esp + 0x40]
jmp 0x401f7f
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x10], str.WaitForSingleObject_timed_out
call fcn.0047102d
mov dword [esp + 0x54], 0x482354
push 0x486710
lea eax, [esp + 0x58]
jmp 0x401f7f
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x10], str.Exit_event_is_set__exiting
call fcn.0047102d
mov dword [esp + 0x60], 0x482354
push 0x486710
lea eax, [esp + 0x64]
jmp 0x401f7f