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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x498]
sub rsp, 0x560
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
movaps xmmword [rax - 0x48], xmm6
mov rax, qword [0x14047b0a0]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov rsi, r8
mov ebx, edx
mov r13, rcx
movsx eax, r9w
mov dword [rsp + 0x70], eax
shr r9, 0x10
movsx eax, r9w
mov dword [rsp + 0x74], eax
xor r12d, r12d
mov qword [rbp + 0x128], r12
movdqa xmm0, xmmword [0x140415690]
movdqu xmmword [rbp + 0x98], xmm0
mov word [rbp + 0x88], r12w
xor r8d, r8d
lea rdx, [0x1403ff228]
lea rcx, [rbp + 0x88]
call fcn.14007ece0
nop
lea r14, [r12 - 1]
cmp ebx, 0xc0b
jne 0x1400f2e42
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x230]
call fcn.1402dd440
lea rax, [rbp + 0x230]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
movdqa xmm0, xmmword [0x140415690]
movdqu xmmword [rbp + 0xd8], xmm0
mov word [rbp + 0xc8], r12w
lea rax, [rbp + 0x230]
mov r8, r14
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400f2d10
lea rdx, [rbp + 0x230]
lea rcx, [rbp + 0xc8]
call fcn.14007ece0
lea rcx, [rbp + 0x88]
call fcn.14007ec70
movups xmm0, xmmword [rbp + 0xc8]
movups xmmword [rbp + 0x88], xmm0
movups xmm1, xmmword [rbp + 0xd8]
movups xmmword [rbp + 0x98], xmm1
movdqa xmm0, xmmword [0x140415690]
movdqu xmmword [rbp + 0xd8], xmm0
mov word [rbp + 0xc8], r12w
lea rcx, [rbp + 0xc8]
call fcn.14007ec70
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_790404dcfa5ccc9d8d77736e679f079d___void__class_std::shared_ptr_class_category_data__.0
mov qword [rbp + 0x1d0], rax
lea rcx, [rbp + 0x1d0]
mov qword [rbp + 0x208], rcx
mov r8, qword [rbp + 0x128]
test r8, r8
je 0x1400f2dc6
mov rax, qword [r8]
lea rcx, [rbp + 0xf0]
cmp r8, rcx
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov qword [rbp + 0x128], r12
mov rcx, qword [rbp + 0x208]
test rcx, rcx
je 0x1400f2e27
lea rax, [rbp + 0x1d0]
cmp rcx, rax
jne 0x1400f2e16
mov rax, qword [rcx]
lea rdx, [rbp + 0xf0]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rbp + 0x128], rax
mov rcx, qword [rbp + 0x208]
test rcx, rcx
je 0x1400f2e14
mov rax, qword [rcx]
lea rdx, [rbp + 0x1d0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x208], r12
mov rcx, r12
jmp 0x1400f2e27
mov qword [rbp + 0x128], rcx
mov qword [rbp + 0x208], r12
mov rcx, r12
test rcx, rcx
je 0x1400f2e40
mov rax, qword [rcx]
lea rdx, [rbp + 0x1d0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
jmp 0x1400f2ea1
mov rdx, qword [r13 + 0xb8]
lea rcx, [rbp + 0x210]
call fcn.140136640
mov rbx, rax
lea rax, [rbp + 0x88]
cmp rax, rbx
je 0x1400f2e95
lea rcx, [rbp + 0x88]
call fcn.14007ec70
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0x88], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0x98], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
lea rcx, [rbp + 0x210]
call fcn.14007ec70
lea rcx, [rbp + 0x88]
cmp qword [rbp + 0xa0], 8
cmovae rcx, qword [rbp + 0x88]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400f2f94
call fcn.1400ffc70
mov rbx, qword [rax]
movdqa xmm0, xmmword [0x140415690]
movdqu xmmword [rbp + 0x140], xmm0
mov word [rbp + 0x130], r12w
mov r8d, reloc.SHELL32.dll_ILCombine
lea rdx, str.STRID_DESK_NOT_PERMISSION
lea rcx, [rbp + 0x130]
call fcn.14007ece0
nop
call fcn.140148580
lea r8, [rbp + 0x130]
lea rdx, [rbp + 0x150]
mov rcx, rax
call fcn.140148c00
nop
lea rcx, [rbp + 0x130]
call fcn.14007ec70
nop
lea r9, [rbp + 0x150]
cmp qword [rbp + 0x168], 8
cmovae r9, qword [rbp + 0x150]
lea r8, [rsp + 0x70]
mov rdx, qword [r13 + 0xb8]
mov rcx, rbx
call fcn.140122000
nop
lea rcx, [rbp + 0x150]
call fcn.14007ec70
nop
lea rcx, [rbp + 0x88]
call fcn.14007ec70
nop
mov rcx, qword [rbp + 0x128]
test rcx, rcx
je 0x1400f2f8f
mov rax, qword [rcx]
lea rdx, [rbp + 0xf0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
jmp 0x1400f3679
lea rcx, [rbp + 0x88]
cmp qword [rbp + 0xa0], 8
cmovae rcx, qword [rbp + 0x88]
call fcn.1400851b0
test al, al
je 0x1400f2fda
call fcn.140084f90
mov r8, r14
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400f2fc0
mov rdx, rax
lea rcx, [rbp + 0x88]
call fcn.14007ece0
lea r8, [rbp + 0x88]
cmp qword [rbp + 0xa0], 8
cmovae r8, qword [rbp + 0x88]
lea rdx, [rbp - 0x38]
mov rcx, r13
call fcn.1400ef300
mov rdi, qword [rax]
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x1400f3035
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400f3035
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400f3035
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
test rdi, rdi
je 0x1400f310c
call fcn.1400ffc70
mov rbx, qword [rax]
movdqa xmm0, xmmword [0x140415690]
movdqu xmmword [rbp + 0x180], xmm0
mov word [rbp + 0x170], r12w
mov r8d, reloc.WLDAP32.dll_Ordinal_26
lea rdx, str.STRID_DESK_DIRECTORY_EXIST
lea rcx, [rbp + 0x170]
call fcn.14007ece0
nop
call fcn.140148580
lea r8, [rbp + 0x170]
lea rdx, [rbp + 0x190]
mov rcx, rax
call fcn.140148c00
nop
lea rcx, [rbp + 0x170]
call fcn.14007ec70
nop
lea r9, [rbp + 0x190]
cmp qword [rbp + 0x1a8], 8
cmovae r9, qword [rbp + 0x190]
lea r8, [rsp + 0x70]
mov rdx, qword [r13 + 0xb8]
mov rcx, rbx
call fcn.140122000
nop
lea rcx, [rbp + 0x190]
call fcn.14007ec70
nop
lea rcx, [rbp + 0x88]
call fcn.14007ec70
nop
mov rcx, qword [rbp + 0x128]
test rcx, rcx
je 0x1400f3107
mov rax, qword [rcx]
lea rdx, [rbp + 0xf0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
jmp 0x1400f3679
mov edx, esi
lea rcx, [rsp + 0x60]
call fcn.1400d5910
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x78], xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400f3434
mov rax, qword [rcx + 0xa28]
test rax, rax
je 0x1400f3218
mov edx, dword [rax + 0x84]
cmp edx, 3
jne 0x1400f31f0
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400f3167
lock inc dword [rax + 8]
mov rcx, qword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x50], xmm6
lea rdx, [rbp + 0x78]
call fcn.1400d3040
xor eax, eax
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0xb0], rax
mov r8b, 1
lea rdx, [rbp + 0xa8]
movq r15, xmm6
mov qword [rsp + 0x50], r15
mov rcx, r15
call fcn.14012ae10
mov edx, dword [rsp + 0x70]
sub edx, dword [r15 + 0xa8]
sub edx, dword [rbp + 0xa8]
mov dword [rbp - 0x78], edx
mov ecx, dword [rsp + 0x74]
sub ecx, dword [r15 + 0xac]
sub ecx, dword [rbp + 0xac]
mov dword [rbp - 0x74], ecx
mov eax, edx
sub eax, dword [rbp + 0x78]
add dword [rbp + 0x80], eax
mov dword [rbp + 0x78], edx
mov eax, ecx
sub eax, dword [rbp + 0x7c]
add dword [rbp + 0x84], eax
mov dword [rbp + 0x7c], ecx
jmp 0x1400f342b
cmp edx, 4
jne 0x1400f3218
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400f3203
lock inc dword [rax + 8]
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x50], xmm0
mov r15, qword [rsp + 0x50]
jmp 0x1400f342b
mov r8b, 1
lea rdx, [rbp + 0x78]
call fcn.14012ae10
mov rax, qword [rsp + 0x60]
mov edx, dword [rax + 0x8c]
lea rcx, [rbp - 0x28]
call fcn.1400d5910
mov r15, qword [rax]
mov rsi, qword [rax + 8]
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x58], rsi
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x1400f328e
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400f3289
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400f3289
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r15, qword [rsp + 0x50]
mov edi, dword [rbp + 0x80]
sub edi, dword [rbp + 0x78]
mov ebx, dword [rbp + 0x84]
sub ebx, dword [rbp + 0x7c]
xor eax, eax
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0xc0], rax
mov r8b, 1
lea rdx, [rbp + 0xb8]
mov rcx, r15
call fcn.14012ae10
mov eax, dword [rbp + 0x78]
sub eax, dword [rbp + 0xb8]
mov dword [rbp + 0x78], eax
mov ecx, dword [rbp + 0x7c]
sub ecx, dword [rbp + 0xbc]
mov dword [rbp + 0x7c], ecx
sub eax, dword [r15 + 0xa8]
mov dword [rbp + 0x78], eax
sub ecx, dword [r15 + 0xac]
mov dword [rbp + 0x7c], ecx
add eax, edi
mov dword [rbp + 0x80], eax
lea eax, [rcx + rbx]
mov dword [rbp + 0x84], eax
mov qword [rbp + 0x70], r12
mov ecx, dword [r15 + 0x88]
mov r8, qword [rsp + 0x60]
add r8, 0x38
cmp qword [r8 + 0x18], 8
jb 0x1400f331d
mov r8, qword [r8]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r12
lea rax, [0x1403ff228]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x28], ecx
lea rax, [rbp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, [rbp - 0x18]
mov rcx, r13
call fcn.1400ee050
mov r15, qword [rax]
mov rcx, qword [rax + 8]
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rcx
test rsi, rsi
je 0x1400f33ac
mov eax, r14d
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1400f33a7
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax]
mov eax, r14d
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x1400f33a7
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r15, qword [rsp + 0x50]
mov rbx, qword [rbp - 0x10]
test rbx, rbx
je 0x1400f33e5
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400f33e0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400f33e0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r15, qword [rsp + 0x50]
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400f3400
lock inc dword [rax + 8]
mov r15, qword [rsp + 0x50]
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x70], xmm0
mov r8d, r14d
lea rdx, [rbp - 0x70]
mov rcx, r15
call fcn.140131050
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0xa0]
mov dword [r15 + 0xa0], ecx
test r15, r15
jne 0x1400f34d6
call fcn.1400dc1c0
mov rdx, qword [rax]
add rdx, 0x48
lea rcx, [rbp + 0x1b0]
call fcn.14007eaa0
nop
lea r8, [rbp + 0x1b0]
cmp qword [rbp + 0x1c8], 8
cmovae r8, qword [rbp + 0x1b0]
lea rdx, [rbp - 0x60]
mov rcx, r13
call fcn.1400ef0d0
nop
lea rcx, [rbp + 0x1b0]
call fcn.14007ec70
mov r15, qword [rbp - 0x60]
mov qword [rsp + 0x50], r15
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbp - 0x58]
mov qword [rsp + 0x58], rax
test rbx, rbx
je 0x1400f34c9
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400f34c4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400f34c4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r15, qword [rsp + 0x50]
lea rdx, [rbp + 0x78]
mov rcx, qword [rbp - 0x60]
call fcn.1400d3040
lea rax, [rbp - 8]
mov qword [rbp - 0x80], rax
mov qword [rbp + 0x30], r12
mov rcx, qword [rbp + 0x128]
test rcx, rcx
je 0x1400f34fb
mov rax, qword [rcx]
lea rdx, [rbp - 8]
call qword [rax]
mov qword [rbp + 0x30], rax
lea rsi, [rbp + 0x88]
mov rdx, qword [rbp + 0x88]
cmp qword [rbp + 0xa0], 8
cmovae rsi, rdx
lea rdi, [rbp + 0x88]
cmovae rdi, rdx
mov ebx, dword [r15 + 0x88]
lea rcx, [rbp + 0x88]
cmovae rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rcx, [rbp - 8]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], ebx
lea rcx, [rbp + 0x78]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8, rax
lea rdx, [rbp - 0x50]
mov rcx, r13
call fcn.1400ee050
nop
mov rax, qword [r15 + 0xa28]
test rax, rax
je 0x1400f35a5
cmp dword [rax + 0x84], 4
jne 0x1400f35a5
mov rax, qword [rbp - 0x50]
mov edx, dword [rax + 0x88]
lea rcx, [r15 + 0x780]
add edx, 0x3e8
call fcn.14011ff50
nop
mov rbx, qword [rbp - 0x48]
test rbx, rbx
je 0x1400f35da
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400f35da
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400f35da
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400f3617
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400f3617
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400f3617
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x1400f364c
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400f364c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x1400f364c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp + 0x88]
call fcn.14007ec70
nop
mov rcx, qword [rbp + 0x128]
test rcx, rcx
je 0x1400f3679
mov rax, qword [rcx]
lea rdx, [rbp + 0xf0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
xor r9d, r9d
xor r8d, r8d
mov edx, 0xbed
mov rcx, r13
call fcn.14012b100
xor eax, eax
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.1401aed20
mov rbx, qword [rsp + 0x5a8]
movaps xmm6, xmmword [rsp + 0x550]
add rsp, 0x560
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret