Function at 0x140027ed0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov r13, rdx
mov r14, rcx
xor r8d, r8d
lea rdx, str.Tool_DeleteRegKeyICA
lea rcx, [rbp - 0x10]
call fcn.140017fc0
nop
mov qword [rsp + 0x20], r13
mov r9, r14
lea r8, str.pRegRoot___s__pSubKey___s
mov esi, 1
mov edx, esi
lea rcx, [rbp - 0x10]
call fcn.140017c80
call fcn.140054cb8
mov r15, qword [rax + 8]
xor ebx, ebx
mov qword [rbp - 0x30], rbx
mov dword [rbp + 0x58], esi
mov dword [rbp + 0x50], ebx
call fcn.140051e58
mov rdx, rax
mov ecx, ebx
test rax, rax
setne cl
test ecx, ecx
jne 0x140027f60
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x28], rax
lea r12, [0x1401c78e4]
mov rbx, r12
shr rbx, 0x10
test rbx, rbx
jne 0x140027fa5
movzx edi, r12w
mov ecx, edi
call fcn.140051c2c
test rax, rax
je 0x140027fb5
mov r8d, edi
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140001b00
jmp 0x140027fb5
xor r8d, r8d
mov rdx, r12
lea rcx, [rbp - 0x28]
call fcn.140001c20
nop
call fcn.140051e58
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140027fd4
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x38], rdi
test rbx, rbx
jne 0x140028010
movzx r12d, r12w
mov ecx, r12d
call fcn.140051c2c
test rax, rax
je 0x140028025
mov r8d, r12d
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.140001b00
mov rdi, qword [rbp - 0x38]
jmp 0x140028025
xor r8d, r8d
mov rdx, r12
lea rcx, [rbp - 0x38]
call fcn.140001c20
mov rdi, qword [rbp - 0x38]
jmp 0x14002802c
lea r12, [0x1401c78e4]
call fcn.140051e58
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14002804b
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x40], rax
test rbx, rbx
jne 0x140028082
movzx ebx, r12w
mov ecx, ebx
call fcn.140051c2c
test rax, rax
je 0x140028092
mov r8d, ebx
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140001b00
jmp 0x140028092
xor r8d, r8d
mov rdx, r12
lea rcx, [rbp - 0x40]
call fcn.140001c20
nop
mov r9, r13
mov r8, r14
lea rdx, [0x1401c9460]
lea rcx, [rbp - 0x28]
call fcn.140007540
lea r11, [rbp - 0x30]
mov qword [rsp + 0x20], r11
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rbp - 0x28]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or r12, 0xffffffffffffffff
test eax, eax
jne 0x1400282c5
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
xor r13d, r13d
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x58]
xor r8d, r8d
lea rdx, str.VirtualDriverEx
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400282b9
mov edx, dword [rbp + 0x50]
test edx, edx
jns 0x14002811a
mov ecx, 0x80070057
call fcn.140001010
int3
mov ecx, esi
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, edx
or ecx, eax
jge 0x140028135
lea rcx, [rbp - 0x38]
call fcn.1400018f0
mov rdi, qword [rbp - 0x38]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x58]
xor r8d, r8d
lea rdx, str.VirtualDriverEx
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400282b9
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call fcn.14019442c
test eax, eax
js 0x1400282ae
cmp eax, dword [rdi - 0xc]
jg 0x1400282ae
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], r13w
lea rdx, [0x1401c6ea8]
lea rcx, [rbp - 0x20]
call fcn.1400020c0
nop
mov r8, qword [r15 + 0x810]
lea rdx, str.Canon__s
lea rcx, [rbp - 0x20]
call fcn.140007540
mov rdx, qword [rbp - 0x20]
mov rcx, rdi
call fcn.140195de8
test rax, rax
je 0x14002828d
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.1400255f0
xor eax, eax
mov rcx, r12
mov rbx, qword [rbp - 0x40]
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea edi, [rcx + rcx]
test edi, edi
jns 0x1400281f7
mov ecx, 0x80070057
call fcn.140001010
int3
mov ecx, esi
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140028214
mov edx, edi
lea rcx, [rbp - 0x40]
call fcn.1400018f0
mov rbx, qword [rbp - 0x40]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
mov r9d, dword [rbp + 0x58]
xor r8d, r8d
lea rdx, str.VirtualDriverEx
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
test eax, eax
jne 0x140028265
call fcn.14019442c
test eax, eax
js 0x14002825a
cmp eax, dword [rbx - 0xc]
jg 0x14002825a
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r13w
jmp 0x14002828d
mov ecx, 0x80070057
call fcn.140001010
int3
call fcn.14019442c
test eax, eax
js 0x140028282
cmp eax, dword [rbx - 0xc]
jg 0x140028282
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r13w
mov esi, r13d
jmp 0x14002828d
mov ecx, 0x80070057
call fcn.140001010
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400282b9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400282b9
mov ecx, 0x80070057
call fcn.140001010
int3
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400282d3
cmp eax, 2
je 0x1400282d3
cmp eax, 3
je 0x1400282d3
xor eax, eax
mov esi, eax
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rbp - 0x10]
call fcn.140017c80
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002830c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002832c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x14002834c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp - 0x10]
call fcn.140018150
mov eax, esi
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret