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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x400]
sub rsp, 0x500
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x548], rbx
mov rax, qword [0x14047b0a0]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov rsi, r8
mov ebx, edx
mov r13, rcx
xor r12d, r12d
mov qword [rbp + 0xf8], r12
movdqa xmm0, xmmword [0x140415690]
movdqu xmmword [rbp + 0x78], xmm0
mov word [rbp + 0x68], r12w
xor r8d, r8d
lea rdx, [0x1403ff228]
lea rcx, [rbp + 0x68]
call fcn.14007ece0
nop
lea r14, [r12 - 1]
cmp ebx, 0xc0b
jne 0x1401138d9
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call fcn.1402dd440
lea rax, [rbp + 0x1e0]
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 + 0xa8], xmm0
mov word [rbp + 0x98], r12w
lea rax, [rbp + 0x1e0]
mov r8, r14
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1401137b0
lea rdx, [rbp + 0x1e0]
lea rcx, [rbp + 0x98]
call fcn.14007ece0
lea rcx, [rbp + 0x68]
call fcn.14007ec70
movups xmm0, xmmword [rbp + 0x98]
movups xmmword [rbp + 0x68], xmm0
movups xmm1, xmmword [rbp + 0xa8]
movups xmmword [rbp + 0x78], xmm1
movdqa xmm0, xmmword [0x140415690]
movdqu xmmword [rbp + 0xa8], xmm0
mov word [rbp + 0x98], r12w
lea rcx, [rbp + 0x98]
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 + 0x180], rax
lea rcx, [rbp + 0x180]
mov qword [rbp + 0x1b8], rcx
mov r8, qword [rbp + 0xf8]
test r8, r8
je 0x14011385d
mov rax, qword [r8]
lea rcx, [rbp + 0xc0]
cmp r8, rcx
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov qword [rbp + 0xf8], r12
mov rcx, qword [rbp + 0x1b8]
test rcx, rcx
je 0x1401138be
lea rax, [rbp + 0x180]
cmp rcx, rax
jne 0x1401138ad
mov rax, qword [rcx]
lea rdx, [rbp + 0xc0]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rbp + 0xf8], rax
mov rcx, qword [rbp + 0x1b8]
test rcx, rcx
je 0x1401138ab
mov rax, qword [rcx]
lea rdx, [rbp + 0x180]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x1b8], r12
mov rcx, r12
jmp 0x1401138be
mov qword [rbp + 0xf8], rcx
mov qword [rbp + 0x1b8], r12
mov rcx, r12
test rcx, rcx
je 0x1401138d7
mov rax, qword [rcx]
lea rdx, [rbp + 0x180]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
jmp 0x14011392c
mov rdx, qword [r13 + 0xb8]
lea rcx, [rbp + 0x1c0]
call fcn.140136640
mov rbx, rax
lea rax, [rbp + 0x68]
cmp rax, rbx
je 0x140113920
lea rcx, [rbp + 0x68]
call fcn.14007ec70
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0x68], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0x78], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
lea rcx, [rbp + 0x1c0]
call fcn.14007ec70
lea rcx, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rcx, qword [rbp + 0x68]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140113a14
call fcn.1400ffc70
mov rbx, qword [rax]
movdqa xmm0, xmmword [0x140415690]
movdqu xmmword [rbp + 0x110], xmm0
mov word [rbp + 0x100], r12w
mov r8d, reloc.SHELL32.dll_ILCombine
lea rdx, str.STRID_DESK_NOT_PERMISSION
lea rcx, [rbp + 0x100]
call fcn.14007ece0
nop
call fcn.140148580
lea r8, [rbp + 0x100]
lea rdx, [rbp + 0x120]
mov rcx, rax
call fcn.140148c00
nop
lea rcx, [rbp + 0x100]
call fcn.14007ec70
nop
lea r9, [rbp + 0x120]
cmp qword [rbp + 0x138], 8
cmovae r9, qword [rbp + 0x120]
xor r8d, r8d
mov rdx, qword [r13 + 0xb8]
mov rcx, rbx
call fcn.140122000
nop
lea rcx, [rbp + 0x120]
call fcn.14007ec70
nop
lea rcx, [rbp + 0x68]
call fcn.14007ec70
nop
mov rcx, qword [rbp + 0xf8]
test rcx, rcx
je 0x140113a0f
mov rax, qword [rcx]
lea rdx, [rbp + 0xc0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
jmp 0x140114028
lea rcx, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rcx, qword [rbp + 0x68]
call fcn.1400851b0
test al, al
je 0x140113a57
call fcn.140084f90
mov r8, r14
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140113a40
mov rdx, rax
lea rcx, [rbp + 0x68]
call fcn.14007ece0
lea r8, [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae r8, qword [rbp + 0x68]
lea rdx, [rbp - 0x58]
mov rcx, r13
call fcn.14010e370
mov rdi, qword [rax]
mov rbx, qword [rbp - 0x50]
test rbx, rbx
je 0x140113aac
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140113aac
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140113aac
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
test rdi, rdi
je 0x140113b7e
call fcn.1400ffc70
mov rbx, qword [rax]
movdqa xmm0, xmmword [0x140415690]
movdqu xmmword [rbp + 0x150], xmm0
mov word [rbp + 0x140], r12w
mov r8d, reloc.WLDAP32.dll_Ordinal_26
lea rdx, str.STRID_DESK_DIRECTORY_EXIST
lea rcx, [rbp + 0x140]
call fcn.14007ece0
nop
call fcn.140148580
lea r8, [rbp + 0x140]
lea rdx, [rbp + 0x160]
mov rcx, rax
call fcn.140148c00
nop
lea rcx, [rbp + 0x140]
call fcn.14007ec70
nop
lea r9, [rbp + 0x160]
cmp qword [rbp + 0x178], 8
cmovae r9, qword [rbp + 0x160]
xor r8d, r8d
mov rdx, qword [r13 + 0xb8]
mov rcx, rbx
call fcn.140122000
nop
lea rcx, [rbp + 0x160]
call fcn.14007ec70
nop
lea rcx, [rbp + 0x68]
call fcn.14007ec70
nop
mov rcx, qword [rbp + 0xf8]
test rcx, rcx
je 0x140113b79
mov rax, qword [rcx]
lea rdx, [rbp + 0xc0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
jmp 0x140114028
mov edx, esi
lea rcx, [rsp + 0x60]
call fcn.1400d5910
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x58], xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140113f8c
mov rax, qword [rcx + 0xa28]
test rax, rax
je 0x140113bda
cmp dword [rax + 0x84], 4
jne 0x140113bda
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x140113bca
lock inc dword [rbx + 8]
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x50], xmm0
jmp 0x140113e82
mov r8b, 1
lea rdx, [rbp + 0x58]
call fcn.14012ae10
mov rax, qword [rsp + 0x60]
mov edx, dword [rax + 0x8c]
lea rcx, [rbp - 0x48]
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 + 0x70], rsi
mov qword [rsp + 0x58], rsi
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x140113c50
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140113c4b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140113c4b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r15, qword [rsp + 0x50]
mov edi, dword [rbp + 0x60]
sub edi, dword [rbp + 0x58]
mov ebx, dword [rbp + 0x64]
sub ebx, dword [rbp + 0x5c]
xor eax, eax
mov qword [rbp + 0x88], rax
mov qword [rbp + 0x90], rax
mov r8b, 1
lea rdx, [rbp + 0x88]
mov rcx, r15
call fcn.14012ae10
mov eax, dword [rbp + 0x58]
sub eax, dword [rbp + 0x88]
mov dword [rbp + 0x58], eax
mov ecx, dword [rbp + 0x5c]
sub ecx, dword [rbp + 0x8c]
mov dword [rbp + 0x5c], ecx
sub eax, dword [r15 + 0xa8]
mov dword [rbp + 0x58], eax
sub ecx, dword [r15 + 0xac]
mov dword [rbp + 0x5c], ecx
add eax, edi
mov dword [rbp + 0x60], eax
lea eax, [rcx + rbx]
mov dword [rbp + 0x64], eax
mov qword [rbp + 0x50], r12
mov ecx, dword [r15 + 0x88]
mov r8, qword [rsp + 0x60]
add r8, 0x38
cmp qword [r8 + 0x18], 8
jb 0x140113cd3
mov r8, qword [r8]
lea rax, [rbp + 0x18]
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 + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, [rbp - 0x38]
mov rcx, r13
call fcn.14010d4d0
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rcx
test rsi, rsi
je 0x140113d5e
mov eax, r14d
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x140113d5e
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax]
mov eax, r14d
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x140113d5e
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x140113d93
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140113d93
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140113d93
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140113da9
lock inc dword [rax + 8]
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x80], xmm0
mov r8d, r14d
lea rdx, [rbp - 0x80]
mov r15, qword [rsp + 0x50]
mov rcx, r15
call fcn.140131050
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0xa0]
mov dword [r15 + 0xa0], ecx
mov rbx, qword [r15 + 0xa30]
test rbx, rbx
je 0x140113df0
lock inc dword [rbx + 8]
mov rbx, qword [r15 + 0xa30]
mov rdx, qword [r15 + 0xa28]
mov rax, qword [rsp + 0x60]
mov rdi, qword [rax + 0xa30]
test rdi, rdi
je 0x140113e13
lock inc dword [rdi + 8]
mov rdi, qword [rax + 0xa30]
mov rax, qword [rax + 0xa28]
mov ecx, dword [rax + 0x68]
mov dword [rdx + 0x68], ecx
test rdi, rdi
je 0x140113e51
mov eax, r14d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140113e51
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, r14d
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x140113e51
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
test rbx, rbx
je 0x140113e82
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140113e82
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140113e82
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
cmp qword [rsp + 0x50], 0
je 0x140113f8c
lea rax, [rbp - 0x28]
mov qword [rsp + 0x78], rax
mov qword [rbp + 0x10], r12
mov rcx, qword [rbp + 0xf8]
test rcx, rcx
je 0x140113eb4
mov rax, qword [rcx]
lea rdx, [rbp - 0x28]
call qword [rax]
mov qword [rbp + 0x10], rax
lea rsi, [rbp + 0x68]
mov rdx, qword [rbp + 0x68]
cmp qword [rbp + 0x80], 8
cmovae rsi, rdx
lea rdi, [rbp + 0x68]
cmovae rdi, rdx
mov r15, qword [rsp + 0x50]
mov ebx, dword [r15 + 0x88]
lea rcx, [rbp + 0x68]
cmovae rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rcx, [rbp - 0x28]
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 + 0x58]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8, rax
lea rdx, [rbp - 0x70]
mov rcx, r13
call fcn.14010d4d0
nop
mov rax, qword [r15 + 0xa28]
test rax, rax
je 0x140113f57
cmp dword [rax + 0x84], 4
jne 0x140113f57
mov rax, qword [rbp - 0x70]
mov edx, dword [rax + 0x88]
lea rcx, [r15 + 0x780]
add edx, 0x3e8
call fcn.14011ff50
nop
mov rbx, qword [rbp - 0x68]
test rbx, rbx
je 0x140113f8c
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140113f8c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140113f8c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140113fc9
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140113fc9
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 0x140113fc9
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 0x140113ffe
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140113ffe
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x140113ffe
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp + 0x68]
call fcn.14007ec70
nop
mov rcx, qword [rbp + 0xf8]
test rcx, rcx
je 0x140114028
mov rax, qword [rcx]
lea rdx, [rbp + 0xc0]
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 + 0x3f0]
xor rcx, rsp
call fcn.1401aed20
mov rbx, qword [rsp + 0x548]
add rsp, 0x500
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret