Function at 0x14003aab0
Capabilities:
Check for time delay via gettickcount
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Terminate process

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x430
lea rdi, [rsp + 0x50]
mov ecx, 0xf8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x440]
mov byte [rsp + 0x3da], 0
mov byte [rsp + 0x3d9], 0
mov byte [rsp + 0x3d8], 0
cmp qword [rsp + 0x460], 0
je 0x14003ab15
mov rcx, qword [rsp + 0x460]
call fcn.14000d5a0
cmp qword [rsp + 0x468], 0
je 0x14003ab2d
mov rcx, qword [rsp + 0x468]
call fcn.14000d5a0
cmp qword [rsp + 0x478], 0
je 0x14003ab46
mov rax, qword [rsp + 0x478]
mov dword [rax], 0xffffffff
mov rcx, qword [rsp + 0x448]
call fcn.14001ab00
test rax, rax
je 0x14003ab62
mov eax, 0xffffffff
jmp 0x14003b895
mov qword [rsp + 0xb8], 0
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElement
xor edx, edx
lea rcx, [rsp + 0xd8]
call fcn.1400c2c60
cmp qword [rsp + 0x480], 0
je 0x14003ac4b
mov rax, qword [rsp + 0x480]
cmp qword [rax], 0
jne 0x14003abf0
mov r9d, 0xf01
lea r8, [0x1401c6cd0]
lea rdx, [0x1401c22fc]
xor ecx, ecx
call fcn.14001a8b0
mov qword [rsp + 0x480], 0
jmp 0x14003ac4b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [rsp + 0x3d8], 1
mov dword [rsp + 0xf4], eax
mov byte [rsp + 0x3d9], 1
mov rax, qword [rsp + 0x480]
mov eax, dword [rax + 8]
mov dword [rsp + 0xf8], eax
cmp byte [rsp + 0x3d8], 0
jne 0x14003ac35
lea rcx, str.dwTimeStartup
call fcn.1400c0e10
mov byte [rsp + 0x3da], 1
mov eax, dword [rsp + 0xf4]
mov dword [rsp + 0xfc], eax
mov dword [rsp + 0x100], 0xffffffff
mov qword [rsp + 0x108], 0
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElement
xor edx, edx
lea rcx, [rsp + 0x118]
call fcn.1400c2c60
mov dword [rsp + 0x118], reloc.OLEAUT32.dll_SafeArrayGetElement
mov dword [rsp + 0x128], 1
cmp qword [rsp + 0x460], 0
je 0x14003accf
xor r9d, r9d
lea r8, [rsp + 0x118]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14003accf
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
jmp 0x14003b749
cmp qword [rsp + 0x468], 0
je 0x14003ad20
xor r9d, r9d
lea r8, [rsp + 0x118]
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14003ad20
mov qword [rsp + 0xb8], 0
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x98], rax
jmp 0x14003b749
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x150]
call fcn.1400c2c60
mov dword [rsp + 0x150], 0x68
mov dword [rsp + 0x18c], 0x101
xor eax, eax
mov word [rsp + 0x190], ax
cmp qword [rsp + 0x460], 0
je 0x14003adb0
cmp qword [rsp + 0x78], 0
je 0x14003ad76
mov qword [rsp + 0x3e0], 1
jmp 0x14003ad82
mov qword [rsp + 0x3e0], 0
mov r9d, 0xf30
lea r8, [0x1401c6d30]
lea rdx, [0x1401c6cb8]
mov rcx, qword [rsp + 0x3e0]
call fcn.14001a8b0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x1a8], rax
cmp qword [rsp + 0x468], 0
je 0x14003ae11
cmp qword [rsp + 0xb8], 0
je 0x14003add4
mov qword [rsp + 0x3e8], 1
jmp 0x14003ade0
mov qword [rsp + 0x3e8], 0
mov r9d, 0xf35
lea r8, [0x1401c6d90]
lea rdx, [0x1401c6df0]
mov rcx, qword [rsp + 0x3e8]
call fcn.14001a8b0
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x1b0], rax
mov qword [rsp + 0x108], 1
mov dword [rsp + 0x1c4], 0
cmp qword [rsp + 0x440], 0
je 0x14003ae45
mov eax, dword [rsp + 0x1c4]
bts eax, 0xa
mov dword [rsp + 0x1c4], eax
lea rcx, [rsp + 0x1e0]
call fcn.140004cd0
nop
lea rcx, [rsp + 0x258]
call fcn.140044830
nop
mov rdx, qword [rsp + 0x448]
lea rcx, [rsp + 0x258]
call fcn.140046140
cmp qword [rsp + 0x450], 0
jne 0x14003ae8f
mov qword [rsp + 0x3f0], 0
jmp 0x14003aedd
mov rax, qword [rsp + 0x450]
movzx eax, word [rax]
test eax, eax
jne 0x14003aebd
lea rdx, [rsp + 0x1e0]
mov rcx, qword [rsp + 0x448]
call fcn.140041e60
mov qword [rsp + 0x3f8], rax
jmp 0x14003aecd
mov rax, qword [rsp + 0x450]
mov qword [rsp + 0x3f8], rax
mov rax, qword [rsp + 0x3f8]
mov qword [rsp + 0x3f0], rax
lea rcx, [rsp + 0x258]
call fcn.1400133a0
lea rcx, [rsp + 0xd8]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x150]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x3f0]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x440]
mov qword [rsp + 0x30], rcx
mov ecx, dword [rsp + 0x1c4]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14003af72
mov qword [rsp + 0xd8], 0
lea rcx, [rsp + 0x258]
call fcn.140004d30
nop
lea rcx, [rsp + 0x1e0]
call fcn.140004db0
jmp 0x14003b749
cmp qword [rsp + 0x460], 0
je 0x14003afd4
cmp qword [rsp + 0x78], 0
je 0x14003af93
mov qword [rsp + 0x400], 1
jmp 0x14003af9f
mov qword [rsp + 0x400], 0
mov r9d, 0xf52
lea r8, [0x1401c6e20]
lea rdx, str.hStdOutWrite___NULL
mov rcx, qword [rsp + 0x400]
call fcn.14001a8b0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], 0
cmp qword [rsp + 0x468], 0
je 0x14003b03f
cmp qword [rsp + 0xb8], 0
je 0x14003aff8
mov qword [rsp + 0x408], 1
jmp 0x14003b004
mov qword [rsp + 0x408], 0
mov r9d, 0xf58
lea r8, [0x1401c6e80]
lea rdx, str.hStdErrorWrite___NULL
mov rcx, qword [rsp + 0x408]
call fcn.14001a8b0
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0x100], 0
lea rcx, [rsp + 0x2a8]
call fcn.140044830
nop
lea rcx, [rsp + 0x2f8]
call fcn.140044830
nop
cmp qword [rsp + 0x460], 0
jne 0x14003b07c
cmp qword [rsp + 0x480], 0
je 0x14003b08b
xor edx, edx
lea rcx, [rsp + 0x2a8]
call fcn.140042a40
cmp qword [rsp + 0x468], 0
jne 0x14003b0a1
cmp qword [rsp + 0x480], 0
je 0x14003b0b0
xor edx, edx
lea rcx, [rsp + 0x2f8]
call fcn.140042a40
mov dword [rsp + 0x384], 0
cmp qword [rsp + 0x480], 0
je 0x14003b12a
mov rax, qword [rsp + 0x448]
mov qword [rsp + 0x358], rax
lea rax, [rsp + 0x2a8]
mov qword [rsp + 0x360], rax
lea rax, [rsp + 0x2f8]
mov qword [rsp + 0x368], rax
mov rax, qword [rsp + 0x480]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x370], rax
mov rax, qword [rsp + 0x480]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x378], rax
mov qword [rsp + 0x350], 0
cmp qword [rsp + 0x108], 0
je 0x14003b46f
mov edx, 0x64
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x14003b164
mov qword [rsp + 0x108], 0
jmp 0x14003b46f
cmp qword [rsp + 0x480], 0
je 0x14003b46f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x3c4], eax
cmp byte [rsp + 0x3da], 0
jne 0x14003b196
lea rcx, str.dwTimeLastNotify
call fcn.1400c0e10
mov eax, dword [rsp + 0xfc]
cmp dword [rsp + 0x3c4], eax
jb 0x14003b1b4
mov qword [rsp + 0x410], 1
jmp 0x14003b1c0
mov qword [rsp + 0x410], 0
mov r9d, 0xf81
lea r8, [0x1401c6f20]
lea rdx, str.dwCurrentTime___dwTimeLastNotify
mov rcx, qword [rsp + 0x410]
call fcn.14001a8b0
cmp byte [rsp + 0x3da], 0
jne 0x14003b1f7
lea rcx, str.dwTimeLastNotify
call fcn.1400c0e10
cmp byte [rsp + 0x3d9], 0
jne 0x14003b20d
lea rcx, str.dwNotifyInterval
call fcn.1400c0e10
mov eax, dword [rsp + 0xfc]
mov ecx, dword [rsp + 0x3c4]
sub ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0xf8]
jb 0x14003b46f
mov byte [rsp + 0x3da], 1
mov eax, dword [rsp + 0x3c4]
mov dword [rsp + 0xfc], eax
mov rax, qword [rsp + 0x480]
cmp qword [rax], 0
je 0x14003b284
cmp byte [rsp + 0x3d8], 0
jne 0x14003b266
lea rcx, str.dwTimeStartup
call fcn.1400c0e10
mov eax, dword [rsp + 0xf4]
cmp dword [rsp + 0x3c4], eax
jb 0x14003b284
mov qword [rsp + 0x418], 1
jmp 0x14003b290
mov qword [rsp + 0x418], 0
mov r9d, 0xf88
lea r8, [0x1401c6f80]
lea rdx, str.pTimeoutCheckParam__m_fnIsTimeout___NULL__dwCurrentTime___dwTimeStartup
mov rcx, qword [rsp + 0x418]
call fcn.14001a8b0
cmp byte [rsp + 0x3d8], 0
jne 0x14003b2c7
lea rcx, str.dwTimeStartup
call fcn.1400c0e10
mov eax, dword [rsp + 0xf4]
mov ecx, dword [rsp + 0x3c4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x348], eax
xor edx, edx
lea rcx, [rsp + 0x2a8]
call fcn.140042bb0
test rax, rax
je 0x14003b316
xor edx, edx
lea rcx, [rsp + 0x2f8]
call fcn.140042bb0
test rax, rax
je 0x14003b316
mov qword [rsp + 0x420], 1
jmp 0x14003b322
mov qword [rsp + 0x420], 0
mov r9d, 0xf8d
lea r8, [0x1401c7030]
lea rdx, str.memStdOutWideText.EndWCharOf__0___memStdErrorWideText.EndWCharOf__0_
mov rcx, qword [rsp + 0x420]
call fcn.14001a8b0
lea rcx, [rsp + 0x348]
mov rax, qword [rsp + 0x480]
call qword [rax]
mov dword [rsp + 0x384], eax
lea rcx, [rsp + 0x2a8]
call fcn.140008ed0
xor edx, edx
mov ecx, 2
div rcx
mov rax, rdx
mov qword [rsp + 0x3c8], rax
cmp qword [rsp + 0x3c8], 0
je 0x14003b3ae
lea rcx, [rsp + 0x2a8]
call fcn.140008ed0
sub rax, qword [rsp + 0x3c8]
mov rdx, rax
lea rcx, [rsp + 0x2a8]
call fcn.140042f50
lea rcx, [rsp + 0x2f8]
call fcn.140008ed0
xor edx, edx
mov ecx, 2
div rcx
mov rax, rdx
mov qword [rsp + 0x3c8], rax
cmp qword [rsp + 0x3c8], 0
je 0x14003b400
lea rcx, [rsp + 0x2f8]
call fcn.140008ed0
sub rax, qword [rsp + 0x3c8]
mov rdx, rax
lea rcx, [rsp + 0x2f8]
call fcn.140042f50
xor edx, edx
lea rcx, [rsp + 0x2a8]
call fcn.140042bb0
test rax, rax
jne 0x14003b423
xor edx, edx
lea rcx, [rsp + 0x2a8]
call fcn.140042a40
xor edx, edx
lea rcx, [rsp + 0x2f8]
call fcn.140042bb0
test rax, rax
jne 0x14003b446
xor edx, edx
lea rcx, [rsp + 0x2f8]
call fcn.140042a40
cmp dword [rsp + 0x384], 1
jne 0x14003b455
jmp 0x14003b50f
cmp dword [rsp + 0x384], 2
jne 0x14003b46f
mov dword [rsp + 0x100], 0xfffffffe
jmp 0x14003b50f
mov qword [rsp + 0x398], 0
cmp qword [rsp + 0x460], 0
je 0x14003b4a7
lea r9, [rsp + 0x398]
lea r8, [rsp + 0x2a8]
mov edx, dword [rsp + 0x458]
mov rcx, qword [rsp + 0x58]
call fcn.140041990
mov qword [rsp + 0x3b8], 0
cmp qword [rsp + 0x468], 0
je 0x14003b4e2
lea r9, [rsp + 0x3b8]
lea r8, [rsp + 0x2f8]
mov edx, dword [rsp + 0x458]
mov rcx, qword [rsp + 0x98]
call fcn.140041990
cmp qword [rsp + 0x398], 0
jg 0x14003b12a
cmp qword [rsp + 0x3b8], 0
jg 0x14003b12a
cmp qword [rsp + 0x108], 0
jne 0x14003b12a
cmp qword [rsp + 0x480], 0
je 0x14003b5ba
cmp dword [rsp + 0x384], 0
jne 0x14003b5ba
cmp qword [rsp + 0x108], 0
jne 0x14003b545
mov qword [rsp + 0x428], 1
jmp 0x14003b551
mov qword [rsp + 0x428], 0
mov r9d, 0xfba
lea r8, [0x1401c70e0]
lea rdx, str.blpProcessRunning__FALSE
mov rcx, qword [rsp + 0x428]
call fcn.14001a8b0
cmp byte [rsp + 0x3d8], 0
jne 0x14003b588
lea rcx, str.dwTimeStartup
call fcn.1400c0e10
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0xf4]
mov dword [rsp + 0x348], eax
mov qword [rsp + 0x350], 1
lea rcx, [rsp + 0x348]
mov rax, qword [rsp + 0x480]
call qword [rax]
cmp qword [rsp + 0x460], 0
je 0x14003b60d
xor edx, edx
lea rcx, [rsp + 0x2a8]
call fcn.140042bb0
mov r9d, 0xfc4
lea r8, [0x1401c7160]
lea rdx, str.memStdOutWideText.EndWCharOf__0_
mov rcx, rax
call fcn.14001a8b0
lea rcx, [rsp + 0x2a8]
call fcn.140008e50
mov rdx, rax
mov rcx, qword [rsp + 0x460]
call fcn.1400542b0
cmp qword [rsp + 0x468], 0
je 0x14003b6bb
xor edx, edx
lea rcx, [rsp + 0x2f8]
call fcn.140042bb0
mov r9d, 0xfcc
lea r8, [0x1401c7210]
lea rdx, str.memStdErrorWideText.EndWCharOf__0_
mov rcx, rax
call fcn.14001a8b0
mov rax, qword [rsp + 0x460]
cmp qword [rsp + 0x468], rax
jne 0x14003b69e
mov rcx, qword [rsp + 0x468]
call fcn.140024490
test rax, rax
jne 0x14003b67f
lea rdx, [0x1401c237c]
mov rcx, qword [rsp + 0x468]
call fcn.140053030
lea rcx, [rsp + 0x2f8]
call fcn.140008e50
mov rdx, rax
mov rcx, qword [rsp + 0x468]
call fcn.140053030
jmp 0x14003b6bb
lea rcx, [rsp + 0x2f8]
call fcn.140008e50
mov rdx, rax
mov rcx, qword [rsp + 0x468]
call fcn.1400542b0
cmp qword [rsp + 0x478], 0
je 0x14003b708
cmp dword [rsp + 0x100], 0xfffffffe
jne 0x14003b6e0
mov rax, qword [rsp + 0x478]
mov dword [rax], 0xffffffff
jmp 0x14003b708
mov rdx, qword [rsp + 0x478]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x14003b708
mov rax, qword [rsp + 0x478]
mov dword [rax], 0
lea rcx, [rsp + 0x2f8]
call fcn.140004d30
nop
lea rcx, [rsp + 0x2a8]
call fcn.140004d30
nop
lea rcx, [rsp + 0x258]
call fcn.140004d30
nop
lea rcx, [rsp + 0x1e0]
call fcn.140004db0
xor eax, eax
test eax, eax
jne 0x14003ac62
cmp qword [rsp + 0xd8], 0
je 0x14003b7e9
cmp qword [rsp + 0x108], 0
je 0x14003b7cd
mov edx, dword [rsp + 0xe8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
mov edx, dword [rsp + 0xe8]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
mov r8d, dword [rsp + 0xe8]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x3d0], rax
cmp qword [rsp + 0x3d0], 0
je 0x14003b7cd
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x58], 0
je 0x14003b7fc
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x78], 0
je 0x14003b80f
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x98], 0
je 0x14003b828
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0xb8], 0
je 0x14003b841
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x470], 0
je 0x14003b88e
cmp qword [rsp + 0x460], 0
je 0x14003b864
mov rcx, qword [rsp + 0x460]
call fcn.140053940
cmp qword [rsp + 0x468], 0
je 0x14003b88e
mov rax, qword [rsp + 0x460]
cmp qword [rsp + 0x468], rax
je 0x14003b88e
mov rcx, qword [rsp + 0x468]
call fcn.140053940
mov eax, dword [rsp + 0x100]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401caee8]
call fcn.1400bfd90
mov rax, rdi
add rsp, 0x430
pop rdi
ret