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

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x180066180]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r15, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
mov dword [rsp + 0x38], esi
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r15], rax
mov r12d, 1
mov dword [rsp + 0x38], r12d
mov byte [rsp + 0x50], sil
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x51]
call fcn.18002c930
mov ecx, dword [0x180069c80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x88888889
imul r8d
add edx, r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub r8d, edx
cmp r8d, 0xb
jne 0x18000b1a8
lea ecx, [rsi + 0x28]
call fcn.1800289f0
mov rdi, rax
mov ebx, esi
call fcn.1800289f8
add eax, dword [0x180069c80]
mov dword [rdi + rbx*4], eax
inc rbx
cmp rbx, 0xa
jl 0x18000b180
mov ecx, dword [rdi + 0x24]
mov dword [0x180069c80], ecx
mov rcx, rdi
call fcn.180028a24
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x2a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x18000b1ec
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x18000b38d
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x50]
or rbp, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x18000b249
movzx edi, cx
mov ecx, edi
call fcn.180002840
test rax, rax
je 0x18000b323
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1800023e0
mov rbx, qword [rsp + 0x30]
jmp 0x18000b323
lea rax, [rsp + 0x50]
mov rdi, rbp
inc rdi
cmp byte [rax + rdi], 0
jne 0x18000b251
test edi, edi
jne 0x18000b2b5
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x18000b323
cmp dword [rdx + 0x10], 0
jge 0x18000b291
cmp dword [rbx - 0xc], 0
jge 0x18000b286
mov ecx, 0x80070057
call fcn.180002bd0
int3
mov dword [rbx - 0x10], esi
mov byte [rbx], 0
jmp 0x18000b323
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18000b2a1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
jmp 0x18000b323
mov r14d, dword [rbx - 0x10]
lea rsi, [rsp + 0x50]
sub rsi, rbx
test edi, edi
jns 0x18000b2d0
mov ecx, 0x80070057
call fcn.180002bd0
int3
sub r12d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, r12d
jge 0x18000b2ef
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.180002c50
mov rbx, qword [rsp + 0x30]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
cmp rsi, r14
movsxd r14, edi
mov r9, r14
ja 0x18000b30c
lea r8, [rsi + rbx]
call fcn.180029ae8
jmp 0x18000b316
lea r8, [rsp + 0x50]
call fcn.180028f24
cmp edi, dword [rbx - 0xc]
jg 0x18000b392
mov dword [rbx - 0x10], edi
mov byte [r14 + rbx], 0
lea rsi, [rbx - 0x18]
mov rdi, qword [r15]
sub rdi, 0x18
cmp rsi, rdi
je 0x18000b379
cmp dword [rdi + 0x10], 0
jl 0x18000b369
mov rax, qword [rdi]
cmp qword [rsi], rax
jne 0x18000b369
mov rcx, rsi
call fcn.180002110
mov rbx, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x18000b360
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rVariantCopy + 8]
lea rax, [rbx + 0x18]
mov qword [r15], rax
jmp 0x18000b379
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
mov rcx, r15
call fcn.180002020
nop
lock add dword [rsi + 0x10], 0xffffffff
jg 0x18000b38d
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
call qword [rVariantCopy + 8]
mov rax, r15
jmp 0x18000b39d
mov ecx, 0x80070057
call fcn.180002bd0
nop
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1800289d0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret