Function at 0x14002a2a0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Read file on windows
Read pipe
Terminate process

Disassembly:
sub rsp, 0x438
mov rax, rdx
mov r10, rdx
mov qword [rsp + 0x430], r10
mov qword [rsp + 0x428], r9
mov qword [rsp + 0x420], r8
mov qword [rsp + 0x418], rcx
lea rcx, [rsp + 0x410]
mov qword [rsp + 0x188], rdx
mov qword [rsp + 0x180], rax
call fcn.14001a3c0
mov byte [rsp + 0x40f], 0
mov rcx, qword [rsp + 0x188]
mov qword [rsp + 0x178], rax
call fcn.1400016c0
lea rcx, [rsp + 0x3e8]
mov qword [rsp + 0x170], rax
call fcn.1400016c0
lea rcx, [rsp + 0x3c8]
mov qword [rsp + 0x168], rax
call fcn.1400016c0
mov dword [rsp + 0x3c4], 0
mov dword [rsp + 0x3c0], 0
mov qword [rsp + 0x3b8], 0
mov qword [rsp + 0x3b0], 0
mov qword [rsp + 0x3a8], 0
mov qword [rsp + 0x398], 0
mov dword [rsp + 0x390], 0x18
mov dword [rsp + 0x3a0], 1
mov dword [rsp + 0x38c], 0xffffffff
mov qword [rsp + 0x380], 0
mov qword [rsp + 0x378], 0
mov qword [rsp + 0x370], 0
mov qword [rsp + 0x368], 0
mov rcx, qword [rsp + 0x420]
mov qword [rsp + 0x160], rax
call fcn.140016d40
test al, 1
jne 0x14002a3ea
jmp 0x14002a3ef
jmp 0x14002ad77
xor r9d, r9d
lea rcx, [rsp + 0x380]
lea rdx, [rsp + 0x378]
lea r8, [rsp + 0x390]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
cmp eax, 0
jne 0x14002a41e
jmp 0x14002ad77
xor r9d, r9d
lea rcx, [rsp + 0x368]
lea rdx, [rsp + 0x370]
lea r8, [rsp + 0x390]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
cmp eax, 0
jne 0x14002a44d
jmp 0x14002ad77
xor eax, eax
lea rcx, [rsp + 0x350]
mov edx, eax
mov r8d, 0x18
mov dword [rsp + 0x15c], eax
call fcn.1400a9170
lea rcx, [rsp + 0x2e8]
mov r8, rcx
mov qword [rsp + 0x150], rcx
mov rcx, r8
mov edx, dword [rsp + 0x15c]
mov r8d, 0x68
call fcn.1400a9170
mov dword [rsp + 0x2e8], 0x68
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [rsp + 0x324], 0x101
mov word [rsp + 0x328], 0
mov rcx, qword [rsp + 0x370]
mov qword [rsp + 0x340], rcx
mov qword [rsp + 0x348], rcx
mov rcx, qword [rsp + 0x380]
mov qword [rsp + 0x338], rcx
mov rcx, qword [rsp + 0x420]
call fcn.1400073b0
xor edx, edx
xor r9d, r9d
mov ecx, r9d
mov r9d, 0xfde9
mov qword [rsp + 0x148], rcx
mov ecx, r9d
mov r8, rax
mov r9d, 0xffffffff
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x3c4], eax
cmp dword [rsp + 0x3c4], 0
jne 0x14002a549
jmp 0x14002ad77
mov eax, dword [rsp + 0x3c4]
add eax, 1
movsxd rcx, eax
shl rcx, 1
mov dword [rsp + 0x3c0], ecx
mov eax, dword [rsp + 0x3c0]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x3b8], rax
cmp rax, 0
jne 0x14002a58c
jmp 0x14002ad77
xor edx, edx
mov rax, qword [rsp + 0x3b8]
mov ecx, dword [rsp + 0x3c0]
mov r8d, ecx
mov rcx, rax
call fcn.1400a9170
mov edx, dword [rsp + 0x3c4]
mov rax, qword [rsp + 0x3b8]
mov rcx, qword [rsp + 0x420]
mov dword [rsp + 0x144], edx
mov qword [rsp + 0x138], rax
call fcn.1400073b0
xor edx, edx
mov ecx, 0xfde9
mov r8, rax
mov r9d, 0xffffffff
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x20], rax
mov r10d, dword [rsp + 0x144]
mov dword [rsp + 0x28], r10d
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [rsp + 0x3c0]
mov r8d, ecx
add r8, 0x208
mov ecx, r8d
mov edx, ecx
mov ecx, 0x40
mov dword [rsp + 0x134], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x3b0], rax
cmp rax, 0
jne 0x14002a653
mov rax, qword [rsp + 0x3b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14002ad77
lea rcx, [rsp + 0x2c8]
lea rdx, [0x14011dc9b]
mov r8d, 0x31
call fcn.14002f4b0
lea rcx, [rsp + 0x3e8]
lea rdx, [rsp + 0x2c8]
call fcn.140023780
lea rcx, [rsp + 0x2c8]
mov qword [rsp + 0x128], rax
call fcn.140001770
lea rcx, [rsp + 0x2a8]
lea rdx, [0x14011dccd]
mov r8d, 0x33
call fcn.14002f4b0
lea rcx, [rsp + 0x3c8]
lea rdx, [rsp + 0x2a8]
call fcn.140015f40
lea rcx, [rsp + 0x2a8]
mov qword [rsp + 0x120], rax
call fcn.140001770
mov r9, qword [rsp + 0x3b8]
lea rcx, [rsp + 0x280]
mov qword [rsp + 0x118], r9
call fcn.140005a70
lea rcx, [rsp + 0x3c8]
lea rdx, [rsp + 0x278]
mov qword [rsp + 0x110], rax
call fcn.140005a80
lea rcx, [rsp + 0x3c8]
lea rdx, [rsp + 0x270]
call fcn.140005b00
mov rdx, qword [rsp + 0x270]
mov r8, qword [rsp + 0x278]
lea rcx, [rsp + 0x288]
lea r9, [rsp + 0x280]
call fcn.140005b70
lea rcx, [rsp + 0x288]
mov qword [rsp + 0x108], rax
call fcn.14002d9c0
lea rcx, [rsp + 0x248]
mov qword [rsp + 0x100], rax
call fcn.140005a70
lea rcx, [rsp + 0x3e8]
lea rdx, [rsp + 0x240]
mov qword [rsp + 0xf8], rax
call fcn.140005a80
lea rcx, [rsp + 0x3e8]
lea rdx, [rsp + 0x238]
call fcn.140005b00
mov rdx, qword [rsp + 0x238]
mov r8, qword [rsp + 0x240]
lea rcx, [rsp + 0x250]
lea r9, [rsp + 0x248]
call fcn.140005b70
lea rcx, [rsp + 0x250]
mov qword [rsp + 0xf0], rax
call fcn.14002d9c0
mov rcx, qword [rsp + 0x3b0]
mov rdx, qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0xe8], rdx
mov rdx, rax
mov r8, qword [rsp + 0x100]
mov r9, qword [rsp + 0x118]
mov rax, qword [rsp + 0xe8]
call rax
lea rcx, [rsp + 0x250]
mov dword [rsp + 0xe4], eax
call fcn.140005c80
lea rcx, [rsp + 0x288]
call fcn.140005c80
mov rcx, qword [rsp + 0x3b8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r10d, r10d
mov ecx, r10d
mov rdx, qword [rsp + 0x3b0]
mov qword [rsp + 0xd8], rcx
mov r8, qword [rsp + 0xd8]
mov r9, qword [rsp + 0xd8]
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x28], 0x8000020
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea r11, [rsp + 0x2e8]
mov qword [rsp + 0x40], r11
lea r11, [rsp + 0x350]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0xd0], rax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 0
jne 0x14002a8d7
mov rax, qword [rsp + 0x3b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14002ad77
mov rax, qword [rsp + 0x3b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rsp + 0x230]
mov qword [rsp + 0xc8], rax
call fcn.1400139f0
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0x410], rax
jmp 0x14002a912
mov dword [rsp + 0x22c], 0
mov dword [rsp + 0x228], 0
mov rcx, qword [rsp + 0x350]
lea rdx, [rsp + 0x38c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp eax, 0
je 0x14002ad6d
cmp dword [rsp + 0x38c], 0x103
jne 0x14002abc1
lea rax, [rsp + 0x210]
mov rcx, rax
mov qword [rsp + 0xc0], rax
call fcn.1400139f0
lea rax, [rsp + 0x218]
lea r8, [rsp + 0x410]
mov rcx, rax
mov rdx, qword [rsp + 0xc0]
mov qword [rsp + 0xb8], rax
call fcn.140023f00
lea rax, [rsp + 0x220]
mov rcx, rax
mov rdx, qword [rsp + 0xb8]
mov qword [rsp + 0xb0], rax
call fcn.140023f70
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0xa8], rax
call fcn.140023fb0
movaps xmm1, xmmword [0x14011d220]
movq xmm2, qword [rsp + 0x428]
punpckldq xmm2, xmm1
movapd xmm1, xmmword [0x14011d230]
subpd xmm2, xmm1
movaps xmm1, xmm2
unpckhpd xmm2, xmm2
addsd xmm2, xmm1
ucomisd xmm0, xmm2
jb 0x14002aa69
lea rcx, [rsp + 0x1f0]
lea rdx, str.KyA_r
mov r8d, 0x3d
call fcn.14002f4b0
mov rcx, qword [rsp + 0x188]
lea rdx, [rsp + 0x1f0]
call fcn.140023780
lea rcx, [rsp + 0x1f0]
mov qword [rsp + 0xa0], rax
call fcn.140001770
xor edx, edx
mov rcx, qword [rsp + 0x350]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 0
je 0x14002aa64
jmp 0x14002ad77
jmp 0x14002abbc
xor eax, eax
mov ecx, eax
xor r8d, r8d
mov rdx, qword [rsp + 0x368]
mov qword [rsp + 0x98], rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x98]
mov r9, qword [rsp + 0x98]
lea r10, [rsp + 0x228]
mov qword [rsp + 0x20], r10
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp eax, 0
je 0x14002abad
cmp dword [rsp + 0x228], 0
je 0x14002aba8
mov eax, dword [rsp + 0x228]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x3a8], rax
cmp rax, 0
jne 0x14002aaf1
jmp 0x14002ad77
xor eax, eax
mov ecx, eax
mov r8d, dword [rsp + 0x228]
mov rdx, qword [rsp + 0x3a8]
mov r9, qword [rsp + 0x368]
mov qword [rsp + 0x90], rcx
mov rcx, r9
lea r9, [rsp + 0x22c]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 0
je 0x14002aba3
mov eax, dword [rsp + 0x22c]
mov r8d, eax
mov rdx, qword [rsp + 0x3a8]
lea rcx, [rsp + 0x1d0]
call fcn.140025fc0
mov rcx, qword [rsp + 0x188]
lea rdx, [rsp + 0x1d0]
mov qword [rsp + 0x88], rax
call fcn.140023780
lea rcx, [rsp + 0x1d0]
mov qword [rsp + 0x80], rax
call fcn.140001770
mov rcx, qword [rsp + 0x3a8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x3a8], 0
jmp 0x14002aba8
jmp 0x14002abad
mov ecx, 0x1f4
call fcn.140004570
jmp 0x14002a90d
jmp 0x14002ad68
xor eax, eax
mov ecx, eax
xor r8d, r8d
mov rdx, qword [rsp + 0x368]
mov qword [rsp + 0x78], rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x78]
mov r9, qword [rsp + 0x78]
lea r10, [rsp + 0x228]
mov qword [rsp + 0x20], r10
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp eax, 0
je 0x14002ad63
mov rcx, qword [rsp + 0x188]
call fcn.1400017a0
cmp rax, 0
jne 0x14002ac72
cmp dword [rsp + 0x228], 0
jne 0x14002ac72
lea rcx, [rsp + 0x1b0]
lea rdx, [0x14011dd3f]
mov r8d, 0x47
call fcn.14002f4b0
mov rcx, qword [rsp + 0x188]
lea rdx, [rsp + 0x1b0]
call fcn.140023780
lea rcx, [rsp + 0x1b0]
mov qword [rsp + 0x70], rax
call fcn.140001770
jmp 0x14002ad77
cmp dword [rsp + 0x228], 0
jne 0x14002ac85
jmp 0x14002ad77
mov eax, dword [rsp + 0x228]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x3a8], rax
cmp rax, 0
jne 0x14002acb0
jmp 0x14002ad77
xor eax, eax
mov ecx, eax
mov r8d, dword [rsp + 0x228]
mov rdx, qword [rsp + 0x3a8]
mov r9, qword [rsp + 0x368]
mov qword [rsp + 0x68], rcx
mov rcx, r9
lea r9, [rsp + 0x22c]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 0
je 0x14002ad5e
mov eax, dword [rsp + 0x22c]
mov r8d, eax
mov rdx, qword [rsp + 0x3a8]
lea rcx, [rsp + 0x190]
call fcn.140025fc0
mov rcx, qword [rsp + 0x188]
lea rdx, [rsp + 0x190]
mov qword [rsp + 0x60], rax
call fcn.140023780
lea rcx, [rsp + 0x190]
mov qword [rsp + 0x58], rax
call fcn.140001770
mov rcx, qword [rsp + 0x3a8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x3a8], 0
jmp 0x14002ad77
jmp 0x14002ad63
jmp 0x14002ad68
jmp 0x14002ad72
jmp 0x14002ad77
jmp 0x14002a90d
cmp qword [rsp + 0x350], 0
je 0x14002ad94
mov rcx, qword [rsp + 0x350]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x358], 0
je 0x14002adb1
mov rcx, qword [rsp + 0x358]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x368], 0
je 0x14002adce
mov rcx, qword [rsp + 0x368]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x370], 0
je 0x14002adeb
mov rcx, qword [rsp + 0x370]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x378], 0
je 0x14002ae08
mov rcx, qword [rsp + 0x378]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x380], 0
je 0x14002ae25
mov rcx, qword [rsp + 0x380]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsp + 0x40f], 1
lea rcx, [rsp + 0x3c8]
call fcn.140001770
lea rcx, [rsp + 0x3e8]
call fcn.140001770
test byte [rsp + 0x40f], 1
jne 0x14002ae62
mov rcx, qword [rsp + 0x188]
call fcn.140001770
mov rax, qword [rsp + 0x180]
add rsp, 0x438
ret