Function at 0x41d640
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d8e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4ac
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
push str.____Run_async_command:__s_n
call fcn.00401dd0
add esp, 8
mov dword [ebp - 0x48], 0xc
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
movq qword [ebp - 0x44], xmm0
mov dword [ebp - 0x40], 1
push 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x44], 0
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x41d741
push 0x40
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb8], 0x44
push 0
push eax
call fcn.004218b0
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x58]
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x8c], 0x101
cmp dword [ebp + 0x1c], 8
push ecx
lea ecx, [ebp - 0xb8]
mov word [ebp - 0x88], ax
push ecx
push 0
push 0
push 0x10
push 1
push 0
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push eax
push 0
movups xmmword [ebp - 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41d7de
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
push eax
cmovae ecx, dword [ebp + 8]
push ecx
push str.____Failed_to_run_async_command:__s__error_0x_X_n
call fcn.00401dd0
mov ecx, dword [ebp + 0x1c]
xorps xmm0, xmm0
mov byte [edi], 0
add esp, 0xc
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
movups xmmword [edi + 4], xmm0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
movups xmmword [ebp - 0x74], xmm0
mov byte [ebp - 0x74], 0
movups xmm0, xmmword [ebp - 0x74]
movups xmmword [edi + 4], xmm0
movq xmm0, qword [ebp - 0x64]
movq qword [edi + 0x14], xmm0
cmp ecx, 8
jb 0x41d96e
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41d964
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d980
jmp 0x41d964
mov eax, dword [0x456398]
test eax, eax
je 0x41d7f1
push dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
nop word [eax + eax]
push 1
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
test eax, eax
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x14]
sete byte [ebp - 0xd]
call esi
test eax, eax
je 0x41d8c0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41d8c0
push 0
lea ecx, [ebp - 0x1c]
cmp eax, 0x3ff
push ecx
mov ecx, 0x3ff
cmova eax, ecx
push eax
lea eax, [ebp - 0x4b8]
push eax
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x41d8c0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41d8c0
mov byte [ebp + eax - 0x4b8], 0
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x4b8]
push eax
call fcn.00405c90
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
call esi
test eax, eax
jne 0x41d854
cmp byte [ebp - 0xd], 0
je 0x41d820
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x58]
call esi
push dword [ebp - 0x54]
call esi
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x3c]
push eax
lea ecx, [edi + 4]
mov byte [edi], 1
call fcn.00405d00
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x41d926
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41d91c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d980
push ecx
push edx
call fcn.0041fc4a
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
cmp ecx, 8
jb 0x41d96e
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41d964
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d980
push ecx
push edx
call fcn.0041fc4a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0042c24f
int3