Function at 0x140012d2c
Capabilities:
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 r14
push r15
lea rbp, [rax - 0x598]
sub rsp, 0x680
mov rax, qword [0x1400a48d0]
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 + reloc.MFC42u.dll_CDocObjectServerItem::CDocObjectServerItem]
call sub.msvcrt.dll_memset
xor r14d, r14d
mov dword [rsp + 0x30], edi
test rbx, rbx
je 0x140012f9a
lea r9d, [r14 + 1]
mov word [rbx], r14w
mov r8d, r9d
lea rdx, str.SoftwareMicrosoftFaxSetup
mov rcx, 0xffffffff80000001
call fcn.14000fba8
mov rdi, rax
test rax, rax
je 0x140012f9a
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 r15d, 0x105
test esi, esi
je 0x140012e32
cmp esi, 2
jne 0x140012f9a
lea rdi, str.FaxPersonal_Coverpages_
jmp 0x140012ea4
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140012f9a
mov rcx, r15
lea rax, [rsp + 0x40]
cmp word [rax], r14w
je 0x140012e59
add rax, 2
sub rcx, 1
jne 0x140012e49
test rcx, rcx
je 0x140012e66
mov rdx, r15
sub rdx, rcx
jmp 0x140012e69
mov rdx, r14
mov rax, rcx
lea rdi, [rsp + 0x40]
neg rax
sbb r8, r8
and r8, rdx
test rcx, rcx
je 0x140012ea4
cmp word [rsp + r8*2 + 0x3e], 0x5c
je 0x140012ea4
lea r8, [0x140084848]
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.14000e950
test eax, eax
js 0x140012f8b
mov r8d, r15d
lea rdx, [rbp + 0x360]
mov ecx, 5
call fcn.140012be0
test eax, eax
jne 0x140012edb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
lea rcx, str.GetSpecialPath_failed_err_ld
call fcn.1400129d0
jmp 0x140012f9a
lea r8, [rbp + 0x360]
mov rdx, r15
mov rcx, rbx
call fcn.14000e8c4
test eax, eax
js 0x140012f8b
cmp word [rdi], 0x5c
je 0x140012f11
lea r8, [0x140084848]
mov rdx, r15
mov rcx, rbx
call fcn.14000e950
test eax, eax
js 0x140012f8b
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call fcn.14000e950
test eax, eax
js 0x140012f8b
lea rax, [rbp + reloc.MFC42u.dll_CDocObjectServerItem::CDocObjectServerItem]
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 0x140012f8b
mov r8d, 0x93d
lea rdx, str._SystemRoot__system32_fxsresm.dll
lea rcx, [rbp + reloc.MFC42u.dll_CDocObjectServerItem::CDocObjectServerItem]
call qword [sym.imp.SHELL32.dll_SHSetLocalizedName]
nop dword [rax + rax]
test eax, eax
js 0x140012f8b
mov rcx, rbx
call fcn.140012040
mov eax, 1
jmp 0x140012f9c
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.14006e550
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret