Function at 0x1400070d0
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
sub rsp, 0xc90
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0xcd0], rbx
mov rax, qword [0x1400e71f0]
xor rax, rsp
mov qword [rsp + 0xc80], rax
mov r12, r8
mov rbp, rdx
mov r13, rcx
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov ebx, 1
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x4c], 0x104
mov dword [rsp + 0x60], r15d
xor edx, edx
mov r8d, 0x204
lea rcx, [rsp + 0x64]
call fcn.140080d50
mov dword [rsp + 0x270], r15d
xor edx, edx
mov r8d, 0x204
lea rcx, [rsp + 0x274]
call fcn.140080d50
mov dword [rsp + 0x480], r15d
xor edx, edx
mov r8d, 0x7fc
lea rcx, [rsp + 0x484]
call fcn.140080d50
call fcn.1400696cc
mov rcx, rax
mov eax, r15d
test rcx, rcx
setne al
test eax, eax
jne 0x140007199
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea r14, [0x1400a4120]
or rsi, 0xffffffffffffffff
test r14, 0xffffffffffff0000
jne 0x1400071de
movzx edi, r14w
mov ecx, edi
call fcn.1400696b8
test rax, rax
je 0x1400071fe
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140003a40
jmp 0x1400071fe
xor eax, eax
mov rcx, rsi
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.140003c40
nop
mov r9, r12
mov r8, rbp
lea rdx, [0x1400a3e50]
lea rcx, [rsp + 0x30]
call fcn.1400040b0
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rdx
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400073ce
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.MsiInstallDir
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400073b5
lea rdx, str.Module.ini
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400073c2
lea r9, [rsp + 0x60]
mov r8d, 0x104
lea rdx, [rsp + 0x270]
lea rcx, str.ICA_3.0
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x1400073c2
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x480]
lea r8, str.Canon_CNAP2_ERROR
lea rdx, str.VirtualDriver
lea rcx, str.ICA_3.0
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, str.Canon_CNAP2_ERROR
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
cmove ebx, r15d
lea rdx, str.Canon_CNAP2
lea rcx, [rsp + 0x480]
call fcn.1400804d0
test rax, rax
je 0x140007395
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140004ec0
nop
lea r8, [rsp + 0x480]
lea rdx, [rsp + 0x40]
mov rcx, r13
call fcn.140006130
lea r9, [rsp + 0x60]
mov r8, qword [rsp + 0x40]
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 + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140007395
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
lea rcx, str.Canon_CNAP2
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x1400073c2
mov ebx, r15d
jmp 0x1400073c2
cmp eax, 2
je 0x1400073c2
cmp eax, 3
je 0x1400073c2
mov ebx, r15d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x1400073ec
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
mov rcx, qword [rsp + 0xc80]
xor rcx, rsp
call fcn.140081050
mov rbx, qword [rsp + 0xcd0]
add rsp, 0xc90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret