Function at 0x140006688
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
cmp dword [rcx + 0x6b0], 0x1f4
jne 0x1400069e9
xor esi, esi
lea rcx, [rbp + 0x48]
mov edi, esi
call fcn.140007010
or r14, 0xffffffffffffffff
lea rdx, str.VSTemplateItem
mov rax, r14
inc rax
cmp word [rdx + rax*2], si
jne 0x1400066c3
mov r8d, eax
lea rcx, [rbp + 0x48]
call fcn.1400097e8
mov rdx, qword [rbp + 0x48]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rbp - 0x20]
mov qword [rbp - 0x20], rsi
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea r15, str.Cache
test eax, eax
jne 0x140006817
mov rdi, qword [rbp - 0x20]
lea rcx, [rbp + 0x50]
call fcn.140007064
lea rdx, str.VSWinExpress
lea rcx, [rbp + 0x50]
call fcn.140009210
lea rdx, str.ItemTemplates
lea rcx, [rbp + 0x50]
call fcn.140009210
mov rax, qword [rbp + 0x50]
test rax, rax
je 0x140006790
mov rcx, r14
inc rcx
cmp word [rax + rcx*2], si
jne 0x14000675e
lea ecx, [rcx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], ecx
lea rdx, str.UserFolder
mov rcx, rdi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rax, r14
inc rax
cmp word [r15 + rax*2], si
jne 0x140006793
mov r8d, eax
lea rcx, [rbp + 0x50]
mov rdx, r15
call fcn.1400097e8
mov rbx, qword [rbp + 0x50]
test rbx, rbx
je 0x1400067ea
mov rax, r14
inc rax
cmp word [rbx + rax*2], si
jne 0x1400067b8
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.CacheFolder
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rdi, rdi
je 0x1400067fb
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, rsi
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140006817
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x10]
call fcn.140007010
mov rdx, rax
lea rcx, [rbp + 0x48]
call fcn.140009900
mov rdx, qword [rbp - 0x10]
mov eax, r14d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14000684c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, str.VSTemplateProject
mov rax, r14
inc rax
cmp word [rdx + rax*2], si
jne 0x140006856
mov r8d, eax
lea rcx, [rbp + 0x48]
call fcn.1400097e8
mov rdx, qword [rbp + 0x48]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rbp - 0x18]
mov qword [rbp - 0x18], rsi
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400069bb
mov eax, esi
test rdi, rdi
je 0x1400068c1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rbp - 0x18]
test eax, eax
jne 0x1400069bb
lea rcx, [rbp - 0x28]
call fcn.140007064
lea rdx, str.VSWinExpress
lea rcx, [rbp - 0x28]
call fcn.140009210
lea rdx, str.ProjectTemplates
lea rcx, [rbp - 0x28]
call fcn.140009210
mov rax, qword [rbp - 0x28]
test rax, rax
je 0x140006934
mov rcx, r14
inc rcx
cmp word [rax + rcx*2], si
jne 0x140006902
lea ecx, [rcx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], ecx
lea rdx, str.UserFolder
mov rcx, rdi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rax, r14
inc rax
cmp word [r15 + rax*2], si
jne 0x140006937
mov r8d, eax
lea rcx, [rbp - 0x28]
mov rdx, r15
call fcn.1400097e8
mov rbx, qword [rbp - 0x28]
test rbx, rbx
je 0x14000698e
mov rax, r14
inc rax
cmp word [rbx + rax*2], si
jne 0x14000695c
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.CacheFolder
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rdi, rdi
je 0x14000699f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, rsi
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1400069bb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbp + 0x48]
mov eax, r14d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1400069db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test rdi, rdi
je 0x1400069e9
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret