Function at 0x14007ce60
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, [0x1401b7690]
mov qword [rsp + 0x50], rax
mov qword [rbp + 0x1a0], r14
lea r8, str.Create_uninstall_req
lea rdx, str.Install
lea rcx, [0x140229810]
call fcn.140092000
mov r8, qword [rdi + 0xa8]
add r8, 0x6ac
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
lea rcx, [rsp + 0x50]
call fcn.1400038c0
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 0x14007cf50
xor al, al
jmp 0x14007d33b
mov rcx, qword [rdi + 0xa8]
mov rbx, 0xffffffffffffffff
add rcx, 0x94
je 0x14007cf7c
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14007cf70
jmp 0x14007cf7f
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 0x14007cfcc
mov rax, rbx
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x14007cfc0
jmp 0x14007cfcf
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.1400038c0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14007d051
mov r8, qword [rdi + 0xa8]
lea r9, [r8 + 0x4a4]
add r8, 0x29c
lea rdx, [0x1401c0df0]
lea rcx, [rsp + 0x50]
call fcn.1400038c0
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, [0x1401b6f50]
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, [0x1401c6268]
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 0x14007d1f3
lea rcx, str.5.00
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14007d162
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, [0x1401c6328]
mov rax, rbx
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14007d1a4
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, [0x1401c634c]
lea rbx, [rbx + 1]
cmp word [rax + rbx*2], 0
jne 0x14007d1e3
jmp 0x14007d28c
lea rcx, str.4.00
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14007d200
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, [0x1401c637c]
mov rax, rbx
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14007d242
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, [0x1401c634c]
lea rbx, [rbx + 1]
cmp word [rax + rbx*2], 0
jne 0x14007d281
lea ebx, [rbx*2 + 2]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1401c6350]
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 + 0x5c98], 1
jb 0x14007d31e
mov rax, qword [rdi + 0x5c90]
test rax, rax
je 0x14007d31e
cmp word [rax], 0
je 0x14007d31e
mov r8, rax
lea rdx, [0x1401c6380]
lea rcx, [rsp + 0x50]
call fcn.1400038c0
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.140093ec0
lea r8, str.Create_uninstall_req_done
lea rdx, str.Install
lea rcx, [0x140229810]
call fcn.140092000
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