Function at 0x1400e41e0
Capabilities:
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x1f70]
mov eax, 0x2070
call fcn.14024c240
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x2088], rbx
mov qword [rsp + 0x2090], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x1f60], rax
mov rdi, rcx
xor r8d, r8d
lea rdx, str.CBaseSeqOutsideModule::ProcDIASInst
lea rcx, [rsp + 0x40]
call fcn.1400075a0
nop
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
lea r8, str.ProcDIASInst
lea rdx, str.Action_start__s.
call qword [rax + 0x160]
xor ebx, ebx
lea rcx, [0x1402ddbb8]
call fcn.140023e50
test eax, eax
je 0x1400e427c
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
mov edi, ebx
test eax, eax
setne dil
jmp 0x1400e4290
lea rcx, [0x1402ddbc0]
call fcn.140023e50
mov edi, ebx
test eax, eax
sete dil
call fcn.1400236c0
cmp eax, 2
jne 0x1400e42c1
call fcn.1400230b0
test eax, eax
je 0x1400e42c1
test edi, edi
je 0x1400e42c1
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x250]
mov ebx, eax
test eax, eax
jne 0x1400e44c5
call fcn.1400230b0
test eax, eax
je 0x1400e42ec
call fcn.1400231b0
test eax, eax
je 0x1400e42ec
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
mov edx, 5
call qword [rax + 0x78]
mov ebx, eax
jmp 0x1400e44c5
call fcn.1400230b0
test eax, eax
je 0x1400e44c5
lea rcx, [0x1402ddbb8]
call fcn.140023e50
test eax, eax
jne 0x1400e431d
lea rcx, [0x1402ddbc0]
call fcn.140023e50
test eax, eax
je 0x1400e44c5
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdi, str.SOFTWARECanonDIASSETUPDIASUser
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400e44c5
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rsp + 0x60]
lea rdx, str.TEMPPATH
mov rcx, rax
call qword [r9 + 0x18]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.InsDrv.ini
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r11, [rsp + 0x60]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0x400
lea r9, [rbp + 0xf60]
lea r8, [0x1402dc4e0]
lea rdx, str.Product
lea rcx, str.Installer_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea r11, [rsp + 0x60]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0x400
lea r9, [rbp + 0x760]
lea r8, [0x1402dc4e0]
lea rdx, str.Version
lea rcx, str.Installer_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [rsp + 0x34], 0x800
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1760]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [rbp + 0xf60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400e44ba
lea rdx, [rbp + 0x1760]
lea rcx, [rbp + 0x760]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400e44ba
lea rcx, [rbp + 0x760]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x760]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rbp + 0xf60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400e44ba
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0xf60]
lea r8, str.______tUnable_to_edit_reg_key_value__s_in__s.
mov edx, 7
lea rcx, [rsp + 0x40]
call fcn.140007780
mov ebx, 0x25
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
mov r9d, ebx
lea r8, str.ProcDIASInst
lea rdx, str.Action_ended__s._Return_value__08x.
call qword [rax + 0x160]
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x40]
call fcn.140007780
nop
lea rcx, [rsp + 0x40]
call fcn.140007730
mov eax, ebx
mov rcx, qword [rbp + 0x1f60]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x2070]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret