Function at 0x140015b50
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x6e0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x140036138]
xor rax, rsp
mov qword [rsp + 0x6d0], rax
mov r12, rdx
mov rbp, rcx
xor r13d, r13d
mov rbx, r13
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], r13
mov word [r11 - 0x248], r13w
mov edi, 0x208
mov r8, rdi
xor edx, edx
lea rcx, [r11 - 0x246]
call sub.msvcrt.dll_memset
mov word [rsp + 0xa0], r13w
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0xa2]
call sub.msvcrt.dll_memset
mov word [rsp + 0x2b0], r13w
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0x2b2]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x48]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
lea rdx, [rsp + 0x4c0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, r13d
jne 0x140015c43
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
jne 0x140015c2b
mov esi, 0x8000ffff
jmp 0x140015d18
movzx esi, ax
or esi, 0x80070000
cmp eax, r13d
cmovle esi, eax
cmp esi, r13d
jl 0x140015d18
lea rcx, [rsp + 0x90]
call qword [sym.imp.ole32.dll_CoCreateGuid]
mov esi, eax
cmp eax, r13d
jl 0x140015d18
mov edi, 0x105
mov r8d, edi
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x90]
call qword [sym.imp.ole32.dll_StringFromGUID2]
mov r14d, 0x80004005
cmp eax, r13d
cmove esi, r14d
cmp esi, r13d
jl 0x140015d18
lea rax, [rsp + 0x2b0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c0]
lea r8, [0x140003db8]
mov rdx, rdi
lea rcx, [rsp + 0xa0]
call fcn.140018158
mov esi, eax
cmp eax, r13d
jl 0x140015d18
lea rcx, [rsp + 0xa0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, r13d
cmovne esi, r14d
cmp esi, r13d
jl 0x140015d18
lea rcx, [rbp + 8]
lea r8, [rsp + 0x40]
lea rdx, [0x140003d30]
call fcn.140028e18
mov esi, eax
cmp eax, r13d
jl 0x140015d13
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [rax + 0x168]
mov esi, eax
jmp 0x140015d18
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x38], r13
lea rcx, [0x140003cf4]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
mov qword [rsp + 0x88], rax
cmp rax, r13
jne 0x140015d45
mov ecx, 0x8007000e
call fcn.140008378
nop
mov rax, qword [rbx]
lea r8, [rsp + 0x38]
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x188]
nop
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
call qword [rax + 0xa8]
cmp esi, r13d
jl 0x140015fad
lea r9, [0x140003dd0]
mov r8, qword [rsp + 0x30]
mov rdx, rbx
mov rcx, rbp
call fcn.140016018
mov esi, eax
cmp eax, r13d
jl 0x140015fad
lea r9, [0x140003df0]
mov r8, qword [rsp + 0x30]
mov rdx, rbx
mov rcx, rbp
call fcn.140016018
mov esi, eax
cmp eax, r13d
jl 0x140015fad
lea r9, [0x140003e10]
mov r8, qword [rsp + 0x30]
mov rdx, rbx
mov rcx, rbp
call fcn.140016018
mov esi, eax
cmp eax, r13d
jl 0x140015fad
lea r9, [0x140003e28]
mov r8, qword [rsp + 0x30]
mov rdx, rbx
mov rcx, rbp
call fcn.140016018
mov esi, eax
cmp eax, r13d
jl 0x140015fad
lea r9, [0x140003e48]
mov r8, qword [rsp + 0x30]
mov rdx, rbx
mov rcx, rbp
call fcn.140016018
mov esi, eax
cmp eax, r13d
jl 0x140015fad
lea r9, [0x140003e60]
mov r8, qword [rsp + 0x30]
mov rdx, rbx
mov rcx, rbp
call fcn.140016018
mov esi, eax
cmp eax, r13d
jl 0x140015fad
lea r9, [0x140003e78]
mov r8, qword [rsp + 0x30]
mov rdx, rbx
mov rcx, rbp
call fcn.140016018
mov esi, eax
cmp eax, r13d
jl 0x140015fad
lea r9, [0x140003e98]
mov r8, qword [rsp + 0x30]
mov rdx, rbx
mov rcx, rbp
call fcn.140016018
mov esi, eax
cmp eax, r13d
jl 0x140015fad
mov r8, qword [rsp + 0x30]
mov rdx, rbx
mov rcx, rbp
call fcn.1400160a0
mov esi, eax
cmp eax, r13d
jl 0x140015fad
lea r9, [0x140003ec0]
mov r8, qword [rsp + 0x30]
mov rdx, rbx
mov rcx, rbp
call fcn.140016018
mov esi, eax
cmp eax, r13d
jl 0x140015fad
lea rcx, [rsp + 0x48]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, 8
mov word [rsp + 0x48], di
lea rcx, [rsp + 0xa0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x50], rax
cmp rax, r13
jne 0x140015f13
lea eax, [rdi + 2]
mov word [rsp + 0x48], ax
mov ecx, 0x8007000e
mov dword [rsp + 0x50], ecx
call fcn.140008378
int3
lea rcx, [rsp + 0x60]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov r9d, edi
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
cmp eax, r13d
jge 0x140015f42
mov ecx, eax
call fcn.140008378
int3
mov rdx, qword [rsp + 0x68]
cmp rdx, r13
jne 0x140015f51
mov ecx, r13d
jmp 0x140015f63
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rcx, r12
call fcn.14000cd0c
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
mov rax, qword [rbx]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [rax + 0x210]
mov esi, eax
mov rcx, qword [rsp + 0x38]
cmp rcx, r13
je 0x140015fbe
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rcx, qword [rsp + 0x30]
cmp rcx, r13
je 0x140015fdb
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov eax, esi
mov rcx, qword [rsp + 0x6d0]
xor rcx, rsp
call fcn.140029f80
lea r11, [rsp + 0x6e0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret