Function at 0x14006d0cc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor esi, esi
mov dword [rbp + 0x58], 3
and qword [rbp - 0x20], rsi
mov r15, r8
and dword [rbp + 0x40], esi
mov r14, rdx
mov r13, rcx
test rcx, rcx
je 0x14006d44b
test rdx, rdx
je 0x14006d44b
test r8, r8
je 0x14006d44b
lea rcx, [rbp - 0x18]
call fcn.14000b800
mov ecx, 0x2001f
call sym.spoolsv.exe_PrvSplGetClientUserHandle
lea rdi, str._S_v_
mov r12, rax
test rax, rax
jne 0x14006d14c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14006d3c4
mov rdi, qword [r13 + 0x48]
test rdi, rdi
je 0x14006d3a9
cmp word [rdi], 0x5c
jne 0x14006d3a9
cmp word [rdi + 2], 0x5c
jne 0x14006d3a9
lea r8, [rbp - 0x20]
mov rdx, rdi
mov rcx, r12
call fcn.140008c20
mov ebx, eax
test eax, eax
jne 0x14006d2ae
mov rcx, qword [rbp - 0x20]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x58]
and qword [rsp + 0x20], rsi
lea rdx, str.DefaultDevMode
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14006d2cc
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
and qword [rbp - 0x20], rsi
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.14006d5c4
test eax, eax
jne 0x14006d2a9
mov rcx, qword [str._S_v_]
lea rdi, str._S_v_
cmp rcx, rdi
je 0x14006d236
test byte [rcx + 0x44], 0x80
je 0x14006d216
mov rcx, qword [rcx + 0x38]
lea edx, [rbx + 0x10]
lea r8, [0x14009b440]
call fcn.14002decc
mov rcx, qword [str._S_v_]
cmp rcx, rdi
je 0x14006d236
test byte [rcx + 0x44], 0x80
je 0x14006d236
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009b440]
mov edx, 0x11
call fcn.14002decc
mov rcx, qword [rbp - 0x20]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x58]
and qword [rsp + 0x20], rsi
lea rdx, str.DefaultDevMode
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
mov rax, qword [str._S_v_]
cmp rax, rdi
je 0x14006d2a5
test byte [rax + 0x44], 0x80
je 0x14006d2a5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._S_v_]
lea r8, [0x14009b440]
mov edx, 0x12
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov rcx, qword [rcx + 0x38]
call fcn.140034f14
test ebx, ebx
je 0x14006d2d3
mov ebx, 0xd
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14006d3ae
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x14006d3ae
lea rdi, str._S_v_
cmp dword [rbp + 0x58], 3
jne 0x14006d2a9
mov ecx, dword [rbp + 0x40]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [r14], rax
test rax, rax
jne 0x14006d2f9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14006d2ae
lea rcx, [rbp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rbp + 0x58]
mov rcx, qword [rbp - 0x20]
lea rdx, str.DefaultDevMode
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
mov rax, qword [str._S_v_]
cmp rax, rdi
je 0x14006d368
test byte [rax + 0x44], 0x80
je 0x14006d368
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._S_v_]
lea r8, [0x14009b440]
mov edx, 0x13
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov rcx, qword [rcx + 0x38]
call fcn.140034f14
mov eax, dword [rbp + 0x40]
add eax, 3
and eax, 0xfffffffc
mov dword [r15], eax
test ebx, ebx
jne 0x14006d380
lea esi, [rbx + 1]
jmp 0x14006d2ae
mov r8, qword [r14]
test r8, r8
je 0x14006d2ae
mov rcx, qword [0x1400b7290]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
and qword [r14], rsi
jmp 0x14006d2ae
mov ebx, 0x709
mov rcx, r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
lea rdi, str._S_v_
test ebx, ebx
je 0x14006d440
mov rcx, qword [str._S_v_]
cmp rcx, rdi
je 0x14006d3ef
test byte [rcx + 0x44], 0x80
je 0x14006d3ef
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009b440]
mov edx, 0x14
call fcn.14002decc
mov r8, r15
mov rdx, r14
mov rcx, r13
call fcn.14006d480
mov esi, eax
mov rcx, qword [str._S_v_]
cmp rcx, rdi
je 0x14006d440
test byte [rcx + 0x44], 0x80
je 0x14006d440
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._S_v_]
lea r8, [0x14009b440]
mov edx, 0x15
mov dword [rsp + 0x20], eax
mov r9d, esi
mov rcx, qword [rcx + 0x38]
call fcn.140034f14
lea rcx, [rbp - 0x18]
call fcn.14000b6a0
jmp 0x14006d45c
mov ecx, 0x57
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x98]
mov eax, esi
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret