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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431986
mov eax, dword fs:[0]
push eax
mov eax, 0x56a0
call fcn.00425780
mov eax, dword [0x43d140]
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 0x41de00
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5660]
call fcn.00401230
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 0x41e1bc
cmp dword [edi], 0x22
je 0x41e1c6
mov ecx, dword [ebp - 0x564c]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x41deb8
mov edx, dword [ebp - 0x5660]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41deae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e1d0
push ecx
push edx
call fcn.00425023
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]
mov esi, eax
mov dword [ebp - 0x569c], 0
push 1
lea eax, [ebp - 0x56ac]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x56ac], xmm0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x56ac]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push dword [edi + 8]
lea eax, [ebp - 0x56ac]
mov dword [ebp - 0x5698], 0xc
push 0
mov dword [ebp - 0x5694], eax
lea eax, [ebp - 0x5698]
push 0
push eax
mov dword [ebp - 0x5690], 0
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 0x41e19f
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 0x41e19f
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 0x41dfd0
sub ecx, edx
lea eax, [ebp - 0x5630]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x5678]
call fcn.00401230
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 0x434ae8
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 0x41e052
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x5648]
call fcn.00401230
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.0041da40
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 0x41e0b0
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 0x41e11d
mov edx, dword [ebp - 0x5648]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41e113
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e1d0
push ecx
push edx
call fcn.00425023
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 0x41e17d
mov edx, dword [ebp - 0x5678]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41e173
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e1d0
push ecx
push edx
call fcn.00425023
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 0x41df80
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.0042503f
mov esp, ebp
pop ebp
ret
push str.invalid_stoi_argument
call fcn.00423e56
push str.stoi_argument_out_of_range
call fcn.00423e96
call fcn.00426470
int3