Function at 0x1400af364
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov sil, dl
mov rbx, rcx
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
or r13, 0xffffffffffffffff
mov dword [rsp + 0x40], 0x20a
mov edi, 1
test rbx, rbx
jne 0x1400af432
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 0x208
mov qword [rsp + 0x30], rax
lea r9d, [rdi + 1]
lea rax, [rbp + 0x170]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea r8, str.PackageFolder
and qword [rsp + 0x20], rbx
lea rdx, str.SoftwareMicrosoftOffice16.0ClickToRun
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1400af40f
xor eax, eax
jmp 0x1400af644
mov r9, r13
lea r8, str._rootoffice16_visio.exe
mov edx, 0x104
lea rcx, [rbp + 0x170]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea rbx, [rbp + 0x170]
lea rax, [rsp + 0x48]
neg sil
lea rdx, [0x1401ae758]
mov qword [rsp + 0x20], rax
sbb r9d, r9d
mov rcx, 0xffffffff80000000
and r9d, 0x200
xor r8d, r8d
or r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400af408
mov rcx, qword [rsp + 0x48]
lea rsi, str.Visio.Drawing.15
mov rdx, rsi
mov r8, rbx
call fcn.1400afbfc
test eax, eax
jne 0x1400af637
mov rcx, qword [rsp + 0x48]
lea rdx, str.Visio.Drawing.11
mov r8, rbx
call fcn.1400afbfc
test eax, eax
jne 0x1400af637
mov rcx, qword [rsp + 0x48]
lea r9, [0x1401ae738]
mov r8, rbx
mov rdx, rsi
call fcn.1400afd40
test eax, eax
jne 0x1400af637
mov rcx, qword [rsp + 0x48]
lea r9, [0x1401ae748]
mov r8, rbx
lea rdx, str.Visio.Drawing.11
call fcn.1400afd40
test eax, eax
jne 0x1400af637
mov rcx, qword [rsp + 0x48]
lea rdx, [0x1401ae738]
call fcn.1400afaa4
test eax, eax
jne 0x1400af637
mov rcx, qword [rsp + 0x48]
lea rdx, [0x1401ae738]
call fcn.1400afb20
test eax, eax
jne 0x1400af637
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x40], 0x20a
lea rdx, str..vsdx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x1400af637
mov ebx, 0x105
lea rcx, [rsp + 0x60]
mov r8d, ebx
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x1400af637
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x40], 0x20a
lea rdx, str..vsd
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x1400af637
mov r8d, ebx
lea rdx, str.Visio.Drawing.11
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x1400af637
mov r9, r13
lea r8, str.Visio.Drawing
mov edx, ebx
lea rcx, [rbp + 0x380]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov r9, r13
lea r8, [0x1401754a4]
mov edx, ebx
lea rcx, [rbp + 0x380]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov r9, r13
lea r8, str.CurVer
mov edx, ebx
lea rcx, [rbp + 0x380]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x40], 0x20a
lea rdx, [rbp + 0x380]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x1400af637
mov r8d, ebx
lea rcx, [rsp + 0x60]
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
neg eax
sbb ecx, ecx
and edi, ecx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.140021f10
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop rdi
pop rbp
ret