Function at 0x14002b2f0
Capabilities:
Check if file exists
Query or enumerate registry value
Read .ini file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xbb0]
sub rsp, 0xcb0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0xd00], rbx
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rbp + 0xba0], rax
mov r12, rdx
mov rsi, rcx
xor r8d, r8d
lea rdx, str.Tool_DeleteVCIniFile
lea rcx, [rsp + 0x68]
call fcn.14000b870
nop
mov qword [rsp + 0x20], r12
mov r9, rsi
lea r8, str.pRegRoot___s__pSubKey___s
mov ebx, 1
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.14000ba50
call fcn.140050920
mov r13, qword [rax + 8]
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x48], 0x104
mov dword [rbp - 0x80], r15d
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp - 0x7c]
call fcn.140193010
mov dword [rbp + 0x190], r15d
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp + 0x194]
call fcn.140193010
mov dword [rbp + 0x3a0], r15d
xor edx, edx
mov r8d, 0x7fc
lea rcx, [rbp + 0x3a4]
call fcn.140193010
call fcn.14004cde4
mov r11, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x14002b3f0
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea r14, [0x14021131c]
test r14, 0xffffffffffff0000
jne 0x14002b434
movzx edi, r14w
mov ecx, edi
call fcn.14004cbb8
test rax, rax
je 0x14002b445
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400012a0
jmp 0x14002b445
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.1400014d0
nop
mov r9, r12
mov r8, rsi
lea rdx, [0x140212328]
lea rcx, [rsp + 0x30]
call fcn.140006620
lea r11, [rsp + 0x40]
mov qword [rsp + 0x20], r11
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or edi, 0xffffffff
test eax, eax
jne 0x14002b695
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
lea rdx, str.MsiInstallDir
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002b67d
lea rdx, str.Module.ini
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14002b68a
lea r9, [rbp - 0x80]
mov r8d, 0x104
lea rdx, [rbp + 0x190]
lea rcx, str.ICA_3.0
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x14002b68a
lea rdx, [0x1402145dc]
lea rcx, [rsp + 0x38]
call fcn.140001110
nop
lea rdx, [0x1402145dc]
lea rcx, [rsp + 0x60]
call fcn.140001110
nop
mov r8, qword [r13 + 0x810]
lea rdx, str.Canon__s_ERROR
lea rcx, [rsp + 0x60]
call fcn.140006620
mov r8, qword [r13 + 0x810]
lea rdx, str.Canon__s
lea rcx, [rsp + 0x38]
call fcn.140006620
lea r11, [rbp - 0x80]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0x400
lea r9, [rbp + 0x3a0]
lea r8, str.Canon__s_ERROR
lea rdx, str.VirtualDriver
lea rcx, str.ICA_3.0
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, str.Canon__s_ERROR
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
cmove ebx, r15d
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp + 0x3a0]
call fcn.140190f4c
test rax, rax
je 0x14002b622
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140001110
nop
lea rdx, [rbp + 0x3a0]
lea rcx, [rsp + 0x50]
call fcn.14002ae20
lea r9, [rbp - 0x80]
mov r8, qword [rsp + 0x50]
lea rdx, str.VirtualDriver
lea rcx, str.ICA_3.0
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
cmove ebx, r15d
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002b622
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r9, [rbp - 0x80]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
cmove ebx, r15d
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002b65c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002b68a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14002b68a
cmp eax, 2
je 0x14002b68a
cmp eax, 3
je 0x14002b68a
mov ebx, r15d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x68]
call fcn.14000ba50
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x14002b6ce
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rsp + 0x68]
call fcn.14000ba00
mov eax, ebx
mov rcx, qword [rbp + 0xba0]
xor rcx, rsp
call fcn.14018e5d0
mov rbx, qword [rsp + 0xd00]
add rsp, 0xcb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret