Function at 0x1801fc470
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc50]
sub rsp, 0xd50
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0xda8], rbx
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rbp + 0xc40], rax
mov rbx, r8
mov r15, rdx
mov r12, rcx
cmp qword [rdx + 0x10], 0
je 0x1801fcb2d
cmp qword [r8 + 0x50], 0
je 0x1801fcb2d
mov r14, qword [r8 + 0x10]
test r14, r14
je 0x1801fcb2d
cmp qword [r8 + 0x30], 0
je 0x1801fcb2d
cmp qword [r8 + 0x70], 0
je 0x1801fcb2d
cmp qword [r8 + 0x90], 0
je 0x1801fcb2d
lea rsi, [r8 + 0x60]
mov r9, rsi
mov r10, qword [rsi + 0x18]
cmp r10, 8
jb 0x1801fc511
mov r9, qword [rsi]
mov r11, qword [rsi + 0x10]
mov edx, 1
cmp r11, rdx
jne 0x1801fc545
mov r8d, edx
lea rcx, [0x18038014c]
sub r9, rcx
nop dword [rax]
movzx eax, word [rcx]
cmp word [r9 + rcx], ax
jne 0x1801fc545
add rcx, 2
sub r8, rdx
jne 0x1801fc530
jmp 0x1801fc588
mov r8, rsi
cmp r10, 8
jb 0x1801fc551
mov r8, qword [rsi]
cmp r11, rdx
jne 0x1801fcb2d
lea rcx, [0x180380148]
sub r8, rcx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x1801fcb2d
add rcx, 2
sub rdx, 1
jne 0x1801fc570
mov rdi, qword [r12]
add rdi, 8
cmp rdi, rbx
je 0x1801fc5ad
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1801fc5a2
mov rdx, qword [rbx]
mov r8, r14
mov rcx, rdi
call fcn.180033930
lea r8, [rbx + 0x20]
lea rcx, [rdi + 0x20]
cmp rcx, r8
je 0x1801fc5d0
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1801fc5c7
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
call fcn.180033930
lea r14, [rbx + 0x40]
lea rcx, [rdi + 0x40]
cmp rcx, r14
je 0x1801fc5f3
mov rdx, r14
cmp qword [r14 + 0x18], 8
jb 0x1801fc5ea
mov rdx, qword [r14]
mov r8, qword [r14 + 0x10]
call fcn.180033930
lea rcx, [rdi + 0x60]
cmp rcx, rsi
je 0x1801fc612
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1801fc609
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
call fcn.180033930
lea r8, [rbx + 0x80]
lea rcx, [rdi + 0x80]
cmp rcx, r8
je 0x1801fc63b
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1801fc632
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
call fcn.180033930
lea r8, [rbx + 0xa0]
lea rcx, [rdi + 0xa0]
cmp rcx, r8
je 0x1801fc664
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1801fc65b
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
call fcn.180033930
lea rdx, [rbx + 0xc0]
lea rcx, [rdi + 0xc0]
cmp rcx, rdx
je 0x1801fc683
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
call fcn.1801fcb70
mov rax, qword [r12]
xor r13d, r13d
mov qword [rax + 0x128], r13
mov rdx, r15
lea rcx, [rbp - 0x48]
call fcn.180037a20
nop
lea rcx, [rbp - 0x48]
call fcn.1801dbe90
test al, al
jne 0x1801fc6b4
lea rcx, [rbp - 0x48]
call fcn.1801dc660
lea rcx, [rbp - 0x48]
call fcn.1801dbe90
mov rbx, 0xffffffffffffffff
lea r15, [0x180482358]
lea rcx, [0x18048a8b0]
test al, al
jne 0x1801fc800
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x20], rcx
mov rcx, qword [0x18048a8b0]
test rcx, rcx
je 0x1801fc6f7
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov r8, qword [0x180482368]
test r8, r8
je 0x1801fc71b
mov rdx, r15
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rdx, qword [0x180482358]
jmp 0x1801fc7df
xor edx, edx
mov r8d, 0x20c
lea rcx, [rbp - 0x20]
call fcn.18029c350
lea rdx, [rbp - 0x20]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1801fc7e9
mov word [rbp + 0x1ea], r13w
xor edx, edx
mov r8d, 0x412
lea rcx, [rbp + 0x400]
call fcn.18029c350
mov r8d, 0x208
lea rdx, [rbp + 0x400]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [rax - 1]
cmp ecx, 0x207
ja 0x1801fc7c4
mov eax, eax
add rax, rax
cmp rax, 0x412
jae 0x1801fcb5d
mov word [rbp + rax + 0x400], r13w
lea rax, [rbp + 0x400]
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1801fc7b0
lea rdx, [rbp + 0x400]
jmp 0x1801fc7df
lea rax, [rbp - 0x20]
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1801fc7d0
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x48]
call fcn.180033930
nop
mov rcx, qword [0x18048a8b0]
test rcx, rcx
je 0x1801fc7fb
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x20], r13
mov rcx, qword [r12]
add rcx, 0x138
lea rax, [rbp - 0x48]
cmp rcx, rax
je 0x1801fc82b
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
call fcn.180033930
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x180397e60]
movdqu xmmword [rsp + 0x40], xmm1
mov word [rsp + 0x30], r13w
mov r8d, 8
lea rdx, str.download
lea rcx, [rsp + 0x30]
call fcn.180033930
nop
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x58]
call fcn.1801daa90
mov rdi, rax
lea rax, [rbp - 0x48]
cmp rax, rdi
je 0x1801fc8a7
lea rcx, [rbp - 0x48]
call fcn.1800338a0
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x38], xmm1
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 7
mov word [rdi], r13w
lea rcx, [rsp + 0x58]
call fcn.1800338a0
nop
lea rcx, [rsp + 0x30]
call fcn.1800338a0
mov r8, rsi
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x78]
call fcn.1801daa90
mov rdi, rax
lea rax, [rbp - 0x48]
cmp rax, rdi
je 0x1801fc901
lea rcx, [rbp - 0x48]
call fcn.1800338a0
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x38], xmm1
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 7
mov word [rdi], r13w
lea rcx, [rsp + 0x78]
call fcn.1800338a0
lea rcx, [rbp - 0x48]
call fcn.1801dbe90
test al, al
jne 0x1801fc921
lea rcx, [rbp - 0x48]
call fcn.1801dc660
lea rcx, [rbp - 0x48]
call fcn.1801dbe90
test al, al
jne 0x1801fca65
mov qword [rsp + 0x28], r13
lea rax, [0x18048a8b0]
mov qword [rsp + 0x28], rax
mov rcx, qword [0x18048a8b0]
test rcx, rcx
je 0x1801fc956
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov r8, qword [0x180482368]
test r8, r8
je 0x1801fc97a
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae r15, qword [0x180482358]
mov rdx, r15
jmp 0x1801fca44
xor edx, edx
mov r8d, 0x20c
lea rcx, [rbp + 0x1f0]
call fcn.18029c350
lea rdx, [rbp + 0x1f0]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1801fca4e
mov word [rbp + 0x3fa], r13w
xor edx, edx
mov r8d, 0x412
lea rcx, [rbp + 0x820]
call fcn.18029c350
mov r8d, 0x208
lea rdx, [rbp + 0x820]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [rax - 1]
cmp ecx, 0x207
ja 0x1801fca23
mov eax, eax
add rax, rax
cmp rax, 0x412
jae 0x1801fcb57
mov word [rbp + rax + 0x820], r13w
lea rax, [rbp + 0x820]
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1801fca10
lea rdx, [rbp + 0x820]
jmp 0x1801fca41
lea rax, [rbp + 0x1f0]
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1801fca30
lea rdx, [rbp + 0x1f0]
mov r8, rbx
lea rcx, [rbp - 0x48]
call fcn.180033930
nop
mov rcx, qword [0x18048a8b0]
test rcx, rcx
je 0x1801fca60
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], r13
mov rcx, qword [r12]
add rcx, 0x158
lea rax, [rbp - 0x48]
cmp rcx, rax
je 0x1801fca90
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
call fcn.180033930
mov r8, r14
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x68]
call fcn.1801daa90
mov rbx, rax
lea rax, [rbp - 0x48]
cmp rax, rbx
je 0x1801fcad4
lea rcx, [rbp - 0x48]
call fcn.1800338a0
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x38], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
lea rcx, [rbp - 0x68]
call fcn.1800338a0
mov r8d, 0x10
lea rdx, str..NewVersion.data
lea rcx, [rbp - 0x48]
call fcn.180033c20
mov rcx, qword [r12]
add rcx, 0x100
mov r8b, 1
lea rdx, [rbp - 0x48]
call fcn.1801eb760
mov rcx, qword [r12]
mov byte [rcx], al
mov rax, qword [r12]
mov rcx, qword [rax + 0x130]
test rcx, rcx
je 0x1801fcb24
mov byte [rcx + 8], 0
lea rcx, [rbp - 0x48]
call fcn.1800338a0
mov rcx, qword [rbp + 0xc40]
xor rcx, rsp
call fcn.1802994c0
mov rbx, qword [rsp + 0xda8]
add rsp, 0xd50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180299a68
nop
call fcn.180299a68
int3