Function at 0x1400a7520
Capabilities:
Get common file path
Get program files directory

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1f80]
mov eax, 0x2080
call fcn.140282780
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x20b0], rbx
mov rax, qword [0x1403b88b0]
xor rax, rsp
mov qword [rbp + 0x1f70], rax
mov r15, r8
mov r14, rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x68], r8
xor esi, esi
mov dword [rsp + 0x30], esi
call fcn.1400f5f94
mov rcx, rax
test rax, rax
je 0x1400a77f2
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rbx, [0x140328530]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140014ab0
lea rdi, [rsi - 1]
test al, al
jne 0x1400a75cf
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400a75b4
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140010390
nop
xor edx, edx
mov r8d, 0x2000
lea rcx, [rsp + 0x70]
call fcn.1402841a0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400a7671
lea rcx, [rsp + 0x70]
mov rax, rdi
nop dword [rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x1400a7610
cmp word [rsp + rax*2 + 0x6e], 0x5c
jne 0x1400a763c
lea rax, [rax*2 - 2]
cmp rax, 0x2000
jae 0x1400a77fd
mov word [rsp + rax + 0x70], si
lea rcx, [rsp + 0x70]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400a7644
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.140010390
mov rdx, qword [r15]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.14001bf50
mov rsi, qword [rsp + 0x38]
add rsi, 0xffffffffffffffe8
mov rcx, rsi
call fcn.140014810
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.140031de0
test eax, eax
je 0x1400a76c1
mov rcx, rsi
call fcn.140014810
add rax, 0x18
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x48]
call fcn.1400a73e0
nop
mov ebx, 1
jmp 0x1400a771a
call fcn.1400f5f94
mov rcx, rax
test rax, rax
je 0x1400a77e7
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140014ab0
test al, al
jne 0x1400a7710
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400a76f5
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140010390
nop
lea rax, [rsp + 0x40]
mov ebx, 2
mov dword [rsp + 0x30], ebx
mov rcx, qword [rax]
sub rcx, 0x18
call fcn.140014810
add rax, 0x18
mov qword [r14], rax
or ebx, 4
mov dword [rsp + 0x30], ebx
test bl, 2
je 0x1400a7766
and ebx, 0xfffffffd
mov dword [rsp + 0x30], ebx
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a7762
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ebx, dword [rsp + 0x30]
test bl, 1
je 0x1400a778a
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a778a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, edi
lock xadd dword [rsi + 0x10], eax
sub eax, 1
jg 0x1400a77a3
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400a77be
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, r14
mov rcx, qword [rbp + 0x1f70]
xor rcx, rsp
call fcn.140281bf0
mov rbx, qword [rsp + 0x20b0]
add rsp, 0x2080
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.14000dc70
nop
mov ecx, 0x80004005
call fcn.14000dc70
nop
call fcn.140281ffc
int3