Function at 0x140009120
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x3d8]
sub rsp, 0x4c0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov rdi, rcx
mov qword [rbp - 0x80], rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], 7
mov word [rcx], r14w
mov dword [rsp + 0x30], 1
movdqa xmm0, xmmword [0x140369280]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r14w
xor r8d, r8d
lea rdx, [0x140365718]
lea rcx, [rsp + 0x58]
call fcn.140003740
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.1400055f0
mov rsi, rax
mov dword [rsp + 0x30], 3
mov qword [rbp - 0x78], r14
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
lea rdx, str.SOFTWAREMacriumCommonSharedFolders
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea rbx, [r14 - 1]
test eax, eax
jne 0x140009263
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.140268ee0
mov dword [rbp - 0x70], 0x104
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Common
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140009259
lea rax, [rbp - 0x60]
mov r8, rbx
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140009240
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x38]
call fcn.140003740
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, rdi
call fcn.14000ad60
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1400092b8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400092b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400093d3
call fcn.140004a20
movdqa xmm0, xmmword [0x140369280]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r14w
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14000930e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009309
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400093cd
call fcn.140004a20
cmp qword [rdi + 0x10], 0
jne 0x14000937a
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp - 0x60]
call fcn.140268ee0
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rax, [rbp - 0x60]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140009345
mov r8, rbx
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.140003740
cmp qword [rdi + 0x10], 0
je 0x14000937a
mov r8d, sendto
lea rdx, str.MacriumCommon_
mov rcx, rdi
call fcn.1400056e0
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140009387
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400093a3
xor r8d, r8d
lea rdx, [0x140365718]
mov rcx, rdi
call fcn.140003740
mov rax, rdi
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.140263a60
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14026bb04
nop
call fcn.14026bb04
int3