Function at 0x1400210b0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x7c8]
sub rsp, 0x8c8
mov rax, qword [0x1400a9008]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov rdi, r8
mov r14, rdx
mov rbx, rcx
xor esi, esi
and dword [rsp + 0x30], esi
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x858
mov r15, r9
call sub.msvcrt.dll_memset
and dword [rsp + 0x74], esi
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x7c], 1
test r14, r14
je 0x1400321ca
lea rax, [rsp + 0x38]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140021256
mov rbx, qword [rsp + 0x38]
mov rsi, rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rbx
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x140073680]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140021256
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x58]
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x1400736f0]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140021256
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
mov r14d, 0x20006
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionPrinterPorts
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140021256
cmp dword [rbp + 0x820], eax
je 0x1400212b5
mov rcx, qword [rsp + 0x60]
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x68]
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140020e88
test eax, eax
je 0x1400321ea
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.PrintersDevModes2
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x140032231
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
mov rdx, rdi
call sym.spoolsv.exe_PrvbSetDevModePerUser
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140021266
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140021276
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140021286
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test rsi, rsi
je 0x140021294
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.140024ca0
add rsp, 0x8c8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, r15
call fcn.140018a5c
mov r14, rax
test rax, rax
je 0x1400321d4
and dword [rsp + 0x7c], 0
lea rax, [rsp + 0x30]
mov r9, r14
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.1400185b4
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140018c30
jmp 0x140021256
mov qword [rsp + 0x38], rbx
jmp 0x140021150
mov rcx, qword [rsp + 0x60]
mov rdx, rdi
call fcn.140064408
mov dword [rsp + 0x30], eax
jmp 0x1400212c9
mov rcx, qword [rsp + 0x58]
lea rdx, [0x140073590]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
lea rdx, [0x140072bb0]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop
jmp 0x14002121c
mov rcx, qword [rsp + 0x40]
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
jmp 0x140021246