Function at 0x1400259f0
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 [0x14027bbd0]
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.140017fc0
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.140017c80
call fcn.140054cb8
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.140192cb0
mov dword [rbp + 0x190], r15d
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp + 0x194]
call fcn.140192cb0
mov dword [rbp + 0x3a0], r15d
xor edx, edx
mov r8d, 0x7fc
lea rcx, [rbp + 0x3a4]
call fcn.140192cb0
call fcn.140051e58
mov r11, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x140025af0
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea r14, [0x1401c78e4]
test r14, 0xffffffffffff0000
jne 0x140025b34
movzx edi, r14w
mov ecx, edi
call fcn.140051c2c
test rax, rax
je 0x140025b45
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140001b00
jmp 0x140025b45
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.140001c20
nop
mov r9, r12
mov r8, rsi
lea rdx, [0x1401c9460]
lea rcx, [rsp + 0x30]
call fcn.140007540
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 0x140025d95
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 0x140025d7d
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 0x140025d8a
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 0x140025d8a
lea rdx, [0x1401c6ea8]
lea rcx, [rsp + 0x38]
call fcn.1400020c0
nop
lea rdx, [0x1401c6ea8]
lea rcx, [rsp + 0x60]
call fcn.1400020c0
nop
mov r8, qword [r13 + 0x810]
lea rdx, str.Canon__s_ERROR
lea rcx, [rsp + 0x60]
call fcn.140007540
mov r8, qword [r13 + 0x810]
lea rdx, str.Canon__s
lea rcx, [rsp + 0x38]
call fcn.140007540
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.140195de8
test rax, rax
je 0x140025d22
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.1400020c0
nop
lea rdx, [rbp + 0x3a0]
lea rcx, [rsp + 0x50]
call fcn.1400255f0
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 0x140025d22
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 0x140025d5c
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 0x140025d8a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140025d8a
cmp eax, 2
je 0x140025d8a
cmp eax, 3
je 0x140025d8a
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.140017c80
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x140025dce
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rsp + 0x68]
call fcn.140018150
mov eax, ebx
mov rcx, qword [rbp + 0xba0]
xor rcx, rsp
call fcn.1401945b0
mov rbx, qword [rsp + 0xd00]
add rsp, 0xcb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret