Function at 0x1400327e0
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 [0x14026fdb0]
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.140001190
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.140001370
call fcn.140059f20
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.14019d7c0
mov dword [rbp + 0x190], r15d
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp + 0x194]
call fcn.14019d7c0
mov dword [rbp + 0x3a0], r15d
xor edx, edx
mov r8d, 0x7fc
lea rcx, [rbp + 0x3a4]
call fcn.14019d7c0
call fcn.140056384
mov r11, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400328e0
mov ecx, 0x80004005
call fcn.140004550
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea r14, [0x14021dbdc]
test r14, 0xffffffffffff0000
jne 0x140032924
movzx edi, r14w
mov ecx, edi
call fcn.140056158
test rax, rax
je 0x140032935
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140005730
jmp 0x140032935
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.1400059f0
nop
mov r9, r12
mov r8, rsi
lea rdx, [0x14021c280]
lea rcx, [rsp + 0x30]
call fcn.14000bfe0
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 0x140032b85
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 0x140032b6d
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 0x140032b7a
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 0x140032b7a
lea rdx, [0x1402209ac]
lea rcx, [rsp + 0x38]
call fcn.1400054e0
nop
lea rdx, [0x1402209ac]
lea rcx, [rsp + 0x60]
call fcn.1400054e0
nop
mov r8, qword [r13 + 0x808]
lea rdx, str.Canon__s_ERROR
lea rcx, [rsp + 0x60]
call fcn.14000bfe0
mov r8, qword [r13 + 0x808]
lea rdx, str.Canon__s
lea rcx, [rsp + 0x38]
call fcn.14000bfe0
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.1401998b4
test rax, rax
je 0x140032b12
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.1400054e0
nop
lea rdx, [rbp + 0x3a0]
lea rcx, [rsp + 0x50]
call fcn.140032310
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 0x140032b12
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 0x140032b4c
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 0x140032b7a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140032b7a
cmp eax, 2
je 0x140032b7a
cmp eax, 3
je 0x140032b7a
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.140001370
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x140032bbe
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rsp + 0x68]
call fcn.140001320
mov eax, ebx
mov rcx, qword [rbp + 0xba0]
xor rcx, rsp
call fcn.140198b40
mov rbx, qword [rsp + 0xd00]
add rsp, 0xcb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret