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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0x598]
sub rsp, 0x680
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov rbx, rcx
mov edi, 0x20a
mov r8d, edi
lea rcx, [rbp + 0x360]
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, edi
lea rcx, [rsp + 0x40]
xor edx, edx
call sub.msvcrt.dll_memset
xor edx, edx
lea r8d, [rdi - 2]
lea rcx, [rbp + 0x150]
call sub.msvcrt.dll_memset
xor r14d, r14d
mov dword [rsp + 0x30], edi
test rbx, rbx
je 0x14006f8a5
lea r9d, [r14 + 1]
mov word [rbx], r14w
mov r8d, r9d
lea rdx, str.SoftwareMicrosoftFaxSetup
mov rcx, 0xffffffff80000001
call fcn.14006abdc
mov rdi, rax
test rax, rax
je 0x14006f8a5
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov rcx, rdi
lea rdx, str.CoverPageDir
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, rdi
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov r12d, 0x105
test esi, esi
je 0x14006f73a
cmp esi, 2
jne 0x14006f8a5
lea rdi, str.FaxPersonal_Coverpages_
jmp 0x14006f7ac
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x14006f8a5
mov rcx, r12
lea rax, [rsp + 0x40]
cmp word [rax], r14w
je 0x14006f761
add rax, 2
sub rcx, 1
jne 0x14006f751
test rcx, rcx
je 0x14006f76e
mov rdx, r12
sub rdx, rcx
jmp 0x14006f771
mov rdx, r14
mov rax, rcx
lea rdi, [rsp + 0x40]
neg rax
sbb r8, r8
and r8, rdx
test rcx, rcx
je 0x14006f7ac
cmp word [rsp + r8*2 + 0x3e], 0x5c
je 0x14006f7ac
lea r8, [0x14008ad68]
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.14000a7d8
test eax, eax
js 0x14006f896
mov r8d, r12d
lea rdx, [rbp + 0x360]
mov ecx, 5
call fcn.14006f4e8
test eax, eax
jne 0x14006f7e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
lea rcx, str.GetSpecialPath_failed_err_ld
call fcn.14006d458
jmp 0x14006f8a5
mov esi, 0x104
lea r8, [rbp + 0x360]
mov edx, esi
mov rcx, rbx
call fcn.140002b44
test eax, eax
js 0x14006f896
cmp word [rdi], 0x5c
je 0x14006f81c
lea r8, [0x14008ad68]
mov edx, esi
mov rcx, rbx
call fcn.14000a7d8
test eax, eax
js 0x14006f896
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.14000a7d8
test eax, eax
js 0x14006f896
lea rax, [rbp + 0x150]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, str.FaxPersonal_CoverPages
mov edx, 0x8005
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
nop dword [rax + rax]
test eax, eax
js 0x14006f896
mov r8d, 0x93d
lea rdx, str._SystemRoot__system32_fxsresm.dll
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHELL32.dll_SHSetLocalizedName]
nop dword [rax + rax]
test eax, eax
js 0x14006f896
mov rcx, rbx
call fcn.140067f80
mov eax, 1
jmp 0x14006f8a7
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.14007e560
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret