Function at 0x140007fb0
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 0x14001345e
mov eax, 0x709
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx ebx, word [rcx]
test bx, bx
je 0x140007fdd
mov r10d, r14d
mov eax, r14d
mov r8, rdi
nop
mov r11d, eax
cmp eax, r9d
ja 0x140007fdd
movzx edx, word [r8]
cmp dx, 0x2c
je 0x140007fdd
cmp dx, 0x5c
lea ecx, [r10 + 1]
cmovne ecx, r10d
add r8, 2
inc eax
mov r10d, ecx
cmp word [r8], si
jne 0x140008000
cmp eax, r9d
ja 0x140007fdd
test ecx, ecx
je 0x140013493
cmp ecx, 3
jne 0x140007fdd
jmp 0x14001346a
inc r9
cmp word [rcx + r9*2], si
jne 0x140008044
jmp 0x140007fed
cmp rcx, rbp
jne 0x140013743
mov rcx, qword [rsp + 0x90]
test rcx, rcx
jne 0x140013768
mov eax, ebx
mov rbp, qword [rsp + 0x50]
jmp 0x140007fe2
mov r9, 0xffffffffffffffff
jmp 0x140008044
cmp bx, 0x5c
jne 0x140007fdd
cmp word [rdi + 2], bx
jne 0x140007fdd
cmp word [rdi + 4], bx
je 0x140007fdd
cmp word [rdi + r11*2], bx
je 0x140007fdd
mov qword [rsp + 0x50], rbp
mov rcx, qword [0x1400c82a8]
lea rbp, [0x1400c82a8]
cmp rcx, rbp
je 0x140013500
test byte [rcx + 0x1c], 4
je 0x1400134d5
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400abbb8]
mov edx, 0x22
call fcn.140016c5c
mov rcx, qword [0x1400c82a8]
mov rsi, qword [rsp + 0x90]
cmp rcx, rbp
je 0x140013500
test byte [rcx + 0x1c], 4
je 0x140013500
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400abbb8]
mov edx, 0x23
mov r9, rdi
call fcn.14003304c
mov rsi, qword [rsp + 0x90]
test rsi, rsi
je 0x140013530
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 0x140013705
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 [0x1400c82a8]
cmp rcx, rbp
je 0x1400135f9
test byte [rcx + 0x1c], 4
je 0x1400135f9
mov r9d, dword [rsp + 0x80]
lea r8, [0x1400abbb8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x24
mov dword [rsp + 0x20], eax
call fcn.14001f06c
mov rcx, qword [0x1400c82a8]
test ebx, ebx
jne 0x140013645
cmp dword [rsp + 0x80], 1
jb 0x140013645
cmp rcx, rbp
je 0x140013625
test byte [rcx + 0x1c], 4
je 0x140013625
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x25]
lea r8, [0x1400abbb8]
call fcn.140016c5c
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x14001363e
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
xor eax, eax
jmp 0x14000806c
mov esi, 1
mov rdx, rdi
mov ecx, esi
call fcn.14008acc8
mov rdx, rdi
lea ecx, [rsi + 1]
mov ebx, eax
call fcn.14008acc8
test ebx, 0xfffffffd
jne 0x140013697
test eax, 0xfffffffd
jne 0x140013697
mov rcx, qword [0x1400c82a8]
cmp rcx, rbp
je 0x1400136c7
test byte [rcx + 0x1c], 4
je 0x1400136c7
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x25]
lea r8, [0x1400abbb8]
call fcn.140016c5c
jmp 0x1400136c7
mov rcx, qword [0x1400c82a8]
cmp rcx, rbp
je 0x1400136be
test byte [rcx + 0x1c], 4
je 0x1400136be
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400abbb8]
mov edx, 0x27
call fcn.140016c5c
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 [0x1400c82a8]
cmp rcx, rbp
je 0x140008059
test byte [rcx + 0x1c], 4
je 0x140008050
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400abbb8]
mov edx, 0x28
mov r9d, ebx
call fcn.140016c88
mov rcx, qword [0x1400c82a8]
jmp 0x140008050
test byte [rcx + 0x1c], 4
je 0x140008059
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400abbb8]
mov edx, 0x29
call fcn.140016c5c
nop
jmp 0x140008059
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x14000806a