Function at 0x14002a678
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x5f0]
sub rsp, 0x6f0
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
mov rbx, rcx
mov edi, 1
call fcn.14002b294
xor r15d, r15d
test rax, rax
jne 0x14002a6c9
mov eax, 0x80004005
jmp 0x14002a9b8
mov rcx, rbx
call fcn.14002b294
cmp dword [rax + 0x130], r15d
je 0x14002a6e1
xor eax, eax
jmp 0x14002a9b8
mov rcx, rbx
call fcn.14002b294
cmp qword [rax + 0x50], r15
je 0x14002a9b6
mov rcx, rbx
call fcn.14002b294
mov rcx, qword [rax + 0x50]
cmp word [rcx], r15w
je 0x14002a9b6
lea rax, [rbp + 0x1c0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x801c
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
nop dword [rax + rax]
test eax, eax
js 0x14002a9b6
lea rax, [0x14003f128]
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x58]
lea rax, vtable.qYah.0
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x58], r15
call fcn.14003bd0c
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
nop dword [rax + rax]
mov edx, eax
lea r8, [rsp + 0x58]
call fcn.14003ac88
test eax, eax
js 0x14002a9a2
mov rcx, rbx
call fcn.14002b294
lea r14, [0x140040718]
mov r13d, 0x208
mov rcx, r14
lea r9, [rbp + 0x1c0]
lea r8, str._sMicrosoftMedia_Player_s
mov edx, r13d
cmp qword [rax], r15
cmovne rcx, qword [rax]
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x50]
call fcn.140010420
test eax, eax
js 0x14002a9a2
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
mov rcx, rbx
call fcn.14002b294
mov rcx, r14
lea r9, [rbp + 0x1c0]
lea r8, str._sMicrosoftMedia_Player_s_s
mov edx, r13d
cmp qword [rax], r15
cmovne rcx, qword [rax]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x50]
call fcn.140010420
test eax, eax
js 0x14002a9a2
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14002a86b
call fcn.140015998
mov esi, eax
cmp eax, 0xb7
je 0x14002a86b
lea rcx, [rbp - 0x50]
call fcn.140019df8
test eax, eax
jne 0x14002a86b
mov r9d, esi
lea r8, [rbp - 0x50]
lea rdx, str.ERROR:_Catalog_download_failed_because__S_could_not_be_created.__Error_0x_x._r_n
lea ecx, [rax + 2]
call fcn.140018ed8
jmp 0x14002a9a2
lea r8, str.catalog.wmdb.lz
mov rdx, r13
lea rcx, [rbp - 0x50]
call fcn.140010394
test eax, eax
js 0x14002a9a2
mov rcx, rbx
call fcn.14002b294
lea r8, [rbp - 0x50]
mov rcx, rbx
mov rdx, qword [rax + 0x50]
call fcn.14002a028
mov edi, eax
test eax, eax
js 0x14002a98e
mov rcx, rbx
call fcn.14002b294
lea r8, str.SoftwareMicrosoftMediaPlayerPreferencesContentPartners_s
mov rdx, r13
lea rcx, [rbp + 0x3d0]
cmp qword [rax], r15
cmovne r14, qword [rax]
mov r9, r14
call fcn.140010420
test eax, eax
js 0x14002a97a
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, [rbp + 0x3d0]
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 2
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], r15d
mov qword [rsp + 0x50], r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14002a97a
lea rcx, [rbp - 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14002a92a
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.CatalogPath
lea rax, [rbp - 0x50]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, rbx
call fcn.14002b294
mov dword [rax + 0x130], 1
jmp 0x14002a9a2
mov r8d, eax
lea rdx, str.ERROR:_Catalog_download_failed:_0x_x._r_n
mov ecx, 2
call fcn.140018ed8
lea rcx, [rsp + 0x58]
call fcn.14003bff8
lea rcx, [rsp + 0x70]
call fcn.14002995c
mov eax, edi
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.140001660
lea r11, [rsp + 0x6f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret