Function at 0x42a290
Capabilities:
Connect pipe
Create pipe
Read file on windows
Read file via mapping
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44361b
mov eax, dword fs:[0]
push eax
mov eax, 0x4e70
call fcn.00435f70
mov eax, dword [0x459780]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x4e64], edi
movups xmmword [ebp - 0x4e48], xmm0
mov dword [ebp - 0x4e38], 0
mov edx, dword [edi + 0x14]
mov ecx, edx
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x4e74], eax
mov dword [ebp - 0x4e34], 0
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42a300
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4e48]
call fcn.00405030
mov dword [ebp - 4], 0
call sub.msvcrt.dll__errno
cmp dword [ebp - 0x4e34], 7
lea esi, [ebp - 0x4e48]
mov dword [ebp - 0x4e68], eax
cmova esi, dword [ebp - 0x4e48]
mov dword [eax], 0
lea eax, [ebp - 0x4e6c]
push 0xa
push eax
push esi
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov dword [ebp - 0x4e70], eax
cmp esi, dword [ebp - 0x4e6c]
je 0x42a5d6
mov eax, dword [ebp - 0x4e68]
cmp dword [eax], 0x22
je 0x42a5e0
mov ecx, dword [ebp - 0x4e34]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x42a3c2
mov edx, dword [ebp - 0x4e48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42a3b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a5ea
push ecx
push edx
call fcn.004356f1
add esp, 8
push 0
push 0xffffffffffffffff
push 0xffff
push 0xffff
push 0xff
push 6
push 3
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, dword [ebp - 0x4e64]
mov edi, eax
push dword [esi + 0xc]
push 0xa00000
push 0
push 0x40
push 0x45a154
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0xa00000
push 0
push 0
push 0xf003f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0xa00000
push 0
push eax
mov dword [ebp - 0x4e7c], eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [esi + 8]
push 0
push 0
push 0x45a154
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x4e64]
push 0
push eax
push 4
lea eax, [ebp - 0x4e6c]
push eax
push edi
call esi
test eax, eax
je 0x42a5b9
push 0
lea eax, [ebp - 0x4e64]
push eax
push 0x4e20
lea eax, [ebp - 0x4e30]
push eax
push edi
call esi
test eax, eax
je 0x42a5b9
xorps xmm0, xmm0
mov dword [ebp - 0x4e50], 0
lea eax, [ebp - 0x4e30]
mov dword [ebp - 0x4e4c], 0
movups xmmword [ebp - 0x4e60], xmm0
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a4c0
sub eax, edx
lea ecx, [ebp - 0x4e60]
sar eax, 1
push eax
lea eax, [ebp - 0x4e30]
push eax
call fcn.00405030
lea eax, [ebp - 0x4e78]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x4e68]
push eax
push 0x64
push dword [ebp - 0x4e6c]
lea eax, [ebp - 0x4e60]
push dword [ebp - 0x4e70]
push dword [ebp - 0x4e74]
push eax
call fcn.0042b150
push dword [ebp - 0x4e68]
mov esi, dword [ebp - 0x4e78]
push esi
push dword [ebp - 0x4e7c]
call sub.msvcrt.dll_memcpy
push 1
push esi
call fcn.004356f1
add esp, 0x30
lea eax, [ebp - 0x4e64]
push 0
push eax
push 4
lea eax, [ebp - 0x4e68]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x4e4c]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x42a596
mov edx, dword [ebp - 0x4e60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42a58c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a5ea
push ecx
push edx
call fcn.004356f1
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x4e64]
push 0
push eax
push 4
lea eax, [ebp - 0x4e6c]
push eax
push edi
call esi
test eax, eax
jne 0x42a473
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004356ae
mov esp, ebp
pop ebp
ret
push str.invalid_stoi_argument
call fcn.00433cda
push str.stoi_argument_out_of_range
call fcn.00433d1a
call fcn.004369e0
int3