Function at 0x14007b780
Capabilities:
Check if file exists
Get file attributes
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rsi, rdx
mov rdi, rcx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rax
xor r14d, r14d
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x64], 0x104
mov word [rsp + 0x68], r14w
lea rax, [0x1401b6698]
mov qword [rsp + 0x50], rax
mov qword [rbp + 0x1a0], r14
lea r8, str.Create_uninstall_req
lea rdx, str.Install
lea rcx, [0x1402284e0]
call fcn.140091190
mov r8, qword [rdi + 0xa8]
add r8, 0x6ac
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
lea rcx, [rsp + 0x50]
call fcn.140003670
mov rax, qword [rdi + 0xa8]
mov ecx, 0x20106
mov edx, 0x20206
cmp dword [rax + 4], 2
cmovne ecx, edx
lea rax, [rbp + 0x190]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14007b870
xor al, al
jmp 0x14007bc5b
mov rcx, qword [rdi + 0xa8]
mov rbx, 0xffffffffffffffff
add rcx, 0x94
je 0x14007b89c
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14007b890
jmp 0x14007b89f
mov eax, r14d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.DisplayName
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rdi + 0xa8]
add rcx, 0x29c
je 0x14007b8ec
mov rax, rbx
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x14007b8e0
jmp 0x14007b8ef
mov eax, r14d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.InstallLocation
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r8, qword [rdi + 0xa8]
add r8, 0x29c
lea rdx, str._s_terminal.ico
lea rcx, [rsp + 0x50]
call fcn.140003670
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14007b971
mov r8, qword [rdi + 0xa8]
lea r9, [r8 + 0x4a4]
add r8, 0x29c
lea rdx, [0x1401bff50]
lea rcx, [rsp + 0x50]
call fcn.140003670
mov eax, dword [rsp + 0x60]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.DisplayIcon
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x28], 0x20
lea rax, [0x1401b5f50]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Publisher
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x28], 0x36
lea r14, [0x1401c5118]
mov qword [rsp + 0x20], r14
mov r9d, 1
xor r8d, r8d
lea rdx, str.HelpLink
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x28], 0x36
mov qword [rsp + 0x20], r14
mov r9d, 1
xor r8d, r8d
lea rdx, str.UrlInfoAbout
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [rsi + 0x10]
lea ecx, [rax*2 + 2]
mov rax, qword [rsi + 8]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.UninstallString
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rax, qword [rdi + 0xa8]
cmp dword [rax + 8], 9
mov rax, rbx
jae 0x14007bb13
lea rcx, str.5.00
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14007ba82
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.DisplayVersion
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [0x1401c51d8]
mov rax, rbx
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14007bac4
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.MajorVersion
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rax, [0x1401c51fc]
lea rbx, [rbx + 1]
cmp word [rax + rbx*2], 0
jne 0x14007bb03
jmp 0x14007bbac
lea rcx, str.4.00
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14007bb20
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.DisplayVersion
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [0x1401c522c]
mov rax, rbx
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14007bb62
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.MajorVersion
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rax, [0x1401c51fc]
lea rbx, [rbx + 1]
cmp word [rax + rbx*2], 0
jne 0x14007bba1
lea ebx, [rbx*2 + 2]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1401c5200]
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rdi + 0x5c18], 1
jb 0x14007bc3e
mov rax, qword [rdi + 0x5c10]
test rax, rax
je 0x14007bc3e
cmp word [rax], 0
je 0x14007bc3e
mov r8, rax
lea rdx, [0x1401c5230]
lea rcx, [rsp + 0x50]
call fcn.140003670
mov r8, qword [rsi + 8]
mov rdx, qword [rdi + 0xa8]
add rdx, 0x29c
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x30], r8
mov r9, qword [rsp + 0x58]
call fcn.140092fd0
lea r8, str.Create_uninstall_req_done
lea rdx, str.Install
lea rcx, [0x1402284e0]
call fcn.140091190
nop
mov al, 1
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret