Function at 0x140017e7c
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 [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x380], rax
xor ebx, ebx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rbx
mov r14d, edx
mov qword [rsp + 0x38], rax
lea rdx, [0x140041e40]
mov r15, rcx
mov qword [rsp + 0x30], rbx
mov rdi, 0xffffffff80000002
mov dword [rsp + 0x28], 3
lea r13d, [rbx + 1]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
mov rcx, rdi
mov esi, r13d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140017f48
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rdx, [0x140041e40]
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 esi, ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140017f48
xor eax, eax
jmp 0x14001813d
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]
cmp dword [rsp + 0x50], 2
mov r12d, 0x104
mov edi, eax
jne 0x140017fc4
test eax, eax
jne 0x140017fd3
mov r8d, r12d
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea r8, [rbp + 0x170]
mov edx, r12d
lea rcx, [rsp + 0x60]
call fcn.140001470
jmp 0x1400180fc
cmp dword [rsp + 0x50], r13d
jne 0x140017fd3
test eax, eax
je 0x1400180fc
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]
mov edi, eax
mov word [rbp + 0x166], bx
cmp dword [rsp + 0x50], r13d
jne 0x14001801d
test eax, eax
je 0x140018077
mov edx, r12d
lea rcx, [rsp + 0x60]
call fcn.14002f614
test eax, eax
jne 0x14001806f
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov rcx, qword [0x140050d10]
lea r8, [rbp + 0x170]
mov r9d, r12d
mov edx, 0x26fd
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x14001806f
lea r8, [rbp + 0x170]
mov rdx, r12
lea rcx, [rsp + 0x60]
call fcn.140001584
mov edi, ebx
test edi, edi
jne 0x14001812b
test esi, esi
je 0x1400180f8
or rsi, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
mov rax, rsi
inc rax
cmp word [rcx + rax*2], bx
jne 0x140018087
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]
lea rax, [rsp + 0x60]
inc rsi
cmp word [rax + rsi*2], bx
jne 0x1400180c2
mov rcx, qword [rsp + 0x58]
lea eax, [rsi*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]
test edi, edi
jne 0x14001812b
mov word [rbp + 0x166], bx
test r14d, r14d
jne 0x14001811b
mov r8d, r12d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea r8, [rsp + 0x60]
mov rdx, r12
mov rcx, r15
call fcn.140001470
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14003c810
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