Function at 0x140006c00
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
push r14
sub rsp, 0x58
xor r14d, r14d
mov dword [rax + 0x10], 4
mov qword [rax + 0x18], r14
mov rdi, rcx
mov dword [rax + 8], r14d
mov esi, r14d
test rcx, rcx
jne 0x1400128d6
mov eax, 0x709
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx ebx, word [rcx]
test bx, bx
je 0x140006c2d
mov r10d, r14d
mov eax, r14d
mov r8, rdi
nop
mov r11d, eax
cmp eax, r9d
ja 0x140006c2d
movzx edx, word [r8]
cmp dx, 0x2c
je 0x140006c2d
cmp dx, 0x5c
lea ecx, [r10 + 1]
cmovne ecx, r10d
add r8, 2
inc eax
mov r10d, ecx
cmp word [r8], si
jne 0x140006c50
cmp eax, r9d
ja 0x140006c2d
test ecx, ecx
je 0x14001290b
cmp ecx, 3
jne 0x140006c2d
jmp 0x1400128e2
inc r9
cmp word [rcx + r9*2], si
jne 0x140006c94
jmp 0x140006c3d
cmp rcx, rbp
jne 0x140012bbb
mov rcx, qword [rsp + 0x90]
test rcx, rcx
jne 0x140012be0
mov eax, ebx
mov rbp, qword [rsp + 0x50]
jmp 0x140006c32
mov r9, 0xffffffffffffffff
jmp 0x140006c94
cmp bx, 0x5c
jne 0x140006c2d
cmp word [rdi + 2], bx
jne 0x140006c2d
cmp word [rdi + 4], bx
je 0x140006c2d
cmp word [rdi + r11*2], bx
je 0x140006c2d
mov qword [rsp + 0x50], rbp
mov rcx, qword [0x1400c72a8]
lea rbp, [0x1400c72a8]
cmp rcx, rbp
je 0x140012978
test byte [rcx + 0x1c], 4
je 0x14001294d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aaab8]
mov edx, 0x23
call fcn.1400162ec
mov rcx, qword [0x1400c72a8]
mov rsi, qword [rsp + 0x90]
cmp rcx, rbp
je 0x140012978
test byte [rcx + 0x1c], 4
je 0x140012978
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aaab8]
mov edx, 0x24
mov r9, rdi
call fcn.140031e7c
mov rsi, qword [rsp + 0x90]
test rsi, rsi
je 0x1400129a8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
lea rdx, str.PrintersConvertUserDevModesCount
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x90], r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140012b7d
mov rcx, qword [rsp + 0x90]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x80]
xor r8d, r8d
mov rdx, rdi
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 rcx, qword [0x1400c72a8]
cmp rcx, rbp
je 0x140012a71
test byte [rcx + 0x1c], 4
je 0x140012a71
mov r9d, dword [rsp + 0x80]
lea r8, [0x1400aaab8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x25
mov dword [rsp + 0x20], eax
call fcn.14001e6fc
mov rcx, qword [0x1400c72a8]
test ebx, ebx
jne 0x140012abd
cmp dword [rsp + 0x80], 1
jb 0x140012abd
cmp rcx, rbp
je 0x140012a9d
test byte [rcx + 0x1c], 4
je 0x140012a9d
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x26]
lea r8, [0x1400aaab8]
call fcn.1400162ec
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x140012ab6
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
xor eax, eax
jmp 0x140006cbc
mov esi, 1
mov rdx, rdi
mov ecx, esi
call fcn.140089ad8
mov rdx, rdi
lea ecx, [rsi + 1]
mov ebx, eax
call fcn.140089ad8
test ebx, 0xfffffffd
jne 0x140012b0f
test eax, 0xfffffffd
jne 0x140012b0f
mov rcx, qword [0x1400c72a8]
cmp rcx, rbp
je 0x140012b3f
test byte [rcx + 0x1c], 4
je 0x140012b3f
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x26]
lea r8, [0x1400aaab8]
call fcn.1400162ec
jmp 0x140012b3f
mov rcx, qword [0x1400c72a8]
cmp rcx, rbp
je 0x140012b36
test byte [rcx + 0x1c], 4
je 0x140012b36
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aaab8]
mov edx, 0x28
call fcn.1400162ec
mov esi, dword [rsp + 0x80]
inc esi
mov rcx, qword [rsp + 0x90]
lea rax, [rsp + 0x80]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov dword [rsp + 0x80], esi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x1400c72a8]
cmp rcx, rbp
je 0x140006ca9
test byte [rcx + 0x1c], 4
je 0x140006ca0
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aaab8]
mov edx, 0x29
mov r9d, ebx
call fcn.140016318
mov rcx, qword [0x1400c72a8]
jmp 0x140006ca0
test byte [rcx + 0x1c], 4
je 0x140006ca9
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aaab8]
mov edx, 0x2a
call fcn.1400162ec
nop
jmp 0x140006ca9
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x140006cba