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

Disassembly:
mov rax, rsp
push rbx
push rbp
sub rsp, 0x68
mov qword [rax - 0x18], rsi
mov rsi, rcx
mov qword [rax - 0x20], rdi
xor edi, edi
mov qword [rax - 0x28], r14
mov ebp, edi
mov qword [rax + 0x18], rdi
mov dword [rax + 8], edi
mov dword [rax + 0x10], 4
test rcx, rcx
je 0x140003b3c
mov r9, 0xffffffffffffffff
nop word [rax + rax]
inc r9
cmp word [rcx + r9*2], di
jne 0x1400039d0
movzx r11d, word [rcx]
test r11w, r11w
je 0x140003b3c
mov r10d, edi
mov r8d, edi
mov rdx, rsi
cmp r8d, r9d
ja 0x140003b3c
movzx eax, word [rdx]
cmp ax, 0x2c
je 0x140003b3c
cmp ax, 0x5c
lea ecx, [r10 + 1]
cmovne ecx, r10d
add rdx, 2
inc r8d
mov r10d, ecx
cmp word [rdx], di
jne 0x1400039f1
cmp r8d, r9d
ja 0x140003b3c
test ecx, ecx
jne 0x140003b33
mov rcx, qword [0x1400b52f8]
lea r14, [0x1400b52f8]
cmp rcx, r14
je 0x140003a68
test byte [rcx + 0x1c], 4
jne 0x14001e0d3
cmp rcx, r14
je 0x140003a5f
test byte [rcx + 0x1c], 4
jne 0x14001e0fc
test rbp, rbp
jne 0x14001e121
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
lea rdx, str.PrintersConvertUserDevModesCount
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], edi
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 0x14001e25a
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, rsi
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 [0x1400b52f8]
cmp rcx, r14
je 0x140003b04
test byte [rcx + 0x1c], 4
jne 0x14001e152
test ebx, ebx
jne 0x14001e19a
cmp dword [rsp + 0x80], 1
jb 0x14001e19a
cmp rcx, r14
je 0x140003b29
test byte [rcx + 0x1c], 4
jne 0x14001e17f
mov rbp, qword [rsp + 0x90]
jmp 0x140003b41
cmp ecx, 3
je 0x14001e09e
mov edi, 0x709
mov ebx, edi
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
test rbp, rbp
jne 0x140003b61
mov eax, ebx
add rsp, 0x68
pop rbp
pop rbx
ret
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x140003b57
cmp r11w, 0x5c
jne 0x140003b3c
cmp word [rsi + 2], r11w
jne 0x140003b3c
cmp word [rsi + 4], r11w
je 0x140003b3c
lea eax, [r8 - 1]
cmp word [rsi + rax*2], r11w
je 0x140003b3c
jmp 0x140003a33
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aac08]
mov edx, 0x1f
call fcn.14002d74c
mov rcx, qword [0x1400b52f8]
mov rbp, qword [rsp + 0x90]
jmp 0x140003a50
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aac08]
mov edx, 0x20
mov r9, rsi
call fcn.140040290
mov rbp, qword [rsp + 0x90]
jmp 0x140003a5f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, rbp
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]
nop
jmp 0x140003a68
mov r9d, dword [rsp + 0x80]
lea r8, [0x1400aac08]
mov rcx, qword [rcx + 0x10]
mov edx, 0x21
mov dword [rsp + 0x20], ebx
call fcn.140034794
mov rcx, qword [0x1400b52f8]
jmp 0x140003b04
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aac08]
mov edx, 0x22
call fcn.14002d74c
nop
jmp 0x140003b29
mov edi, 1
mov rdx, rsi
mov ecx, edi
call fcn.14007a858
mov rdx, rsi
lea ecx, [rdi + 1]
mov ebx, eax
call fcn.14007a858
test ebx, 0xfffffffd
jne 0x14001e1ec
test eax, 0xfffffffd
jne 0x14001e1ec
mov rcx, qword [0x1400b52f8]
cmp rcx, r14
je 0x14001e21c
test byte [rcx + 0x1c], 4
je 0x14001e21c
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x22]
lea r8, [0x1400aac08]
call fcn.14002d74c
jmp 0x14001e21c
mov rcx, qword [0x1400b52f8]
cmp rcx, r14
je 0x14001e213
test byte [rcx + 0x1c], 4
je 0x14001e213
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aac08]
mov edx, 0x24
call fcn.14002d74c
mov edi, dword [rsp + 0x80]
inc edi
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, rsi
mov dword [rsp + 0x80], edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x1400b52f8]
cmp rcx, r14
je 0x14001e2ab
test byte [rcx + 0x1c], 4
je 0x14001e28b
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aac08]
mov edx, 0x25
mov r9d, ebx
call fcn.14002d778
mov rcx, qword [0x1400b52f8]
cmp rcx, r14
je 0x14001e2ab
test byte [rcx + 0x1c], 4
je 0x14001e2ab
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aac08]
mov edx, 0x26
call fcn.14002d74c
mov rbp, qword [rsp + 0x90]
jmp 0x140003b43