Function at 0x1400c1210
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa70]
sub rsp, 0xb70
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0xa60], rax
mov r15, r8
mov rbx, rdx
lea rdx, str.UninstallerInstall::SetSystemRegistryKey
lea rcx, [rbp - 0x40]
call fcn.14001abe0
nop
lea rsi, [0x1402a8360]
lea r13, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, rsi
je 0x1400c129f
test byte [rcx + 0x1c], 1
je 0x1400c129f
mov r9, r13
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x2f
lea r8, [0x14025b960]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
xor r14d, r14d
mov r12d, r14d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x50]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x260]
call fcn.1401e7e40
lea rax, vtable.CMap_class_ATL::CStringT_unsigned_short_int__class_StrTraitMFC_unsigned_short_int__class_ATL::ChTraitsCRT_unsigned_short_int_____unsigned_short_int_const____ptr64__unsigned_char____ptr64__unsigned_char____ptr64_.0
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x68], reloc.COMCTL32.dll_InitCommonControls
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x14026f400]
movdqa xmmword [rbp - 0x80], xmm1
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r14
lfence
lea ecx, [r14 + 0x48]
call fcn.1401baa78
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x50], r14
mov r9, rbx
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersion
lea rdx, str._sUninstall_s
lea rcx, [rbp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400c1362
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test eax, eax
cmove rcx, r14
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
neg rax
sbb rdi, rdi
test rcx, rcx
je 0x1400c14c9
nop dword [rax]
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x1400c1c9e
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x60], rbx
mov r9, qword [rsp + 0x60]
test r9, r9
je 0x1400c1ca9
mov rsi, rdi
test rdi, rdi
je 0x1400c1ca9
mov r8d, dword [rsp + 0x68]
cmp rdi, 0xffffffffffffffff
jne 0x1400c13ee
mov ecx, r14d
test r8d, r8d
je 0x1400c13ee
mov eax, ecx
mov rsi, qword [r9 + rax*8]
test rsi, rsi
jne 0x1400c13ee
inc ecx
cmp ecx, r8d
jb 0x1400c13d3
test rsi, rsi
je 0x1400c1ca9
mov rdi, qword [rsi + 0x10]
test rdi, rdi
jne 0x1400c1416
xor edx, edx
mov eax, dword [rsi + 0x18]
div r8d
inc edx
cmp edx, r8d
jae 0x1400c1416
mov rdi, qword [r9 + rdx*8]
test rdi, rdi
jne 0x1400c1416
inc edx
cmp edx, r8d
jb 0x1400c1406
mov rdx, qword [rsi]
lea rcx, [rdx - 0x18]
lea r14, [rbx - 0x18]
cmp rcx, r14
je 0x1400c147e
cmp dword [r14 + 0x10], 0
jl 0x1400c146d
mov rax, qword [r14]
cmp qword [rcx], rax
jne 0x1400c146d
call fcn.140004d00
mov rbx, rax
mov eax, 0xffffffff
lock xadd dword [r14 + 0x10], eax
sub eax, 1
jg 0x1400c1463
lfence
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rdx, r14
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
add rbx, 0x18
mov qword [rbp - 0x60], rbx
jmp 0x1400c147e
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x60]
call fcn.140004e60
mov rbx, qword [rbp - 0x60]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400c148d
call fcn.1400079c0
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400c14b3
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
test rdi, rdi
mov r14d, 0
jne 0x1400c1380
lea rsi, [0x1402a8360]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400c153b
mov edi, r14d
mov edx, dword [rsp + 0x68]
test edx, edx
je 0x1400c1531
nop
mov eax, edi
mov rbx, qword [rcx + rax*8]
test rbx, rbx
je 0x1400c152b
nop dword [rax + rax]
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400c1519
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400c14f0
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
inc edi
cmp edi, edx
jb 0x1400c14e0
call fcn.1400079c0
mov qword [rsp + 0x60], r14
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
mov rcx, qword [rbp - 0x80]
call fcn.1401bc020
mov qword [rbp - 0x80], r14
mov rbx, qword [rbp - 0x70]
mov r8, qword [rbx + 8]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x70]
call fcn.140008f00
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
mov qword [rbp - 0x68], r14
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400c161f
mov rcx, qword [0x1402a8360]
cmp rcx, rsi
je 0x1400c160a
test byte [rcx + 0x1c], 2
je 0x1400c160a
mov rbx, r13
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rbp - 0x40]
call fcn.14001b0b0
mov edx, 0x35
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x14025b960]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rcx, qword [0x1402a8360]
mov r12d, 0x80010024
mov dword [0x1402bbd98], 0x24
jmp 0x1400c1bb3
lea rbx, str.Canon_Inc.
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400c1912
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.Publisher
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400c1912
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov rcx, rax
mov rax, qword [rax]
lea r8, [rbp + 0x260]
lea rdx, str.UNINST_PDL_MENU
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
lea rcx, [rbp + 0x260]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400c18dd
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x260]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.DisplayName
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400c18dd
lea rcx, [rbp - 0x50]
call fcn.140091e00
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rdx, r15
lea rcx, [rbp - 0x50]
call fcn.140095700
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400c175f
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.DisplayVersion
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400c17c1
mov rax, qword [0x1402a8360]
cmp rax, rsi
je 0x1400c17b1
test byte [rax + 0x1c], 2
je 0x1400c17b1
mov rbx, r13
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rbp - 0x40]
call fcn.14001b0b0
mov edx, 0x32
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x14025b960]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov r12d, 0x80010025
mov dword [0x1402bbd98], 0x25
lea rcx, [rbp - 0x50]
call fcn.140091f70
test r12d, r12d
jne 0x1400c1974
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400c18a0
test r15, r15
je 0x1400c18a0
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
lea r9d, [r12 + 1]
xor r8d, r8d
lea rdx, str.DisplayIcon
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400c18a0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400c1860
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
lea r9d, [r12 + 1]
xor r8d, r8d
lea rdx, str.UninstallString
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400c1974
mov rax, qword [0x1402a8360]
cmp rax, rsi
je 0x1400c1964
test byte [rax + 0x1c], 2
je 0x1400c1964
mov rbx, r13
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rbp - 0x40]
call fcn.14001b0b0
mov edx, 0x34
jmp 0x1400c1945
mov rax, qword [0x1402a8360]
cmp rax, rsi
je 0x1400c1964
test byte [rax + 0x1c], 2
je 0x1400c1964
mov rbx, r13
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rbp - 0x40]
call fcn.14001b0b0
mov edx, 0x33
jmp 0x1400c1945
mov rax, qword [0x1402a8360]
cmp rax, rsi
je 0x1400c1964
test byte [rax + 0x1c], 2
je 0x1400c1964
mov rbx, r13
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rbp - 0x40]
call fcn.14001b0b0
mov edx, 0x31
jmp 0x1400c1945
mov rax, qword [0x1402a8360]
cmp rax, rsi
je 0x1400c1964
test byte [rax + 0x1c], 2
je 0x1400c1964
mov rbx, r13
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rbp - 0x40]
call fcn.14001b0b0
mov edx, 0x30
mov rcx, qword [0x1402a8360]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x14025b960]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov dword [0x1402bbd98], 0x25
mov r12d, 0x80010025
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400c1994
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test eax, eax
cmove rcx, r14
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
neg rax
sbb rdi, rdi
test rcx, rcx
je 0x1400c1af2
nop dword [rax + rax]
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x1400c1c9e
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x58], rbx
mov r9, qword [rsp + 0x60]
test r9, r9
je 0x1400c1c98
mov rsi, rdi
test rdi, rdi
je 0x1400c1c98
mov r8d, dword [rsp + 0x68]
cmp rdi, 0xffffffffffffffff
jne 0x1400c1a1e
mov ecx, r14d
test r8d, r8d
je 0x1400c1a1e
mov eax, ecx
mov rsi, qword [r9 + rax*8]
test rsi, rsi
jne 0x1400c1a1e
inc ecx
cmp ecx, r8d
jb 0x1400c1a03
test rsi, rsi
je 0x1400c1c98
mov rdi, qword [rsi + 0x10]
test rdi, rdi
jne 0x1400c1a46
xor edx, edx
mov eax, dword [rsi + 0x18]
div r8d
inc edx
cmp edx, r8d
jae 0x1400c1a46
mov rdi, qword [r9 + rdx*8]
test rdi, rdi
jne 0x1400c1a46
inc edx
cmp edx, r8d
jb 0x1400c1a36
mov rdx, qword [rsi]
lea rcx, [rdx - 0x18]
lea r14, [rbx - 0x18]
cmp rcx, r14
je 0x1400c1aae
cmp dword [r14 + 0x10], 0
jl 0x1400c1a9d
mov rax, qword [r14]
cmp qword [rcx], rax
jne 0x1400c1a9d
call fcn.140004d00
mov rbx, rax
mov eax, 0xffffffff
lock xadd dword [r14 + 0x10], eax
sub eax, 1
jg 0x1400c1a93
lfence
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rdx, r14
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
add rbx, 0x18
mov qword [rbp - 0x58], rbx
jmp 0x1400c1aae
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x58]
call fcn.140004e60
mov rbx, qword [rbp - 0x58]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400c1abd
call fcn.1400079c0
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400c1ae3
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
test rdi, rdi
mov r14d, 0
jne 0x1400c19b0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400c1b6b
mov edi, r14d
mov edx, dword [rsp + 0x68]
test edx, edx
je 0x1400c1b61
nop word [rax + rax]
mov eax, edi
mov rbx, qword [rcx + rax*8]
test rbx, rbx
je 0x1400c1b5b
nop dword [rax + rax]
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400c1b49
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400c1b20
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
inc edi
cmp edi, edx
jb 0x1400c1b10
call fcn.1400079c0
mov qword [rsp + 0x60], r14
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
mov rcx, qword [rbp - 0x80]
call fcn.1401bc020
mov qword [rbp - 0x80], r14
mov rbx, qword [rbp - 0x70]
mov r8, qword [rbx + 8]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x70]
call fcn.140008f00
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
mov qword [rbp - 0x68], r14
mov rcx, qword [0x1402a8360]
lea rsi, [0x1402a8360]
mov byte [rbp - 0x38], 1
cmp rcx, rsi
je 0x1400c1bf0
test byte [rcx + 0x1c], 1
je 0x1400c1bf0
mov r9, r13
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x36
mov dword [rsp + 0x20], r12d
lea r8, [0x14025b960]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
nop
lea rcx, [rsp + 0x50]
call fcn.140007a90
nop
lea rax, vtable.WppTrace.0
mov qword [rbp - 0x40], rax
cmp byte [rbp - 0x38], 0
jne 0x1400c1c59
mov rcx, qword [0x1402a8360]
cmp rcx, rsi
je 0x1400c1c59
test byte [rcx + 0x1c], 1
je 0x1400c1c59
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r8, qword [rbp - 0x30]
cmp qword [0x1402bbdc8], 8
cmovae r13, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], r8
mov r9, r13
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rbp - 0x10]
call fcn.1400048a0
lea rcx, [rbp - 0x30]
call fcn.1400048a0
mov eax, r12d
mov rcx, qword [rbp + 0xa60]
xor rcx, rsp
call fcn.1401e2900
mov rbx, qword [rsp + 0xbb0]
add rsp, 0xb70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401bb848
nop
mov ecx, 0x80004005
call fcn.140001470
nop
call fcn.1401bb848
int3