Function at 0x402ca0
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4357e6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x44a068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x1cc], edi
mov dword [ebp - 0x1c8], edi
push 0
lea eax, [ebp - 0x170]
mov dword [ebp - 0x1c8], edi
push eax
lea eax, [ebp - 0x164]
mov dword [ebp - 0x170], 0xc
push eax
lea eax, [ebp - 0x160]
mov dword [ebp - 0x168], 1
push eax
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x164], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x402d58
push 0x15
mov dword [edi + 0x10], eax
mov ecx, edi
mov dword [edi + 0x14], 7
push str.Failed_to_create_pipe
mov word [edi], ax
call fcn.00404540
mov eax, edi
jmp 0x403145
push 0
push 1
push dword [ebp - 0x160]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x15c]
xorps xmm0, xmm0
mov dword [ebp - 0x1c4], 0x44
movlpd qword [ebp - 0x198], xmm0
mov edx, str.cmd__c
or dword [ebp - 0x198], 0x100
push esi
movlpd qword [ebp - 0x1c0], xmm0
movlpd qword [ebp - 0x1b8], xmm0
movlpd qword [ebp - 0x1b0], xmm0
movlpd qword [ebp - 0x1a8], xmm0
movlpd qword [ebp - 0x1a0], xmm0
movlpd qword [ebp - 0x190], xmm0
movups xmmword [ebp - 0x180], xmm0
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x188], eax
call fcn.00405d20
add esp, 4
lea ecx, [ebp - 0x180]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x148], 8
lea eax, [ebp - 0x15c]
push ecx
cmovae eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x1c4]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x164]
test eax, eax
jne 0x402ea7
call esi
push dword [ebp - 0x160]
call esi
push 0x17
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov ecx, edi
push str.Failed_to_start_process
mov word [edi], ax
call fcn.00404540
mov edx, dword [ebp - 0x148]
cmp edx, 8
jb 0x402ea0
mov ecx, dword [ebp - 0x15c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402e96
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403160
push edx
push ecx
call fcn.00419245
add esp, 8
mov eax, edi
jmp 0x403145
call esi
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
push 0
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 1
push eax
push 0xff
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x160]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402fbe
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x402fb8
cmp eax, 0x100
jae 0x40316a
lea esi, [ebp - 0x110]
mov byte [ebp + eax - 0x110], 0
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x402f20
mov edx, dword [ebp - 0x114]
sub esi, ecx
mov ecx, dword [ebp - 0x118]
mov eax, edx
sub eax, ecx
push esi
cmp esi, eax
ja 0x402f6f
lea eax, [ecx + esi]
cmp edx, 0x10
mov dword [ebp - 0x118], eax
lea edi, [ebp - 0x128]
cmovae edi, dword [ebp - 0x128]
lea eax, [ebp - 0x110]
add edi, ecx
push eax
push edi
call fcn.0041ad50
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x402f8f
lea eax, [ebp - 0x110]
mov byte [ebp - 0x1c8], 0
push eax
push dword [ebp - 0x1c8]
lea ecx, [ebp - 0x128]
push esi
call fcn.00406b40
push 0
lea eax, [ebp - 0x12c]
push eax
push 0xff
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x160]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402ef1
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebp - 0x180]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x180]
call esi
push dword [ebp - 0x17c]
call esi
push dword [ebp - 0x160]
call esi
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x128]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmovae eax, dword [ebp - 0x128]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 1
call edi
mov esi, eax
mov dword [ebp - 0x134], 0
xor eax, eax
mov dword [ebp - 0x130], 7
push eax
push esi
lea ecx, [ebp - 0x144]
mov word [ebp - 0x144], ax
call fcn.004043c0
cmp dword [ebp - 0x130], 8
lea ecx, [ebp - 0x144]
push esi
cmovae ecx, dword [ebp - 0x144]
lea eax, [ebp - 0x128]
cmp dword [ebp - 0x114], 0x10
push ecx
cmovae eax, dword [ebp - 0x128]
push 0xffffffffffffffff
push eax
push 0
push 1
call edi
mov esi, dword [ebp - 0x1cc]
xor eax, eax
movups xmm0, xmmword [ebp - 0x144]
mov edx, dword [ebp - 0x114]
mov word [ebp - 0x144], ax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x134]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 7
cmp edx, 0x10
jb 0x4030ec
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4030e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403165
push edx
push ecx
call fcn.00419245
add esp, 8
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
cmp edx, 8
jb 0x403143
mov ecx, dword [ebp - 0x15c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403139
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40316f
push edx
push ecx
call fcn.00419245
add esp, 8
mov eax, esi
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.00419004
mov esp, ebp
pop ebp
ret
call fcn.0041f2d0
call fcn.0041f2d0
call fcn.0041913b
call fcn.0041f2d0
int3