Function at 0x14006a8c0
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x398]
sub rsp, 0x498
mov rax, qword [0x1400b67a8]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
and dword [rsp + 0x38], r14d
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x438
mov r15, r9
call sub.msvcrt.dll_memset
test rsi, rsi
je 0x14006a951
lea rax, [rsp + 0x30]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14006aac6
mov rbx, qword [rsp + 0x30]
mov r14, rbx
jmp 0x14006a956
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rbx
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x140099a10]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14006aac6
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x48]
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x140099ad0]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14006aac6
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
mov esi, 0x20006
mov qword [rsp + 0x20], rax
mov r9d, esi
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionPrinterPorts
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14006aac6
cmp dword [rbp + 0x3f0], eax
jne 0x14006aa3d
mov rcx, r15
call fcn.14000f088
mov rsi, rax
test rax, rax
jne 0x14006aa23
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call fcn.14006b0a4
mov dword [rsp + 0x38], eax
lea r9, [rsp + 0x38]
mov r8, rsi
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14000ece8
jmp 0x14006aac6
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x1400ab428]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14006aab6
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov rdx, rdi
call sym.spoolsv.exe_PrvbSetDevModePerUser
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14006aadc
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14006aaf2
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14006ab08
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test r14, r14
je 0x14006ab1c
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140013380
add rsp, 0x498
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret