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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0x380], rax
xor ebx, ebx
mov r15d, edx
mov qword [rsp + 0x58], rbx
mov r14, rcx
lea esi, [rbx + 1]
test rcx, rcx
je 0x14001b554
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 0x14001b2e4
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], 1
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], ebx
mov esi, ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001b554
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], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
cmp dword [rsp + 0x50], 2
mov r13d, 0x104
mov edi, eax
jne 0x14001b3a3
test eax, eax
jne 0x14001b3b2
mov r8d, r13d
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, r13d
lea rax, [rsp + 0x60]
sub r8, rax
lea rcx, [rsp + 0x60]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14001b390
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14001b390
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14001b36d
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bx
jmp 0x14001b505
cmp dword [rsp + 0x50], 1
jne 0x14001b3b2
test eax, eax
je 0x14001b505
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]
cmp dword [rsp + 0x50], 1
mov edi, eax
mov word [rbp + 0x166], bx
jne 0x14001b402
test eax, eax
je 0x14001b46a
mov edx, r13d
lea rcx, [rsp + 0x60]
call fcn.140038074
test eax, eax
jne 0x14001b462
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop dword [rax + rax]
mov rcx, qword [0x140059d90]
lea r8, [rbp + 0x170]
mov r9d, r13d
mov edx, 0x26fd
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
test eax, eax
je 0x14001b462
lea r8, [rbp + 0x170]
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.140010d0c
mov edi, ebx
jmp 0x14001b46a
test edi, edi
jne 0x14001b53a
test esi, esi
je 0x14001b505
or rsi, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
mov rax, rsi
inc rax
cmp word [rcx + rax*2], bx
jne 0x14001b47e
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, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
lea rax, [rsp + 0x60]
inc rsi
cmp word [rax + rsi*2], bx
jne 0x14001b4c2
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, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test edi, edi
jne 0x14001b53a
mov word [rbp + 0x166], bx
test r15d, r15d
jne 0x14001b52a
mov r8d, r13d
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, r13
mov rcx, r14
call fcn.140010dd0
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 0x14001b556
xor eax, eax
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1400017f0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret