Function at 0x14001a520
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3b8]
sub rsp, 0x490
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rbp + 0x380], rax
xor ebx, ebx
mov r12d, edx
mov qword [rsp + 0x58], rbx
mov r15, rcx
lea r13d, [rbx + 1]
mov r14d, r13d
test rcx, rcx
je 0x14001a832
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftMediaPlayer
mov qword [rsp + 0x30], rbx
mov rdi, 0xffffffff80000002
mov dword [rsp + 0x28], 3
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14001a5ff
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftMediaPlayer
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], r13d
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], ebx
mov r14d, ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001a832
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x54], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Installation_Directory
mov dword [rsp + 0x50], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
cmp dword [rsp + 0x50], 2
mov esi, 0x104
mov edi, eax
jne 0x14001a685
test eax, eax
jne 0x14001a694
mov r8d, esi
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
lea r8, [rbp + 0x170]
mov edx, esi
lea rcx, [rsp + 0x60]
call fcn.1400104bc
jmp 0x14001a7e3
cmp dword [rsp + 0x50], r13d
jne 0x14001a694
test eax, eax
je 0x14001a7df
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x54], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.MP2.SaveDir
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov edi, eax
mov word [rbp + 0x166], bx
cmp dword [rsp + 0x50], r13d
jne 0x14001a6e4
test eax, eax
je 0x14001a74b
mov edx, esi
lea rcx, [rsp + 0x60]
call fcn.140031d30
test eax, eax
jne 0x14001a743
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop dword [rax + rax]
mov rcx, qword [0x140051e60]
lea r8, [rbp + 0x170]
mov r9d, esi
mov edx, 0x26fd
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
test eax, eax
je 0x14001a743
lea r8, [rbp + 0x170]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140010470
mov edi, ebx
jmp 0x14001a74b
test edi, edi
jne 0x14001a818
test r14d, r14d
je 0x14001a7e3
or r14, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
mov rax, r14
inc rax
cmp word [rcx + rax*2], bx
jne 0x14001a760
mov rcx, qword [rsp + 0x58]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.Installation_Directory
lea rax, [rsp + 0x60]
mov r9d, r13d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
lea rax, [rsp + 0x60]
inc r14
cmp word [rax + r14*2], bx
jne 0x14001a7a1
mov rcx, qword [rsp + 0x58]
lea eax, [r14*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.Installation_DirectoryLFN
lea rax, [rsp + 0x60]
mov r9d, r13d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test edi, edi
jne 0x14001a818
mov word [rbp + 0x166], bx
test r12d, r12d
jne 0x14001a808
mov r8d, esi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
nop dword [rax + rax]
lea r8, [rsp + 0x60]
mov rdx, rsi
mov rcx, r15
call fcn.1400104bc
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test edi, edi
sete bl
mov eax, ebx
jmp 0x14001a834
xor eax, eax
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140001660
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret