Function at 0x140024190
Capabilities:
Delete registry key

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rbx, rcx
xor r8d, r8d
lea rdx, str.Tool_DeleteNetworkPrinterSubForFax
lea rcx, [rbp + 0xf]
call fcn.140017fc0
nop
mov r9, rbx
lea r8, str.lpszPrinter___s
mov edx, 1
lea rcx, [rbp + 0xf]
call fcn.140017c80
call fcn.140054cb8
mov r12, qword [rax + 8]
call fcn.140051e58
mov r11, rax
xor esi, esi
mov ecx, esi
test rax, rax
setne cl
test ecx, ecx
jne 0x14002420d
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x31], rax
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.1400020c0
nop
mov rax, qword [rbp - 0x39]
mov r13d, dword [rax - 0x10]
call fcn.140051e58
mov r11, rax
mov ecx, esi
test rax, rax
setne cl
test ecx, ecx
jne 0x140024252
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x7f], rbx
call fcn.140051e58
mov r11, rax
mov ecx, esi
test rax, rax
setne cl
test ecx, ecx
jne 0x140024282
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp + 0x6f], rdi
call fcn.140051e58
mov rcx, rax
test rax, rax
setne sil
test esi, esi
jne 0x1400242b1
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x77], rax
mov rcx, qword [rbp - 0x39]
add rcx, 0xffffffffffffffe8
call fcn.140001950
add rax, 0x18
mov qword [rbp - 9], rax
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 9]
call fcn.14001de40
lea rdx, str.NONE
mov rcx, qword [rbp - 0x31]
call fcn.1401936c8
or esi, 0xffffffff
test eax, eax
je 0x140024591
lea rdx, [r12 + 0x1d8]
lea r8, [0x1401cde60]
lea rcx, [rbp - 0x19]
call fcn.140007ed0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14002436d
cmp dword [rbx + 0x10], 0
jl 0x14002435f
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14002435f
call fcn.140001950
mov rdi, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140024355
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rbp + 0x7f], rax
jmp 0x14002436d
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x7f]
call fcn.140001c20
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002438b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8d, [r13 - 1]
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x39]
call fcn.140017e80
nop
mov r8, rax
lea rdx, [rbp + 0x7f]
lea rcx, [rbp + 7]
call fcn.1400182c0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp + 0x6f]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14002440a
cmp dword [rbx + 0x10], 0
jl 0x1400243fc
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400243fc
call fcn.140001950
mov rdi, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400243f2
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rbp + 0x6f], rax
jmp 0x14002440a
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x6f]
call fcn.140001c20
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140024429
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140024447
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, 0x5c
mov rbx, qword [rbp + 0x6f]
mov rcx, rbx
call fcn.140193dc0
test rax, rax
jne 0x140024461
mov eax, esi
jmp 0x140024467
sub rax, rbx
sar rax, 1
mov r8d, eax
lea rdx, [rbp + 0x1f]
lea rcx, [rbp + 0x6f]
call fcn.140017f20
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp + 0x77]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400244d4
cmp dword [rbx + 0x10], 0
jl 0x1400244c6
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400244c6
call fcn.140001950
mov rdi, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400244bc
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rbp + 0x77], rax
jmp 0x1400244d4
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x77]
call fcn.140001c20
nop
mov rdx, qword [rbp + 0x1f]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400244f2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rbp + 0x6f]
mov rdx, rdi
mov rcx, 0xffffffff80000001
call fcn.140018e80
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rbp + 0x77]
mov rdx, rbx
mov rcx, 0xffffffff80000001
call fcn.140019030
cmp eax, 1
jne 0x14002453d
mov rdx, rbx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rbp + 0x7f]
mov rdx, rbx
mov rcx, 0xffffffff80000001
call fcn.140019030
cmp eax, 1
jne 0x140024591
mov rdx, rbx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, str.SOFTWARECANON_
mov rcx, 0xffffffff80000001
call fcn.140019030
cmp eax, 1
jne 0x140024591
lea rdx, str.SOFTWARECANON_
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rdx, qword [r12 + 0x1d8]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400245f1
cmp dword [rbx + 0x10], 0
jl 0x1400245e4
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400245e4
call fcn.140001950
mov rdi, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400245d6
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rbp + 0x7f], rax
mov rdi, qword [rbp + 0x6f]
jmp 0x1400245f1
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x7f]
call fcn.140001c20
lea r8d, [r13 - 1]
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x39]
call fcn.140017e80
nop
mov r8, rax
lea rdx, [r12 + 0x1d8]
lea rcx, [rbp - 0x21]
call fcn.1400182c0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x140024670
cmp dword [rdi + 0x10], 0
jl 0x140024662
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140024662
call fcn.140001950
mov rbx, rax
mov ecx, esi
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140024658
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [rbp + 0x6f], rax
jmp 0x140024670
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x6f]
call fcn.140001c20
nop
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002468f
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, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400246ad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, 0x5c
mov rbx, qword [rbp + 0x6f]
mov rcx, rbx
call fcn.140193dc0
test rax, rax
jne 0x1400246c7
mov eax, esi
jmp 0x1400246cd
sub rax, rbx
sar rax, 1
mov r8d, eax
lea rdx, [rbp - 1]
lea rcx, [rbp + 0x6f]
call fcn.140017f20
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp + 0x77]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14002473a
cmp dword [rbx + 0x10], 0
jl 0x14002472c
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14002472c
call fcn.140001950
mov rdi, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140024722
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rbp + 0x77], rax
jmp 0x14002473a
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x77]
call fcn.140001c20
nop
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140024758
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp + 0x6f]
mov rdx, rbx
mov rcx, 0xffffffff80000001
call fcn.140018e80
mov rdx, rbx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rbp + 0x77]
mov rdx, rbx
mov rcx, 0xffffffff80000001
call fcn.140019030
cmp eax, 1
jne 0x1400247a3
mov rdx, rbx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rdi, qword [rbp + 0x7f]
mov rdx, rdi
mov rcx, 0xffffffff80000001
call fcn.140019030
cmp eax, 1
jne 0x1400247f7
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, str.SOFTWARECANON_
mov rcx, 0xffffffff80000001
call fcn.140019030
cmp eax, 1
jne 0x1400247f7
lea rdx, str.SOFTWARECANON_
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rbp + 0xf]
call fcn.140017c80
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002482a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x6f]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140024849
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x7f]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140024868
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, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140024887
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400248a4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp + 0xf]
call fcn.140018150
xor eax, eax
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret