Function at 0x1400098d0
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 0x140014202
mov eax, 0x709
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx ebx, word [rcx]
test bx, bx
je 0x1400098fd
mov r10d, r14d
mov eax, r14d
mov r8, rdi
nop
mov r11d, eax
cmp eax, r9d
ja 0x1400098fd
movzx edx, word [r8]
cmp dx, 0x2c
je 0x1400098fd
cmp dx, 0x5c
lea ecx, [r10 + 1]
cmovne ecx, r10d
add r8, 2
inc eax
mov r10d, ecx
cmp word [r8], si
jne 0x140009920
cmp eax, r9d
ja 0x1400098fd
test ecx, ecx
je 0x140014237
cmp ecx, 3
jne 0x1400098fd
jmp 0x14001420e
inc r9
cmp word [rcx + r9*2], si
jne 0x140009964
jmp 0x14000990d
cmp rcx, rbp
jne 0x1400144e7
mov rcx, qword [rsp + 0x90]
test rcx, rcx
jne 0x14001450c
mov eax, ebx
mov rbp, qword [rsp + 0x50]
jmp 0x140009902
mov r9, 0xffffffffffffffff
jmp 0x140009964
cmp bx, 0x5c
jne 0x1400098fd
cmp word [rdi + 2], bx
jne 0x1400098fd
cmp word [rdi + 4], bx
je 0x1400098fd
cmp word [rdi + r11*2], bx
je 0x1400098fd
mov qword [rsp + 0x50], rbp
mov rcx, qword [0x1400c72a8]
lea rbp, [0x1400c72a8]
cmp rcx, rbp
je 0x1400142a4
test byte [rcx + 0x1c], 4
je 0x140014279
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aabc8]
mov edx, 0x22
call fcn.14001c1cc
mov rcx, qword [0x1400c72a8]
mov rsi, qword [rsp + 0x90]
cmp rcx, rbp
je 0x1400142a4
test byte [rcx + 0x1c], 4
je 0x1400142a4
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aabc8]
mov edx, 0x23
mov r9, rdi
call fcn.14003249c
mov rsi, qword [rsp + 0x90]
test rsi, rsi
je 0x1400142d4
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 0x1400144a9
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 0x14001439d
test byte [rcx + 0x1c], 4
je 0x14001439d
mov r9d, dword [rsp + 0x80]
lea r8, [0x1400aabc8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x24
mov dword [rsp + 0x20], eax
call fcn.1400245dc
mov rcx, qword [0x1400c72a8]
test ebx, ebx
jne 0x1400143e9
cmp dword [rsp + 0x80], 1
jb 0x1400143e9
cmp rcx, rbp
je 0x1400143c9
test byte [rcx + 0x1c], 4
je 0x1400143c9
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x25]
lea r8, [0x1400aabc8]
call fcn.14001c1cc
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1400143e2
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
xor eax, eax
jmp 0x14000998c
mov esi, 1
mov rdx, rdi
mov ecx, esi
call fcn.14008a078
mov rdx, rdi
lea ecx, [rsi + 1]
mov ebx, eax
call fcn.14008a078
test ebx, 0xfffffffd
jne 0x14001443b
test eax, 0xfffffffd
jne 0x14001443b
mov rcx, qword [0x1400c72a8]
cmp rcx, rbp
je 0x14001446b
test byte [rcx + 0x1c], 4
je 0x14001446b
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x25]
lea r8, [0x1400aabc8]
call fcn.14001c1cc
jmp 0x14001446b
mov rcx, qword [0x1400c72a8]
cmp rcx, rbp
je 0x140014462
test byte [rcx + 0x1c], 4
je 0x140014462
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aabc8]
mov edx, 0x27
call fcn.14001c1cc
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 0x140009979
test byte [rcx + 0x1c], 4
je 0x140009970
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aabc8]
mov edx, 0x28
mov r9d, ebx
call fcn.14001c1f8
mov rcx, qword [0x1400c72a8]
jmp 0x140009970
test byte [rcx + 0x1c], 4
je 0x140009979
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aabc8]
mov edx, 0x29
call fcn.14001c1cc
nop
jmp 0x140009979
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x14000998a