Function at 0x1400b1ac0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x510], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rsi, r8
mov r15, rdx
xor r8d, r8d
lea rdx, str.CBaseInfoCustomDrv::DeleteUserDataFromPrinterReg
lea rcx, [rsp + 0x38]
call fcn.1400075a0
nop
mov r9, rsi
lea r8, str.lpcPrinter___s
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140007780
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov r14d, r13d
mov qword [rsp + 0x48], r13
mov r12d, r13d
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
test rsi, rsi
je 0x1400b1da6
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r8, qword [rax]
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [r8 + 0xa0]
mov rbx, rax
lea rax, [rsp + 0x48]
cmp rax, rbx
je 0x1400b1bb2
lea rcx, [rsp + 0x48]
call fcn.1400360d0
mov r14, qword [rbx]
mov qword [rsp + 0x48], r14
mov r12, qword [rbx + 8]
mov qword [rsp + 0x50], r12
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x58], rax
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x1400b1bfb
mov rdi, qword [rsp + 0x78]
cmp rbx, rdi
je 0x1400b1bf3
cmp qword [rbx + 0x18], 8
jb 0x1400b1bd5
mov rcx, qword [rbx]
call fcn.1401026ec
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
add rbx, 0x28
cmp rbx, rdi
jne 0x1400b1bc6
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.1401026ec
cmp r14, r12
je 0x1400b1d9d
mov rbx, r14
lea rdi, str.SOFTWARECANON_
xor r14d, r14d
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r14
mov word [rsp + 0x70], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140001e00
nop
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [0x1402e3978]
or r8, 0xffffffffffffffff
mov edx, 0x104
lea rcx, [rbp + 0x1b0]
call fcn.14024679c
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
mov r9d, 0xf003f
lea r8, [rbp + 0x1b0]
mov rdx, r15
call qword [rax + 0xf0]
mov r13d, eax
test eax, eax
jne 0x1400b1d63
mov edi, r14d
mov r9d, 0x104
lea r8, [rbp - 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1400b1d45
nop word [rax + rax]
lea rdx, [rbp - 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea r8, [rbp - 0x60]
test eax, eax
je 0x1400b1d00
inc edi
mov r9d, 0x104
mov edx, edi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1400b1cd0
jmp 0x1400b1d45
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x30]
call qword [rax + 0x1b8]
cmp eax, 1
jne 0x1400b1d45
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1400b1d45
lea r9, [rbp - 0x60]
lea r8, str._t_t_t_s_registry_key_deleted.
lea edx, [rax + 7]
lea rcx, [rsp + 0x38]
call fcn.140007780
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x30]
call qword [rax + pe_nt_image_headers64]
lea rdi, str.SOFTWARECANON_
jmp 0x1400b1d66
mov r13d, r14d
cmp qword [rbp - 0x78], 8
jb 0x1400b1d77
mov rcx, qword [rsp + 0x70]
call fcn.1401026ec
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r14
mov word [rsp + 0x70], r14w
add rbx, 0x28
cmp rbx, r12
jne 0x1400b1c11
mov r14, qword [rsp + 0x48]
jmp 0x1400b1dc2
lea r8, str._t_t_tPDL_name_not_found.
jmp 0x1400b1dad
lea r8, str._t_t_tInvalid_printer_name.
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140007780
mov r13d, 0x57
mov r9d, r13d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.140007780
nop
test r14, r14
je 0x1400b1e20
mov rbx, r14
cmp r14, r12
je 0x1400b1e17
xor edi, edi
nop dword [rax + rax]
cmp qword [rbx + 0x18], 8
jb 0x1400b1dff
mov rcx, qword [rbx]
call fcn.1401026ec
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
mov word [rbx], di
add rbx, 0x28
cmp rbx, r12
jne 0x1400b1df0
mov rcx, r14
call fcn.1401026ec
nop
lea rcx, [rsp + 0x38]
call fcn.140007730
mov eax, r13d
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x510]
add rsp, 0x4d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret