Function at 0x469de0
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 r12
push r13
push r14
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov r8, qword [rcx + 0xa8]
lea rax, [rsp + 0x68]
xor ebx, ebx
mov qword [rsp + 0x58], rax
lea rax, [0x0048d7e0]
mov dword [rsp + 0x60], ebx
mov r14, rdx
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov dword [rsp + 0x64], 0x104
add r8, 0x6ac
mov word [rsp + 0x68], bx
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
mov qword [rbp + 0x1b0], rbx
lea rcx, [rsp + 0x50]
call fcn.004012e8
mov rax, qword [rsi + 0xa8]
mov ecx, 0x20106
mov edx, 0x20206
cmp dword [rax + 4], 2
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x1b0]
cmovne ecx, edx
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], ecx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x46a243
mov rcx, qword [rsi + 0xa8]
or rdi, 0xffffffffffffffff
add rcx, 0x94
je 0x469ed5
mov rax, rdi
inc rax
cmp word [rcx + rax*2], bx
jne 0x469eca
jmp 0x469ed7
mov eax, ebx
lea eax, [rax*2 + 2]
mov r13d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.DisplayName
mov qword [rsp + 0x20], rcx
mov r9d, r13d
mov rcx, qword [rbp + 0x1b0]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsi + 0xa8]
add rcx, 0x29c
je 0x469f25
mov rax, rdi
inc rax
cmp word [rcx + rax*2], bx
jne 0x469f1a
jmp 0x469f27
mov eax, ebx
lea eax, [rax*2 + 2]
mov r9d, r13d
mov dword [rsp + 0x28], eax
lea rdx, str.InstallLocation
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rbp + 0x1b0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r8, qword [rsi + 0xa8]
lea rdx, str._s_terminal.ico
add r8, 0x29c
lea rcx, [rsp + 0x50]
call fcn.004012e8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x469fa6
mov r8, qword [rsi + 0xa8]
lea rdx, [0x00491de8]
lea rcx, [rsp + 0x50]
lea r9, [r8 + 0x4a4]
add r8, 0x29c
call fcn.004012e8
mov eax, dword [rsp + 0x60]
lea rdx, str.DisplayIcon
mov rcx, qword [rbp + 0x1b0]
mov r9d, r13d
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x1b0]
lea rax, [0x0048d058]
mov dword [rsp + 0x28], 0x20
lea rdx, str.Publisher
mov r9d, r13d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x1b0]
lea r12, [0x00497858]
mov r9d, r13d
mov dword [rsp + 0x28], 0x36
xor r8d, r8d
mov qword [rsp + 0x20], r12
lea rdx, str.HelpLink
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x1b0]
lea rdx, str.UrlInfoAbout
mov r9d, r13d
mov dword [rsp + 0x28], 0x36
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [r14 + 0x10]
lea rdx, str.UninstallString
mov rcx, qword [rbp + 0x1b0]
mov r9d, r13d
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [r14 + 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rax, qword [rsi + 0xa8]
cmp dword [rax + 8], 9
mov rax, rdi
jae 0x46a12e
lea rcx, str.5.00
inc rax
cmp word [rcx + rax*2], bx
jne 0x46a0a9
lea eax, [rax*2 + 2]
mov r9d, r13d
mov dword [rsp + 0x28], eax
lea rdx, str.DisplayVersion
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rbp + 0x1b0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [0x00497918]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], bx
jne 0x46a0e6
lea eax, [rax*2 + 2]
mov r9d, r13d
mov dword [rsp + 0x28], eax
lea rdx, str.MajorVersion
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rbp + 0x1b0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [0x0049793c]
inc rdi
cmp word [rcx + rdi*2], bx
jne 0x46a120
jmp 0x46a1b5
lea rcx, str.4.00
inc rax
cmp word [rcx + rax*2], bx
jne 0x46a135
lea eax, [rax*2 + 2]
mov r9d, r13d
mov dword [rsp + 0x28], eax
lea rdx, str.DisplayVersion
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rbp + 0x1b0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [0x0049796c]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], bx
jne 0x46a172
lea eax, [rax*2 + 2]
mov r9d, r13d
mov dword [rsp + 0x28], eax
lea rdx, str.MajorVersion
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rbp + 0x1b0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [0x0049793c]
inc rdi
cmp word [rcx + rdi*2], bx
jne 0x46a1ac
lea eax, [rdi*2 + 2]
mov r9d, r13d
mov dword [rsp + 0x28], eax
lea rdx, [0x00497940]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rbp + 0x1b0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x1b0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsi + 0x8290], r13d
jb 0x46a240
mov rax, qword [rsi + 0x8288]
test rax, rax
je 0x46a240
cmp word [rax], bx
je 0x46a240
mov r8, rax
lea rdx, [0x00497970]
lea rcx, [rsp + 0x50]
call fcn.004012e8
mov rdx, qword [rsi + 0xa8]
mov r8, qword [r14 + 8]
add rdx, 0x29c
mov r9, qword [rsp + 0x58]
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r8
call fcn.0046165c
mov bl, r13b
lea r11, [rsp + 0x270]
mov al, bl
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret