Function at 0x140001940
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov r12d, r9d
mov rbp, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0xb8], rax
test r9d, r9d
lea rax, [0x140028038]
lea rcx, [0x140028048]
cmove rcx, rax
lea rsi, [rsp + 0x88]
mov edx, 0x8000
xor r8d, r8d
mov r9, rsi
call sub.SHELL32.dll_SHGetKnownFolderPath
mov r13, qword [rsi]
test eax, eax
js 0x140001ac4
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
cmp r12d, 1
jne 0x1400019cb
mov rax, r14
or rax, rbp
jne 0x140001dcb
movaps xmm0, xmmword [0x14002d710]
lea rdx, [rsp + 0xa0]
movaps xmmword [rdx], xmm0
lea rcx, [rsp + 0x70]
call fcn.140001e20
mov edi, eax
test eax, eax
js 0x140001acb
xorps xmm6, xmm6
lea rsi, [rsp + 0xa0]
movaps xmmword [rsi], xmm6
mov rdi, qword [rsp + 0x88]
mov rcx, rdi
call fcn.14000da18
mov rcx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x78]
lea rbp, [rax + rcx]
inc rbp
mov qword [rsp + 0x20], r15
lea r8, [0x14002ff8a]
mov rcx, rsi
mov rdx, rbp
mov r9, rdi
call section..text
mov edi, 0x80004005
cmp qword [rsi], rbp
jne 0x140001d70
movaps xmmword [rsp + 0x60], xmm6
test rbx, rbx
je 0x140001cc2
test r14, r14
lea r8, [0x14002e0ff]
cmovne r8, r14
xorps xmm6, xmm6
lea rsi, [rsp + 0x50]
movaps xmmword [rsi], xmm6
lea r9, [0x14002da93]
mov rcx, rsi
call fcn.140001770
cmp qword [rsi], 0
je 0x140001ad5
mov rsi, qword [rsp + 0x58]
lea r14, [rsp + 0x90]
mov qword [rsp + 0x30], r14
movups xmmword [rsp + 0x20], xmm6
mov rcx, 0xffffffff80000002
mov rdx, rsi
mov r8, rbx
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140001ae1
xor eax, eax
mov qword [rsp + 0x40], rax
jmp 0x140001b4e
mov edi, eax
jmp 0x140001d8f
mov r15, qword [rsp + 0x78]
jmp 0x140001d82
xor eax, eax
mov qword [rsp + 0x40], rax
jmp 0x140001bf0
mov edi, dword [rsp + 0x90]
add rdi, rdi
mov rcx, rdi
call fcn.14000d924
mov qword [rsp + 0x48], rsi
mov rsi, rax
mov rcx, rax
xor edx, edx
mov r8, rdi
call fcn.14000f920
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
mov rdx, qword [rsp + 0x48]
mov r8, rbx
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov rcx, rsi
mov qword [rsp + 0x40], rsi
mov rdi, rsi
mov rsi, qword [rsp + 0x48]
test eax, eax
je 0x140001c66
mov qword [rsp + 0x30], r14
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov rcx, 0xffffffff80000001
mov rdx, rsi
mov r8, rbx
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140001bf0
mov qword [rsp + 0x48], rsi
mov esi, dword [rsp + 0x90]
add rsi, rsi
mov rcx, rsi
call fcn.14000d924
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.14000f920
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001bae
call fcn.14000dbd0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
mov rcx, 0xffffffff80000001
mov rdx, qword [rsp + 0x48]
mov r8, rbx
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov rcx, rdi
mov qword [rsp + 0x40], rdi
test eax, eax
je 0x140001c66
cmp word [rbx], 0
je 0x140001e03
xor eax, eax
lea rdx, [rax + 2]
cmp word [rbx + rax + 2], 0
mov rax, rdx
jne 0x140001bfc
mov rcx, rbx
call fcn.140002170
mov rsi, rax
mov ecx, 0x22
call fcn.14000d924
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov word [rax + 0x20], 0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x140001e0a
cmp r12d, 1
je 0x140001de4
lea r8, str._llX
mov rcx, rdi
mov r9, rsi
call fcn.1400091c0
test eax, eax
jle 0x140001cab
cmp eax, 0x10
ja 0x140001cab
movaps xmm0, xmmword [str.updates]
lea rsi, [rsp + 0x90]
movaps xmmword [rsi], xmm0
mov rcx, rdi
call fcn.14000da18
lea rdx, [rax + rbp]
add rdx, 9
mov r9, qword [rsp + 0xa8]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
lea r8, str._s_s_s
lea rcx, [rsp + 0x60]
call section..text
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140001cba
call fcn.14000dbd0
mov rcx, rdi
call fcn.14000dbd0
test r12d, r12d
jne 0x140001d02
mov r9d, dword [rsp + 0x140]
cmp qword [rsp + 0x60], 0
je 0x140001ce9
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x60]
mov r8b, 1
jmp 0x140001cf7
lea rcx, [rsp + 0xa0]
mov rdx, rcx
xor r8d, r8d
call fcn.140009240
mov edi, eax
test eax, eax
js 0x140001d61
mov rax, qword [rsp + 0x148]
test rbx, rbx
je 0x140001d30
cmp qword [rsp + 0x60], 0
je 0x140001d5c
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rax]
mov qword [rsp + 0x68], rdx
mov qword [rax], rcx
xor edi, edi
test rdx, rdx
jne 0x140001d61
jmp 0x140001d70
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rax]
mov qword [rsp + 0xa8], rcx
mov qword [rax], rdx
xor edi, edi
test rcx, rcx
je 0x140001d61
call fcn.14000da18
mov qword [rsp + 0xa0], rax
jmp 0x140001d61
mov edi, 0x80004005
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140001d70
call fcn.14000dbd0
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x140001d82
call fcn.14000dbd0
test r15, r15
je 0x140001d8f
mov rcx, r15
call fcn.14000dbd0
test r13, r13
je 0x140001d9d
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400187d0
mov eax, edi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test r14, r14
cmovne rbp, r14
lea rcx, [rsp + 0x70]
mov rdx, rbp
call fcn.140026d70
jmp 0x1400019e7
mov r9, rsi
shr r9, 0x20
mov dword [rsp + 0x20], esi
lea r8, str._X_X
mov rcx, rdi
call fcn.1400091c0
jmp 0x140001c5d
xor edx, edx
jmp 0x140001c0b
call fcn.14000dbd0
jmp 0x140001c41