Function at 0x1400a6ec4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x470
mov rax, qword [0x14017a608]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, r8
mov rbp, rcx
xor r15d, r15d
lea rcx, [rsp + 0x40]
mov r8d, 0x208
mov qword [rsp + 0x30], r15
xor edx, edx
mov esi, r15d
call sub.msvcrt.dll_memset
mov r12d, 0x104
test rbx, rbx
jne 0x1400a7008
mov edx, r12d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x1400a6f91
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov r10, qword [0x14017a048]
lea rcx, [0x14017a048]
cmp r10, rcx
je 0x1400a6f7e
test byte [r10 + 0x1c], 2
je 0x1400a6f7e
cmp byte [r10 + 0x19], 2
jb 0x1400a6f7e
mov rcx, qword [r10 + 0x10]
lea edx, [rbx + 0x59]
mov r9d, eax
lea r8, [0x14015ac58]
call fcn.140004b9c
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1400a71f5
mov r14d, 0x105
lea rcx, [rsp + 0x40]
mov r8d, r14d
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
nop dword [rax + rax]
test eax, eax
jne 0x1400a70d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov r10, qword [0x14017a048]
lea rcx, [0x14017a048]
cmp r10, rcx
je 0x1400a6f7e
test byte [r10 + 0x1c], 2
je 0x1400a6f7e
cmp byte [r10 + 0x19], 2
jb 0x1400a6f7e
mov rcx, qword [r10 + 0x10]
lea r9, [rsp + 0x40]
mov edx, 0x5a
mov dword [rsp + 0x20], eax
lea r8, [0x14015ac58]
call fcn.140005ca0
jmp 0x1400a6f7e
xor r9d, r9d
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rbx
call fcn.14008b4a4
mov ebx, eax
test eax, eax
jns 0x1400a7061
mov rax, qword [0x14017a048]
lea rcx, [0x14017a048]
cmp rax, rcx
je 0x1400a7057
test byte [rax + 0x1c], 2
je 0x1400a7057
cmp byte [rax + 0x19], 2
jb 0x1400a7057
mov rcx, qword [rax + 0x10]
lea r8, [0x14015ac58]
mov edx, 0x5b
mov r9d, ebx
call fcn.140004b9c
mov rsi, qword [rsp + 0x30]
jmp 0x1400a71e1
mov rsi, qword [rsp + 0x30]
mov r14d, 0x105
mov r8, rsi
mov edx, r14d
mov rcx, rbp
call fcn.14003bbe8
mov ebx, eax
test eax, eax
jns 0x1400a70d0
mov rax, qword [0x14017a048]
lea rcx, [0x14017a048]
cmp rax, rcx
je 0x1400a71e1
test byte [rax + 0x1c], 2
je 0x1400a71e1
cmp byte [rax + 0x19], 2
jb 0x1400a71e1
mov rcx, qword [rax + 0x10]
lea r8, [0x14015ac58]
mov edx, 0x5c
mov dword [rsp + 0x20], 0x103
mov r9, rsi
call fcn.140005ca0
jmp 0x1400a71e1
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rbp + rax*2], r15w
jne 0x1400a70d7
add rax, 0x19
cmp rax, r12
jb 0x1400a7103
lea r8, str.wcslen_wszBuf___wcslen_x_wszSVIDirectoryName____MAX_PATH
mov edx, 0xb8d
lea rcx, [0x14015a3d8]
call fcn.1400876c8
lea r8, str.System_Volume_Information
mov rdx, r14
mov rcx, rbp
call fcn.140053064
mov rax, rdi
inc rax
cmp word [rbp + rax*2], r15w
jne 0x1400a7118
add rax, 0x13
cmp rax, r12
jb 0x1400a7144
lea r8, str.wcslen_wszBuf___wcslen_x_wszApplicationName___1___MAX_PATH
mov edx, 0xb95
lea rcx, [0x14015a3d8]
call fcn.1400876c8
lea r8, [0x140152808]
mov rdx, r14
mov rcx, rbp
call fcn.140053064
lea r8, [0x140152890]
mov rdx, r14
mov rcx, rbp
call fcn.140053064
xor edx, edx
mov rcx, rbp
call fcn.14008f20c
mov ebx, eax
test eax, eax
js 0x1400a71e1
inc rdi
cmp word [rbp + rdi*2], r15w
jne 0x1400a7178
add rdi, 0x11
cmp rdi, r12
jb 0x1400a71a4
lea r8, str.wcslen_wszBuf___wcslen_x_wszSPPMetadataDirectoryName___1___MAX_PATH
mov edx, 0xba5
lea rcx, [0x14015a3d8]
call fcn.1400876c8
lea rax, str.SPPMetadataCache
mov r9, rbp
lea r8, [0x140159848]
mov qword [rsp + 0x20], rax
mov rdx, r12
lea rcx, [rsp + 0x250]
call fcn.1400100a8
mov ebx, eax
test eax, eax
js 0x1400a71e1
xor edx, edx
lea rcx, [rsp + 0x250]
call fcn.14008f20c
mov ebx, eax
test rsi, rsi
je 0x1400a71f5
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14014b700
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret