Function at 0x140039760
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.14000b870
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.14000ba50
call fcn.14004cde4
mov rcx, rax
xor esi, esi
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x1400397eb
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x7f], rax
call fcn.14004cde4
mov rcx, rax
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x140039818
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x69], rax
call fcn.14004cde4
mov rcx, rax
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x140039845
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 1], rax
call fcn.14004cde4
mov rcx, rax
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x140039872
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x11], rax
call fcn.140050920
mov r13, qword [rax + 8]
mov rdx, r15
lea rcx, [rbp - 0x61]
call fcn.140001110
nop
mov r8d, 5
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x61]
call fcn.1400166b0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rbp - 0x61]
add rdi, 0xffffffffffffffe8
or ebx, 0xffffffff
cmp rcx, rdi
je 0x140039909
cmp dword [rdi + 0x10], 0
jl 0x1400398fb
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400398fb
call fcn.140001620
mov r12, rax
mov eax, ebx
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x1400398f0
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 0x140039909
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x61]
call fcn.1400014d0
nop
mov rdx, qword [rbp + 0x1f]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140039927
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, r15
lea rcx, [rbp - 0x49]
call fcn.140001110
nop
call fcn.14004cde4
mov rcx, rax
test rax, rax
setne sil
test esi, esi
jne 0x140039952
mov ecx, 0x80004005
call fcn.140001000
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.140001620
add rax, 0x18
mov qword [rbp - 9], rax
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 9]
call fcn.14001b680
mov rdx, r14
lea rcx, [rbp - 0x21]
call fcn.140001110
nop
mov rdx, r14
lea rcx, [rbp - 0x59]
call fcn.140001110
nop
mov rcx, qword [rbp - 0x59]
cmp dword [rcx - 0x10], 0
jle 0x140039b8e
mov edx, 0x5c
call fcn.14018efd4
mov rdx, rax
test rax, rax
je 0x140039b8e
mov rax, qword [rbp - 0x59]
sub rdx, rax
sar rdx, 1
cmp edx, 0xffffffff
je 0x140039b8e
mov r8d, dword [rax - 0x10]
dec r8d
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x59]
call fcn.1400166b0
nop
mov r8, rax
lea rdx, [r13 + 0x1d8]
lea rcx, [rbp - 0x29]
call fcn.1400167f0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rbp + 0x7f]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x140039a57
cmp dword [rdi + 0x10], 0
jl 0x140039a49
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140039a49
call fcn.140001620
mov rsi, rax
mov eax, ebx
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x140039a3f
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 0x140039a57
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x7f]
call fcn.1400014d0
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140039a76
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 0x140039a94
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 0x140039af2
cmp dword [rdi + 0x10], 0
jl 0x140039ae5
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140039ae5
call fcn.140001620
mov rsi, rax
mov eax, ebx
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x140039adb
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 0x140039af2
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x69]
call fcn.1400014d0
mov rdi, qword [rbp + 0x7f]
mov rdx, rdi
mov rcx, 0xffffffff80000001
call fcn.1400184c0
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, 0x5c
mov rcx, rdi
call fcn.14018f7cc
test rax, rax
jne 0x140039b2b
mov eax, ebx
jmp 0x140039b31
sub rax, rdi
sar rax, 1
mov r8d, eax
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x7f]
call fcn.140016750
nop
mov rdi, qword [rbp - 0x19]
mov rdx, rdi
mov rcx, 0xffffffff80000001
call fcn.140018670
cmp eax, 1
jne 0x140039b6b
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 0x140039d0f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140039d0f
mov rdx, r14
lea rcx, [rbp - 0x39]
call fcn.140001110
nop
lea rdx, [r13 + 0x1d0]
mov r8, rax
lea rcx, [rbp + 7]
call fcn.1400167f0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rbp + 0x7f]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x140039c0a
cmp dword [rdi + 0x10], 0
jl 0x140039bfc
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140039bfc
call fcn.140001620
mov rsi, rax
mov eax, ebx
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x140039bf2
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 0x140039c0a
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x7f]
call fcn.1400014d0
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140039c29
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 0x140039c47
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 0x140039ca5
cmp dword [rdi + 0x10], 0
jl 0x140039c98
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140039c98
call fcn.140001620
mov rsi, rax
mov eax, ebx
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x140039c8e
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 0x140039ca5
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x69]
call fcn.1400014d0
mov rdi, qword [rbp + 0x7f]
mov rdx, rdi
mov rcx, 0xffffffff80000001
call fcn.1400184c0
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
lea rdi, str.CAPT
mov rsi, qword [r13 + 0x790]
mov ecx, 5
repe cmpsw word [rsi], word [rdi]
je 0x140039ce7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x140039d0f
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x140039d0f
cmp dword [r13 + 0x818], 0
je 0x140039d0f
mov rcx, r14
call fcn.14002ba30
mov rdi, qword [rbp - 0x69]
mov rdx, rdi
mov rcx, 0xffffffff80000001
call fcn.140018670
cmp eax, 1
jne 0x140039d63
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, str.SOFTWARECANON_
mov rcx, 0xffffffff80000001
call fcn.140018670
cmp eax, 1
jne 0x140039d63
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.140001620
add rax, 0x18
mov qword [rbp - 0x31], rax
lea rcx, [rbp - 0x31]
call fcn.14001c3a0
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
lea rcx, [rbp + 0xf]
call fcn.14000ba50
nop
mov rdx, qword [rbp - 0x59]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140039dbb
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 0x140039dda
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 0x140039df6
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 0x140039e15
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 0x140039e34
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 0x140039e53
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 0x140039e72
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 0x140039e91
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 0x140039eae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp + 0xf]
call fcn.14000ba00
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