Function at 0x1400aa210
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.14029e430
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x20b0], rbx
mov rax, qword [0x1403d88e8]
xor rax, rsp
mov qword [rbp + 0x1f70], rax
mov r14, r8
mov r15, rdx
mov qword [rsp + 0x68], r8
xor esi, esi
mov dword [rsp + 0x30], esi
call fcn.1400f9930
mov rcx, rax
test rax, rax
je 0x1400aa4d3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rbx, [0x140345b70]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140015a40
or rdi, 0xffffffffffffffff
test al, al
jne 0x1400aa2bb
mov rax, rdi
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400aa2a0
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1400105e0
nop
xor edx, edx
mov r8d, 0x2000
lea rcx, [rsp + 0x70]
call fcn.14029ff20
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 0x1400aa35d
lea rcx, [rsp + 0x70]
mov rax, rdi
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x1400aa2f5
cmp word [rsp + rax*2 + 0x6e], 0x5c
jne 0x1400aa321
lea rax, [rax*2 - 2]
cmp rax, 0x2000
jae 0x1400aa4de
mov word [rsp + rax + 0x70], si
lea rcx, [rsp + 0x70]
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400aa330
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.1400105e0
mov rdx, qword [r14]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.14001cfc0
mov rsi, qword [rsp + 0x38]
add rsi, 0xffffffffffffffe8
mov rcx, rsi
call fcn.140015740
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
call fcn.140033e80
test eax, eax
je 0x1400aa3ad
mov rcx, rsi
call fcn.140015740
add rax, 0x18
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
call fcn.1400aa0d0
nop
mov ebx, 1
jmp 0x1400aa406
call fcn.1400f9930
mov rcx, rax
test rax, rax
je 0x1400aa4e4
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.140015a40
test al, al
jne 0x1400aa3fc
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400aa3e1
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400105e0
nop
lea rax, [rsp + 0x40]
mov ebx, 2
mov dword [rsp + 0x30], ebx
mov rcx, qword [rax]
sub rcx, 0x18
call fcn.140015740
add rax, 0x18
mov qword [r15], rax
or ebx, 4
mov dword [rsp + 0x30], ebx
test bl, 2
je 0x1400aa452
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 0x1400aa44e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ebx, dword [rsp + 0x30]
test bl, 1
je 0x1400aa476
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400aa476
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 0x1400aa48f
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400aa4aa
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, r15
mov rcx, qword [rbp + 0x1f70]
xor rcx, rsp
call fcn.14029d880
mov rbx, qword [rsp + 0x20b0]
add rsp, 0x2080
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.14000de90
nop
call fcn.14029dc94
int3
mov ecx, 0x80004005
call fcn.14000de90
int3