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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1fa0]
mov eax, 0x20a0
call fcn.1401e33b0
sub rsp, rax
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x1f90], rax
mov r14, rcx
lea rdx, [0x1402665c0]
lea rcx, [rsp + 0x40]
call fcn.14001abe0
nop
lea r15, [0x1402a8360]
lea rdi, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x14017a1f7
test byte [rcx + 0x1c], 1
je 0x14017a1f7
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, recv
lea r8, [0x140266708]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rax, qword [0x1402bc0b8]
lea r8, str.ProcDIASInst
lea rdx, str.Action_start__s.
lea rcx, [0x1402bc0b8]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
xor ebx, ebx
lea rcx, [0x140253e18]
call fcn.1400d5250
test eax, eax
je 0x14017a249
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov esi, ebx
test eax, eax
setne sil
jmp 0x14017a25d
lea rcx, [0x140253ee8]
call fcn.1400d5250
mov esi, ebx
test eax, eax
sete sil
call fcn.1400d4ce0
cmp eax, 2
jne 0x14017a29d
call fcn.1400d4620
test eax, eax
je 0x14017a29d
test esi, esi
je 0x14017a29d
lea rcx, [rsp + 0x30]
call fcn.1400711a0
nop
lea rcx, [rsp + 0x30]
call fcn.1400717a0
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.140071310
test ebx, ebx
jne 0x14017a530
call fcn.1400d4620
test eax, eax
je 0x14017a2cb
call fcn.1400d46c0
test eax, eax
je 0x14017a2cb
mov rax, qword [r14]
mov edx, 5
mov rcx, r14
mov rax, qword [rax + 0x20]
call qword [case.0x1400136d6.0]
mov ebx, eax
jmp 0x14017a530
call fcn.1400d4620
test eax, eax
je 0x14017a530
lea rcx, [0x140253e18]
call fcn.1400d5250
test eax, eax
jne 0x14017a2fc
lea rcx, [0x140253ee8]
call fcn.1400d5250
test eax, eax
je 0x14017a530
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rsi, str.SOFTWARECanonDIASSETUPDIASUser
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14017a530
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x70]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0xf90]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x790]
call fcn.1401e7e40
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp - 0x70]
lea rdx, str.TEMPPATH
mov rcx, r9
call qword [case.0x1400136d6.0]
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.InsDrv.ini
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
lea r9, [rbp + 0xf90]
lea r8, [0x140251dfc]
lea rdx, str.Product
lea rcx, str.Installer_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
lea r9, [rbp + 0x790]
lea r8, [0x140251dfc]
lea rdx, str.Version
lea rcx, str.Installer_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x1790]
call fcn.1401e7e40
mov dword [rsp + 0x38], 0x800
mov dword [rsp + 0x3c], 1
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1790]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
lea rdx, [rbp + 0xf90]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14017a525
lea rdx, [rbp + 0x1790]
lea rcx, [rbp + 0x790]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14017a525
lea rcx, [rbp + 0x790]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x790]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rbp + 0xf90]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14017a525
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x14017a520
test byte [rcx + 0x1c], 4
je 0x14017a520
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, send
mov qword [rsp + 0x28], rsi
lea rax, [rbp + 0xf90]
mov qword [rsp + 0x20], rax
lea r8, [0x140266708]
mov rcx, qword [rcx + 0x10]
call fcn.14002fbe0
mov ebx, 0x25
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [0x1402bc0b8]
mov r9d, ebx
lea r8, str.ProcDIASInst
lea rdx, str.Action_ended__s._Return_value__08x.
lea rcx, [0x1402bc0b8]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov al, 1
mov byte [rsp + 0x48], al
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x14017a5a8
test byte [rcx + 0x1c], al
je 0x14017a5a8
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, reloc.WSOCK32.dll_recv
mov dword [rsp + 0x20], ebx
lea r8, [0x140266708]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
movzx eax, byte [rsp + 0x48]
mov rcx, qword [0x1402a8360]
lea rdx, vtable.WppTrace.0
mov qword [rsp + 0x40], rdx
test al, al
jne 0x14017a601
cmp rcx, r15
je 0x14017a601
test byte [rcx + 0x1c], 1
je 0x14017a601
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
cmp qword [0x1402bbdc8], 8
cmovae rdi, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rsp + 0x70]
call fcn.1400048a0
lea rcx, [rsp + 0x50]
call fcn.1400048a0
mov eax, ebx
mov rcx, qword [rbp + 0x1f90]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x20a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret