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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433dd6
mov eax, dword fs:[0]
push eax
mov eax, 0x5680
call fcn.00427c90
mov eax, dword [0x440100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x5684], eax
movups xmmword [ebp - 0x5660], xmm0
mov dword [ebp - 0x5650], 0
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x568c], ecx
mov ecx, edx
mov dword [ebp - 0x564c], 0
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fa10
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5660]
call fcn.00404fc0
mov dword [ebp - 4], 0
call sub.msvcrt.dll__errno
cmp dword [ebp - 0x564c], 7
lea esi, [ebp - 0x5660]
mov edi, eax
lea eax, [ebp - 0x567c]
cmova esi, dword [ebp - 0x5660]
push 0xa
push eax
push esi
mov dword [edi], 0
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov dword [ebp - 0x5688], eax
cmp esi, dword [ebp - 0x567c]
je 0x41fd7c
cmp dword [edi], 0x22
je 0x41fd86
mov ecx, dword [ebp - 0x564c]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x41fac8
mov edx, dword [ebp - 0x5660]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41fabe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41fd90
push ecx
push edx
call fcn.0042755b
add esp, 8
mov edi, dword [ebp - 0x5684]
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]
push dword [edi + 8]
mov esi, eax
push 0
push 0
push 0x440ad4
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push 0
lea eax, [ebp - 0x5680]
mov edi, 1
push eax
push 4
lea eax, [ebp - 0x567c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41fd5f
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x5680]
push eax
push 0x4e20
lea eax, [ebp - 0x5630]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41fd5f
xorps xmm0, xmm0
mov dword [ebp - 0x5668], 0
lea ecx, [ebp - 0x5630]
mov dword [ebp - 0x5664], 0
movups xmmword [ebp - 0x5678], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fb90
sub ecx, edx
lea eax, [ebp - 0x5630]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x5678]
call fcn.00404fc0
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 1
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x5684]
push edi
push dword [eax + 0xc]
lea eax, [ebp - 0x810]
push 0x437ce8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
xorps xmm0, xmm0
mov dword [ebp - 0x5638], 0
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x5634], 0
add esp, 0x1c
lea edx, [ecx + 2]
movups xmmword [ebp - 0x5648], xmm0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fc12
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x5648]
call fcn.00404fc0
lea eax, [ebp - 0x5648]
mov byte [ebp - 4], 2
push eax
push 0x64
push dword [ebp - 0x567c]
lea eax, [ebp - 0x5678]
push dword [ebp - 0x5688]
push dword [ebp - 0x568c]
push eax
call fcn.0041f610
lea eax, [ebp - 0x810]
add esp, 0x18
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fc70
sub eax, edx
lea ecx, [ebp - 0x5680]
push 0
sar eax, 1
push ecx
add eax, eax
push eax
lea eax, [ebp - 0x810]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x5634]
mov byte [ebp - 4], 1
cmp ecx, 7
jbe 0x41fcdd
mov edx, dword [ebp - 0x5648]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41fcd3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41fd90
push ecx
push edx
call fcn.0042755b
add esp, 8
mov ecx, dword [ebp - 0x5664]
xor eax, eax
mov dword [ebp - 0x5638], 0
mov dword [ebp - 0x5634], 7
mov word [ebp - 0x5648], ax
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x41fd3d
mov edx, dword [ebp - 0x5678]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41fd33
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41fd90
push ecx
push edx
call fcn.0042755b
add esp, 8
push 0
lea eax, [ebp - 0x5680]
inc edi
push eax
push 4
lea eax, [ebp - 0x567c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41fb40
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.00427518
mov esp, ebp
pop ebp
ret
push str.invalid_stoi_argument
call fcn.00425b3a
push str.stoi_argument_out_of_range
call fcn.00425b7a
call fcn.00428610
int3