Function at 0x140006790
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xeb0]
sub rsp, 0xfb0
mov rax, qword [0x140057130]
xor rax, rsp
mov qword [rbp + 0xea0], rax
mov rdi, rcx
mov qword [0x140058e80], rcx
lea rcx, [rbp - 0x80]
call fcn.140006ad0
cmp dword [rbp - 0x80], 0
je 0x1400067dd
lea rcx, [rbp - 0x80]
call fcn.140008010
jmp 0x140006aa4
lea rcx, [rsp + 0x48]
call fcn.140006b40
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.140007c40
test al, al
je 0x140006a9a
mov qword [rsp + 0xfc8], rbx
call qword [0x140059158]
cmp dword [rbp - 0x70], 1
mov ebx, eax
jne 0x140006899
test eax, eax
je 0x14000684f
call fcn.140010320
lea r9, str.wiz97.cpp
lea r8, str.WinMain
mov rcx, rax
lea rax, str.wizard_trying_to_autostart_nView__but_nView_already_enabled____
mov edx, 1
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2e
call fcn.140010a60
cmp byte [rbp - 0x68], 0
je 0x140006861
lea rcx, [rsp + 0x48]
call fcn.1400071f0
jmp 0x140006899
cmp dword [rbp - 0x6c], 0
je 0x140006873
lea rcx, [rsp + 0x48]
call fcn.140007a10
jmp 0x140006899
cmp byte [rbp - 0x67], 0
jne 0x140006885
cmp byte [rbp - 0x65], 0
jne 0x140006885
cmp byte [rbp - 0x66], 0
je 0x140006899
mov edx, dword [rbp + 0x1a4]
lea rcx, [rbp - 0x64]
bts edx, 0xa
call qword [0x140059128]
cmp dword [rbp - 0x74], 0
je 0x1400068ae
lea rcx, [rsp + 0x48]
call fcn.140007150
jmp 0x140006a92
cmp dword [rbp - 0x70], 2
jne 0x140006980
test ebx, ebx
jne 0x1400068ee
call fcn.140010320
lea r9, str.wiz97.cpp
lea r8, str.WinMain
mov rcx, rax
lea rax, str.wizard_expects_nView_to_be_enabled
lea edx, [rbx + 1]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x4f
call fcn.140010a60
xor eax, eax
lea rcx, [rsp + 0x50]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x54], rax
mov qword [rsp + 0x5c], rax
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x6c], rax
call fcn.140006580
lea r8, [rsp + 0x50]
lea rcx, [rbp + 0x5c0]
mov rdx, rdi
mov dword [rbp + 0x5c0], 0xffffffff
mov qword [rbp + 0xc88], rbx
mov dword [rbp + 0xc84], ebx
call fcn.140001fe0
cmp dword [rbp + 0xc80], ebx
je 0x140006969
cmp dword [rbp + 0xc84], ebx
jne 0x140006969
cmp dword [rbp + 0xc88], ebx
je 0x1400069d2
lea rcx, str.nvwiztmp
mov edx, 0xc00
call qword [0x140059128]
cmp dword [rbp + 0xc88], ebx
je 0x1400069d2
lea rcx, str.nvwiztmp
call qword [0x140059148]
jmp 0x1400069d2
xor ebx, ebx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
cmp dword [rbp - 0x7c], ebx
je 0x14000699d
mov dword [rsp + 0x40], 1
lea ecx, [rbx + 2]
jmp 0x1400069a2
mov ecx, 1
call qword [0x140059188]
cmp dword [rsp + 0x40], ebx
je 0x1400069be
call qword [0x140059158]
test eax, eax
je 0x1400069c8
cmp dword [rsp + 0x40], ebx
jne 0x1400069d2
call qword [0x140059158]
test eax, eax
je 0x1400069d2
mov ecx, dword [rsp + 0x40]
call qword [0x140059160]
cmp dword [rbp + 0x1ac], 0
je 0x140006a82
lea rcx, [rbp + 0xc92]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0xc90], bx
call fcn.1400150f0
lea rcx, [rbp + 0xc90]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [rbp + 0xc90]
lea r9, [rbp + 0x3b8]
lea r8, [rbp + 0x1b0]
lea rdx, str.open
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x21
jae 0x140006a82
lea rcx, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x9fd
call fcn.14000b140
mov qword [rsp + 0x30], rbx
lea r8, [rbp + 0x1b0]
mov r9, qword [rax + 8]
lea rcx, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call fcn.14000aea0
lea rcx, [rsp + 0x50]
call fcn.14000b700
cmp byte [rbp - 0x66], 0
je 0x140006a92
lea rcx, [rsp + 0x48]
call fcn.1400071d0
mov rbx, qword [rsp + 0xfc8]
lea rcx, [rsp + 0x48]
call fcn.140006b70
xor eax, eax
mov rcx, qword [rbp + 0xea0]
xor rcx, rsp
call fcn.1400150c0
mov rdi, qword [rsp + 0xfd0]
add rsp, 0xfb0
pop rbp
ret