Function at 0x180062860
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x2f0
mov qword [rax - 0x288], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1800c9088]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov r14, rdx
xor r12d, r12d
mov qword [rsp + 0x28], r12
lea rax, [0x180063040]
mov qword [rsp + 0x20], rax
lea r9d, [r12 + 0x10]
lea r8d, [r12 + 0x3c]
lea rdx, str.COMMON_SILO_DATA
call fcn.180050e78
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.18005cfa8
nop
test rbx, rbx
je 0x180062c80
mov edx, dword [rbx + 8]
cmp edx, 0xf0000000
je 0x180062c63
cmp edx, 0xf0000001
je 0x180062c46
cmp edx, 0xf0000002
je 0x180062aec
cmp edx, 0xf0000003
je 0x18006299f
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
lea r9d, [r12 + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x180062971
lea rax, [0x1800c9a10]
mov rcx, qword [0x1800c9a10]
cmp rcx, rax
je 0x180062960
test byte [rcx + 0x1c], 1
je 0x180062960
cmp byte [rcx + 0x19], 2
jb 0x180062960
lea edx, [r12 + 0x14]
lea r8, [0x1800a2280]
mov rcx, qword [rcx + 0x10]
call fcn.180001ae4
nop
lea rcx, [rsp + 0x40]
call fcn.18005d030
xor eax, eax
jmp 0x180062c8c
lea rax, [rsp + 0xd0]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x18006297d
mov r8d, ebx
lea rdx, [rsp + 0xd0]
mov rcx, r14
call fcn.180002bc4
jmp 0x180062c35
call fcn.180001d84
test rax, rax
je 0x180062cbc
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
lea rcx, str.CommonFilesDir
call fcn.180062ef4
test eax, eax
jns 0x180062a09
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1800629f8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x40]
call fcn.18005d030
xor eax, eax
jmp 0x180062c8c
mov rdx, qword [rsp + 0x30]
lea rdi, [rdx - 0x18]
mov rsi, qword [r14]
sub rsi, 0x18
cmp rdi, rsi
je 0x180062ac9
mov eax, dword [rsi + 0x10]
shr eax, 0x1f
test al, al
jne 0x180062abd
mov rcx, qword [rdi]
cmp rcx, qword [rsi]
jne 0x180062abd
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
mov eax, dword [rdi + 0x10]
shr eax, 0x1f
test al, al
jne 0x180062a5d
cmp rcx, qword [rdi]
jne 0x180062a5d
mov r15, rdi
lock inc dword [rdi + 0x10]
jmp 0x180062a96
mov rax, qword [rcx]
mov r8d, 2
mov edx, dword [rdi + 8]
call qword [rax]
mov r15, rax
test rax, rax
je 0x180062cb6
mov eax, dword [rdi + 8]
mov dword [r15 + 8], eax
lea r8, [rdi + 0x18]
lea rcx, [r15 + 0x18]
mov r9d, dword [rdi + 8]
inc r9d
movsxd rdx, r9d
call fcn.1800018f0
nop
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rsi + 0x10], eax
add eax, ebx
test eax, eax
jg 0x180062ab4
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, [r15 + 0x18]
mov qword [r14], rax
jmp 0x180062acd
mov r8d, dword [rdi + 8]
mov rcx, r14
call fcn.180002bc4
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdi + 0x10], eax
add eax, ebx
test eax, eax
jg 0x180062ae7
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x180062c35
call fcn.180001d84
mov rcx, rax
test rax, rax
je 0x180062cbc
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, str.ProgramFilesDir
call fcn.180062ef4
test eax, eax
jns 0x180062b56
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x180062b45
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x40]
call fcn.18005d030
xor eax, eax
jmp 0x180062c8c
mov rdx, qword [rsp + 0x38]
lea rdi, [rdx - 0x18]
mov rsi, qword [r14]
sub rsi, 0x18
cmp rdi, rsi
je 0x180062c16
mov eax, dword [rsi + 0x10]
shr eax, 0x1f
test al, al
jne 0x180062c0a
mov rcx, qword [rdi]
cmp rcx, qword [rsi]
jne 0x180062c0a
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
mov eax, dword [rdi + 0x10]
shr eax, 0x1f
test al, al
jne 0x180062baa
cmp rcx, qword [rdi]
jne 0x180062baa
mov r15, rdi
lock inc dword [rdi + 0x10]
jmp 0x180062be3
mov rax, qword [rcx]
mov r8d, 2
mov edx, dword [rdi + 8]
call qword [rax]
mov r15, rax
test rax, rax
je 0x180062cc7
mov eax, dword [rdi + 8]
mov dword [r15 + 8], eax
lea r8, [rdi + 0x18]
lea rcx, [r15 + 0x18]
mov r9d, dword [rdi + 8]
inc r9d
movsxd rdx, r9d
call fcn.1800018f0
nop
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rsi + 0x10], eax
add eax, ebx
test eax, eax
jg 0x180062c01
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, [r15 + 0x18]
mov qword [r14], rax
jmp 0x180062c1a
mov r8d, dword [rdi + 8]
mov rcx, r14
call fcn.180002bc4
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdi + 0x10], eax
add eax, ebx
test eax, eax
jg 0x180062c35
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rsp + 0x40]
call fcn.18005d030
mov eax, 1
jmp 0x180062c8c
mov rdx, r14
mov ecx, 0x1c
call fcn.180062cd4
mov ebx, eax
lea rcx, [rsp + 0x40]
call fcn.18005d030
mov eax, ebx
jmp 0x180062c8c
mov rdx, r14
mov ecx, 0x23
call fcn.180062cd4
mov ebx, eax
lea rcx, [rsp + 0x40]
call fcn.18005d030
mov eax, ebx
jmp 0x180062c8c
lea rcx, [rsp + 0x40]
call fcn.18005d030
xor eax, eax
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.180045d30
mov rbx, qword [rsp + 0x330]
add rsp, 0x2f0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.180001a24
nop
mov ecx, 0x80004005
call fcn.180001b3c
nop
call fcn.180001a24
int3