Function at 0x140042420
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rdi, r8
mov r15, rdx
mov r14, rcx
xor r8d, r8d
lea rdx, str.CUNINSTALLERDlg::CleanUpRegistryEveryPrinter
lea rcx, [rbp + 0xf]
call fcn.140001190
nop
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r15
mov r9, r14
lea r8, str.lpszPrinter___s__lpszDriver___s__lpszVersion___s
mov edx, 1
lea rcx, [rbp + 0xf]
call fcn.140001370
call fcn.140056384
mov rcx, rax
xor esi, esi
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x1400424ab
mov ecx, 0x80004005
call fcn.140004550
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x7f], rax
call fcn.140056384
mov rcx, rax
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x1400424d8
mov ecx, 0x80004005
call fcn.140004550
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x69], rax
call fcn.140056384
mov rcx, rax
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x140042505
mov ecx, 0x80004005
call fcn.140004550
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 1], rax
call fcn.140056384
mov rcx, rax
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x140042532
mov ecx, 0x80004005
call fcn.140004550
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x11], rax
call fcn.140059f20
mov r13, qword [rax + 8]
mov rdx, r15
lea rcx, [rbp - 0x61]
call fcn.1400054e0
nop
mov r8d, 5
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x61]
call fcn.140012140
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rbp - 0x61]
add rdi, 0xffffffffffffffe8
or ebx, 0xffffffff
cmp rcx, rdi
je 0x1400425c9
cmp dword [rdi + 0x10], 0
jl 0x1400425bb
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400425bb
call fcn.140006db0
mov r12, rax
mov eax, ebx
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x1400425b0
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [r12 + 0x18]
mov qword [rbp - 0x61], rax
jmp 0x1400425c9
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x61]
call fcn.1400059f0
nop
mov rdx, qword [rbp + 0x1f]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400425e7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, r15
lea rcx, [rbp - 0x49]
call fcn.1400054e0
nop
call fcn.140056384
mov rcx, rax
test rax, rax
setne sil
test esi, esi
jne 0x140042612
mov ecx, 0x80004005
call fcn.140004550
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x51], rax
mov rcx, qword [rbp - 0x49]
add rcx, 0xffffffffffffffe8
call fcn.140006db0
add rax, 0x18
mov qword [rbp - 9], rax
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 9]
call fcn.140025570
mov rdx, r14
lea rcx, [rbp - 0x21]
call fcn.1400054e0
nop
mov rdx, r14
lea rcx, [rbp - 0x59]
call fcn.1400054e0
nop
mov rcx, qword [rbp - 0x59]
cmp dword [rcx - 0x10], 0
jle 0x14004284e
mov edx, 0x5c
call fcn.140199ab0
mov rdx, rax
test rax, rax
je 0x14004284e
mov rax, qword [rbp - 0x59]
sub rdx, rax
sar rdx, 1
cmp edx, 0xffffffff
je 0x14004284e
mov r8d, dword [rax - 0x10]
dec r8d
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x59]
call fcn.140012140
nop
mov r8, rax
lea rdx, [r13 + 0x1d8]
lea rcx, [rbp - 0x29]
call fcn.140012280
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rbp + 0x7f]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x140042717
cmp dword [rdi + 0x10], 0
jl 0x140042709
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140042709
call fcn.140006db0
mov rsi, rax
mov eax, ebx
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x1400426ff
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsi + 0x18]
mov qword [rbp + 0x7f], rax
jmp 0x140042717
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x7f]
call fcn.1400059f0
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140042736
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x41]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140042754
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [r13 + 0x1d8]
lea rcx, [rdx - 0x18]
mov rdi, qword [rbp - 0x69]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x1400427b2
cmp dword [rdi + 0x10], 0
jl 0x1400427a5
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400427a5
call fcn.140006db0
mov rsi, rax
mov eax, ebx
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x14004279b
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsi + 0x18]
mov qword [rbp - 0x69], rax
jmp 0x1400427b2
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x69]
call fcn.1400059f0
mov rdi, qword [rbp + 0x7f]
mov rdx, rdi
mov rcx, 0xffffffff80000001
call fcn.1400222d0
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, 0x5c
mov rcx, rdi
call fcn.14019a074
test rax, rax
jne 0x1400427eb
mov eax, ebx
jmp 0x1400427f1
sub rax, rdi
sar rax, 1
mov r8d, eax
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x7f]
call fcn.1400121e0
nop
mov rdi, qword [rbp - 0x19]
mov rdx, rdi
mov rcx, 0xffffffff80000001
call fcn.1400224a0
cmp eax, 1
jne 0x14004282b
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400429cf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400429cf
mov rdx, r14
lea rcx, [rbp - 0x39]
call fcn.1400054e0
nop
lea rdx, [r13 + 0x1d0]
mov r8, rax
lea rcx, [rbp + 7]
call fcn.140012280
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rbp + 0x7f]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x1400428ca
cmp dword [rdi + 0x10], 0
jl 0x1400428bc
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400428bc
call fcn.140006db0
mov rsi, rax
mov eax, ebx
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x1400428b2
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsi + 0x18]
mov qword [rbp + 0x7f], rax
jmp 0x1400428ca
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x7f]
call fcn.1400059f0
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400428e9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x39]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140042907
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [r13 + 0x1d8]
lea rcx, [rdx - 0x18]
mov rdi, qword [rbp - 0x69]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x140042965
cmp dword [rdi + 0x10], 0
jl 0x140042958
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140042958
call fcn.140006db0
mov rsi, rax
mov eax, ebx
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x14004294e
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsi + 0x18]
mov qword [rbp - 0x69], rax
jmp 0x140042965
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x69]
call fcn.1400059f0
mov rdi, qword [rbp + 0x7f]
mov rdx, rdi
mov rcx, 0xffffffff80000001
call fcn.1400222d0
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
lea rdi, str.CAPT
mov rsi, qword [r13 + 0x788]
mov ecx, 5
repe cmpsw word [rsi], word [rdi]
je 0x1400429a7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x1400429cf
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1400429cf
cmp dword [r13 + 0x810], 0
je 0x1400429cf
mov rcx, r14
call fcn.140032f20
mov rdi, qword [rbp - 0x69]
mov rdx, rdi
mov rcx, 0xffffffff80000001
call fcn.1400224a0
cmp eax, 1
jne 0x140042a23
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, str.SOFTWARECANON_
mov rcx, 0xffffffff80000001
call fcn.1400224a0
cmp eax, 1
jne 0x140042a23
lea rdx, str.SOFTWARECANON_
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rdi, qword [rbp - 0x51]
lea rcx, [rdi - 0x18]
call fcn.140006db0
add rax, 0x18
mov qword [rbp - 0x31], rax
lea rcx, [rbp - 0x31]
call fcn.140026290
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
lea rcx, [rbp + 0xf]
call fcn.140001370
nop
mov rdx, qword [rbp - 0x59]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140042a7b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140042a9a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, ebx
lock xadd dword [rdi - 8], eax
dec eax
test eax, eax
jg 0x140042ab6
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x49]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140042ad5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x61]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140042af4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140042b13
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140042b32
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x69]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140042b51
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x7f]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x140042b6e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp + 0xf]
call fcn.140001320
mov eax, 1
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret