Function at 0x140019190
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x108d0
call fcn.1400a28a0
sub rsp, rax
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x10908], rbx
mov qword [rsp + 0x10910], rbp
mov qword [rsp + 0x10918], rsi
mov rax, qword [0x1400e71f0]
xor rax, rsp
mov qword [rsp + 0x108c0], rax
mov r13d, edx
mov rbp, rcx
xor r12d, r12d
call fcn.1400696cc
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140019206
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x44], r12d
mov dword [rsp + 0x40], r12d
mov r15d, r12d
call fcn.140069504
mov rdi, qword [rax + 8]
mov qword [rsp + 0x78], rdi
cmp r13d, 1
jne 0x140019268
mov r8, rbp
lea rdx, str.FREEDOM_Driver_Name_:__s_
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
lea r8, str.Tool_VDCModuleUninstallCheck
lea rdx, [rsp + 0x2a0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rdx, qword [rdi + 0x5a8]
lea rcx, [rdx - 0x18]
lea rdi, [rbx - 0x18]
or esi, 0xffffffff
cmp rcx, rdi
je 0x1400192cc
cmp dword [rdi + 0x10], r15d
jl 0x1400192b9
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400192b9
call fcn.1400031e0
mov rbx, rax
mov eax, esi
lock xadd dword [rdi + 0x10], eax
add eax, esi
test eax, eax
jg 0x1400192ae
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rbx, 0x18
mov qword [rsp + 0x48], rbx
jmp 0x1400192cc
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.140003c40
mov rbx, qword [rsp + 0x48]
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rsp + 0x8c0]
call fcn.140080d50
movsxd r8, dword [rbx - 0x10]
add r8, r8
mov rdx, rbx
lea rcx, [rsp + 0x8c0]
call fcn.1400846a0
mov qword [rsp + 0x68], r12
lea r8, [rsp + 0x68]
lea rdx, reloc.OLEAUT32.dll_VariantCopy
lea rcx, [rsp + 0x8c0]
call fcn.140081d80
mov rdi, rax
test rax, rax
je 0x1400197df
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140019352
lea r8, [rsp + 0x68]
lea rdx, reloc.OLEAUT32.dll_VariantCopy
xor ecx, ecx
call fcn.140081d80
mov rdi, rax
test rax, rax
jne 0x140019322
jmp 0x1400197df
test rdi, rdi
je 0x1400197df
cmp r13d, 1
jne 0x140019393
mov r8, rdi
lea rdx, str.This_Driver__s__is_VDC_Service_Model
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
lea r8, str.Tool_VDCModuleUninstallCheck
lea rdx, [rsp + 0x2a0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor edx, edx
lea ecx, [rdx + 6]
lea r8d, [r9 + 2]
call sub.WINSPOOL.DRV_EnumPrintersW
test eax, eax
jne 0x1400193ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400193ec
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x1400193e5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1400197fc
mov edx, dword [rsp + 0x44]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
test rax, rax
je 0x1400197df
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
mov r9, r14
xor edx, edx
lea ecx, [rdx + 6]
lea r8d, [rdx + 2]
call sub.WINSPOOL.DRV_EnumPrintersW
cmp eax, 1
jne 0x140019580
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14001957a
mov r13d, r12d
test eax, eax
je 0x140019580
lea rbp, [r14 + 0x20]
mov r15d, 1
nop
mov rax, qword [rsp + 0x78]
mov rdx, qword [rax + 0x5a8]
lea rcx, [rdx - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x1400194c7
cmp dword [rdi + 0x10], 0
jl 0x1400194b4
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400194b4
call fcn.1400031e0
mov rbx, rax
mov eax, esi
lock xadd dword [rdi + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400194a9
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rbx, 0x18
mov qword [rsp + 0x48], rbx
jmp 0x1400194c7
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.140003c40
mov rbx, qword [rsp + 0x48]
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rsp + 0x8c0]
call fcn.140080d50
movsxd r8, dword [rbx - 0x10]
add r8, r8
mov rdx, rbx
lea rcx, [rsp + 0x8c0]
call fcn.1400846a0
lea r8, [rsp + 0x68]
lea rdx, reloc.OLEAUT32.dll_VariantCopy
lea rcx, [rsp + 0x8c0]
call fcn.140081d80
test rax, rax
je 0x14001953a
mov rdx, rax
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140019550
lea r8, [rsp + 0x68]
lea rdx, reloc.OLEAUT32.dll_VariantCopy
xor ecx, ecx
call fcn.140081d80
test rax, rax
jne 0x140019511
add r13d, r15d
add rbp, 0x88
cmp r13d, dword [rsp + 0x40]
jae 0x140019580
jmp 0x140019460
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x140019573
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1400197fc
mov r15d, 1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp r15d, 1
jne 0x1400197df
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2011f
xor r8d, r8d
lea rdx, str.SOFTWARECanonVDCSETUPVDCUser
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400195de
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x1400195d7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1400197fc
call fcn.1400696cc
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x1400195fe
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
mov rbp, qword [rsp + 0x78]
mov rdx, qword [rbp + 0x5b8]
lea rcx, [rdx - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x140019674
cmp dword [rdi + 0x10], 0
jl 0x140019661
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140019661
call fcn.1400031e0
mov rbx, rax
mov eax, esi
lock xadd dword [rdi + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140019656
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rbx, 0x18
mov qword [rsp + 0x58], rbx
jmp 0x140019674
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.140003c40
mov rbx, qword [rsp + 0x58]
mov rdx, rbx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rdx, qword [rbp + 0x5c0]
lea rcx, [rdx - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x1400196e4
cmp dword [rdi + 0x10], 0
jl 0x1400196d1
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400196d1
call fcn.1400031e0
mov rbx, rax
mov eax, esi
lock xadd dword [rdi + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400196c6
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rbx, 0x18
mov qword [rsp + 0x58], rbx
jmp 0x1400196e4
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.140003c40
mov rbx, qword [rsp + 0x58]
mov rdx, rbx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, r12d
mov dword [rsp + 0x54], 0x104
mov dword [rsp + 0x50], 0x208
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x6b0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x90]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1400197a7
nop
nop
add edi, 1
mov dword [rsp + 0x54], 0x104
mov dword [rsp + 0x50], 0x208
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x6b0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x90]
mov edx, edi
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x140019750
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete r12b
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400197da
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x48]
jmp 0x1400197df
mov rbx, qword [rsp + 0x48]
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x1400197f9
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, r12d
mov rcx, qword [rsp + 0x108c0]
xor rcx, rsp
call fcn.140081050
lea r11, [rsp + 0x108d0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret