Function at 0x140023560
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x7d0]
sub rsp, 0x8d0
mov rax, qword [0x14014dcf0]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
xor ebx, ebx
mov dword [rsp + 0x48], 0x400
mov qword [rsp + 0x78], 7
cmp dword [0x140196f48], ebx
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
jne 0x140023605
mov rcx, qword [0x140148300]
cmp rcx, 0xffffffffffffffff
je 0x14002362a
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x222064
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400238e4
mov dword [0x140196f48], 1
cmp qword [rsp + 0x78], 8
jb 0x140023605
mov rcx, qword [rsp + 0x60]
call fcn.1400a58b8
mov eax, 1
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.1400a4e70
mov rbx, qword [rsp + 0x8e8]
add rsp, 0x8d0
pop rbp
ret
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea rcx, str..VeraCrypt
lea r8d, [r9 + 3]
xor edx, edx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1400236ee
lea rcx, [rbp - 0x4e]
xor edx, edx
mov r8d, 0x40e
mov word [rbp - 0x50], bx
call fcn.1400a4ea0
lea rdx, [rbp - 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rdx
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400235f3
lea r8, str.VeraCrypt_
lea rcx, [rbp - 0x50]
mov edx, 0x208
call fcn.1400012f0
lea r8, str.System_Encryption.xml
lea rcx, [rbp - 0x50]
mov edx, 0x208
call fcn.1400012f0
lea rcx, [rbp - 0x50]
call fcn.14001c430
test eax, eax
je 0x1400235f3
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x1400238e4
call fcn.14001ed90
test eax, eax
jne 0x1400235f3
jmp 0x1400238e4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov r9d, 0x201
mov qword [rsp + 0x20], rdx
lea rdx, str.SoftwareVeraCrypt_MSI
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140023751
lea rax, [rsp + 0x40]
lea rdx, str.SoftwareVeraCrypt_MSI
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002387d
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
lea rdx, str.ProductGuid
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3c0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140023872
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x8e0], rdi
xor eax, eax
lea rdi, [rbp + 0x3c0]
lea rdx, [rbp + 0x3c0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x60]
call fcn.140006260
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea rcx, [rbp - 0x78]
mov r8d, 0x34
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rbx
mov word [rbp - 0x78], bx
call fcn.140006260
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x78]
or r9, 0xffffffffffffffff
xor r8d, r8d
call fcn.14000b720
cmp qword [rbp - 0x60], 8
lea rax, [rsp + 0x50]
lea rdx, [rbp - 0x78]
mov r9d, 0x20219
mov rcx, 0xffffffff80000002
cmovae rdx, qword [rbp - 0x78]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rdi, qword [rsp + 0x8e0]
test eax, eax
je 0x1400238b9
cmp qword [rbp - 0x60], 8
lea rax, [rsp + 0x50]
lea rdx, [rbp - 0x78]
cmovae rdx, qword [rbp - 0x78]
mov r9d, 0x20019
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400238b9
cmp qword [rbp - 0x60], 8
jb 0x140023872
mov rcx, qword [rbp - 0x78]
call fcn.1400a58b8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x40]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstallVeraCrypt
mov r9d, 0x20219
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400235f3
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400238e4
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbp - 0x60], 8
jb 0x1400238d4
mov rcx, qword [rbp - 0x78]
call fcn.1400a58b8
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rbx
mov word [rbp - 0x78], bx
cmp qword [rsp + 0x78], 8
jb 0x1400238f6
mov rcx, qword [rsp + 0x60]
call fcn.1400a58b8
xor eax, eax
jmp 0x14002360a