Function at 0x140012438
Capabilities:
Accept command line arguments

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x300
mov qword [r11 - 0x228], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1402bb8e8]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov r15b, r8b
mov r12b, dl
mov r14, rcx
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_LoadRegTypeLib
lea r9, str.NGSetupUtils::CTaskSchedulerWrapper::Run
lea r8, [0x1402ce928]
mov rdx, qword [0x1402ce920]
lea rcx, [r11 - 0xd8]
call fcn.140005704
nop
xor esi, esi
mov qword [rsp + 0x60], rsi
lea rcx, [r14 + 0x18]
call fcn.1400044e0
lea r13d, [rsi + 8]
cmp qword [rax + 0x18], r13
jb 0x1400124c0
mov rax, qword [rax]
test rax, rax
jne 0x1400124cf
mov rbx, rsi
mov qword [rsp + 0x68], rbx
jmp 0x1400124f0
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x1400124f0
mov ecx, 0x8007000e
call fcn.14000ff28
nop
mov dword [rsp + 0x50], esi
lea rcx, [rsp + 0x190]
call fcn.1400049d0
lea rcx, [rsp + 0x190]
call fcn.140004a50
mov qword [rax], 7
lea rcx, [rsp + 0x190]
call fcn.1400044e0
mov word [rsp + 0x58], si
mov qword [rax + 0x10], rsi
cmp qword [rax + 0x18], r13
jb 0x140012534
mov rax, qword [rax]
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140004a60
nop
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, [rsp + 0x1d0]
call fcn.14000e17c
nop
lea rdx, str.user
lea rcx, [rsp + 0x1b0]
call fcn.14000eaac
nop
lea r8, [rsp + 0x190]
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x1d0]
call fcn.14000e7b4
test al, al
sete dil
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1b0]
call fcn.14000ec6c
test dil, dil
je 0x1400125c5
lea r9, str.Could_not_get__user__from_command_line._Task_might_not_start_properly.
mov edx, 0x40
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x250]
call fcn.140005bc0
xor eax, eax
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0xa0]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
movups xmm0, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x110], xmm0
movsd xmm1, qword [rsp + 0xb0]
movsd qword [rsp + 0x120], xmm1
xor eax, eax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x88]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x130], xmm0
movsd xmm1, qword [rsp + 0x98]
movsd qword [rsp + 0x140], xmm1
lea rcx, [rsp + 0x190]
call fcn.1400044e0
mov rdi, rax
cmp qword [rax + 0x18], r13
jb 0x140012674
mov rdi, qword [rax]
mov word [rsp + 0x70], si
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jns 0x14001268f
mov ecx, eax
call fcn.14000ff28
mov word [rsp + 0x70], r13w
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x1400126c6
test rdi, rdi
je 0x1400126c6
mov eax, 0xa
mov word [rsp + 0x70], ax
mov ecx, 0x8007000e
mov dword [rsp + 0x78], ecx
call fcn.14000ff28
nop
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x150], xmm0
movsd xmm1, qword [rsp + 0x80]
movsd qword [rsp + 0x160], xmm1
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x40], rdx
lea rdx, [rsp + 0x110]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], 3
lea rdx, [rsp + 0x130]
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 0x150]
mov qword [rsp + 0x20], rdx
mov r9d, 6
mov r8, qword [r14 + 0x10]
mov rdx, rbx
call qword [rax + MsiSetPropertyW]
mov edi, eax
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
lea rcx, [rsp + 0x88]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
lea rcx, [rsp + 0xa0]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
test edi, edi
jns 0x14001278e
lea rax, str.Could_not_register_task
mov qword [rsp + 0xd0], rax
lea rdx, [0x1402b4c40]
lea rcx, [rsp + 0xd0]
call fcn.1401c8064
xor eax, eax
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rax
lea rcx, [rsp + 0xb8]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
movups xmm0, xmmword [rsp + 0xb8]
movaps xmmword [rsp + 0x170], xmm0
movsd xmm1, qword [rsp + 0xc8]
movsd qword [rsp + 0x180], xmm1
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
xor r8d, r8d
lea rdx, [rsp + 0x170]
call qword [rax + 0x60]
mov edi, eax
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0xb8]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
test edi, edi
jns 0x14001282a
lea rax, str.Failed_to_Run_the_registered_task
mov qword [rsp + 0xd8], rax
lea rdx, [0x1402b4c40]
lea rcx, [rsp + 0xd8]
call fcn.1401c8064
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea rdx, [rsp + 0x54]
call qword [rax + reloc.msi.dll_MsiGetSourcePathW]
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x140012865
lea rax, str.Failed_to_get_the_state._Will_not_wait_for_app_to_return
mov qword [rsp + 0xe0], rax
lea rdx, [0x1402b4c40]
lea rcx, [rsp + 0xe0]
call fcn.1401c8064
mov rcx, qword [0x1402bc460]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov edi, eax
mov ecx, dword [rsp + 0x54]
cmp ecx, 4
je 0x14001290a
test r15b, r15b
je 0x1400128bf
mov rcx, qword [0x1402bc460]
mov rdx, qword [rcx]
call qword [rdx + 0x50]
sub eax, edi
cmp eax, 0x1388
jbe 0x1400128bf
lea rax, str.Timed_out_waiting_for_task_to_start._Will_not_wait_for_app_to_return
mov qword [rsp + 0xe8], rax
lea rdx, [0x1402b4c40]
lea rcx, [rsp + 0xe8]
call fcn.1401c8064
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea rdx, [rsp + 0x54]
call qword [rax + reloc.msi.dll_MsiGetSourcePathW]
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x140012905
lea rax, str.Failed_to_get_the_state._Will_not_wait_for_app_to_return
mov qword [rsp + 0xf0], rax
lea rdx, [0x1402b4c40]
lea rcx, [rsp + 0xf0]
call fcn.1401c8064
jmp 0x140012874
test r12b, r12b
je 0x140012960
cmp ecx, 4
jne 0x140012960
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea rdx, [rsp + 0x54]
call qword [rax + reloc.msi.dll_MsiGetSourcePathW]
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x14001295a
lea rax, str.Failed_to_get_the_state._Will_not_wait_for_app_to_return
mov qword [rsp + 0xf8], rax
lea rdx, [0x1402b4c40]
lea rcx, [rsp + 0xf8]
call fcn.1401c8064
mov ecx, dword [rsp + 0x54]
jmp 0x14001290f
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, rbx
call qword [rax + 0x78]
mov edi, eax
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x1d0]
call fcn.14000e6d4
nop
lea rcx, [rsp + 0x190]
call fcn.140004af0
nop
jmp 0x14001299d
movzx edi, di
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400129bb
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
lea rcx, [rsp + 0x250]
call fcn.140005870
mov eax, edi
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1401c44c0
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret