Function at 0x14022d344
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r12, r8
mov rsi, rdx
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.14000cb18
nop
lea rdx, str.compatibility.ini
lea rcx, [rsp + 0x40]
call fcn.14000f884
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or r14d, 0xffffffff
xor r13d, r13d
test eax, eax
je 0x14022d889
call fcn.14006e884
mov r10, qword [rax]
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, qword [rsp + 0x40]
lea rdx, [rbp - 9]
mov rcx, rax
call qword [r10 + 0x50]
nop
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x14022d853
mov qword [rbp - 0x69], r13
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], r13
mov rax, qword [rcx]
lea r15, [0x140330de8]
mov qword [rsp + 0x20], r15
lea r9, str.LastPlatformDir
lea r8, str.Compatibility
lea rdx, [rsp + 0x48]
call qword [rax + 0x28]
nop
mov rax, qword [rsp + 0x48]
cmp dword [rax - 0x10], r13d
je 0x14022d427
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x69]
call fcn.140038190
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r15
lea r9, str.LastAppDir
lea r8, str.Compatibility
lea rdx, [rsp + 0x38]
call qword [rax + 0x28]
nop
mov rcx, qword [rsp + 0x38]
cmp dword [rcx - 0x10], r13d
je 0x14022d472
mov rdx, qword [rsp + 0x48]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x14022d472
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x69]
call fcn.140038190
mov dil, r13b
lea rcx, [rbp + 7]
call fcn.140047624
nop
mov rax, qword [rbp - 0x69]
mov rcx, qword [rbp - 0x61]
mov qword [rbp - 0x31], rcx
mov qword [rbp - 0x71], rax
cmp rax, rcx
je 0x14022d7bd
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14000c244
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp + 0x7f]
call fcn.14000cb18
nop
lea rdx, str.application.ini
lea rcx, [rbp + 0x7f]
call fcn.14000f884
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14022d5e4
call fcn.14006e884
mov r10, qword [rax]
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, qword [rbp + 0x7f]
lea rdx, [rbp - 0x29]
mov rcx, rax
call qword [r10 + 0x50]
nop
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14022d59e
mov rax, qword [rcx]
mov qword [rsp + 0x20], r15
lea r9, [0x140353a70]
lea r8, [0x1403610c0]
lea rdx, [rbp - 0x39]
call qword [rax + 0x28]
nop
mov rdx, rax
mov rcx, rsi
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x39]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14022d54d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r15
lea r9, str.Version
lea r8, [0x1403610c0]
lea rdx, [rbp - 0x11]
call qword [rax + 0x28]
nop
mov rdx, rax
mov rcx, r12
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14022d59b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dil, 1
mov rbx, qword [rbp - 0x21]
test rbx, rbx
je 0x14022d6b5
mov eax, r14d
lock xadd dword [rbx + 8], eax
add eax, r14d
jne 0x14022d6b5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
add eax, r14d
jne 0x14022d6b5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
jmp 0x14022d6b5
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x7f]
call fcn.14000c244
cmp qword [rbp + 0x17], r13
jne 0x14022d601
lea rcx, [rbp + 7]
call fcn.14022cec4
mov rax, qword [rbp + 0xf]
mov rbx, qword [rax]
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x79], rbx
cmp rbx, qword [rbp - 0x49]
je 0x14022d6b5
mov rdx, qword [rbp + 0x7f]
lea rcx, [rsp + 0x30]
call fcn.14000cb18
nop
mov rdx, qword [rbx + 0x18]
lea rcx, [rsp + 0x30]
call fcn.14000f884
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14022d6ef
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14022d66b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 0x79]
cmp byte [rbx + 0x21], r13b
jne 0x14022d610
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x21], r13b
jne 0x14022d690
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x21], r13b
je 0x14022d67f
jmp 0x14022d60c
mov rax, qword [rbx + 8]
jmp 0x14022d6a3
cmp rbx, qword [rax + 0x10]
jne 0x14022d6a9
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x21], r13b
je 0x14022d696
mov rbx, rax
mov qword [rbp - 0x79], rax
jmp 0x14022d610
test dil, dil
jne 0x14022d79c
mov rdx, qword [rbp + 0x7f]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14022d6de
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp - 0x71]
add rax, 8
mov rcx, qword [rbp - 0x31]
jmp 0x14022d48b
xor r9d, r9d
lea r8, [0x14035b4c0]
mov rdx, qword [rsp + 0x30]
lea rcx, [rbp - 0x19]
call fcn.14023f0ac
nop
mov rdx, rax
mov rcx, rsi
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14022d734
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor r9d, r9d
lea r8, [0x1403610c8]
mov rdx, qword [rsp + 0x30]
lea rcx, [rbp - 0x41]
call fcn.14023f0ac
nop
mov rdx, rax
mov rcx, r12
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x41]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14022d77a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14022d79c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x7f]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14022d7bd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov r8, qword [rbp + 0xf]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp + 0x2f]
lea rcx, [rbp + 7]
call fcn.140004130
nop
mov rcx, qword [rbp + 0xf]
call fcn.1400be0f4
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14022d801
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14022d823
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rbp - 0x69]
test rbx, rbx
je 0x14022d853
mov rdi, qword [rbp - 0x61]
cmp rbx, rdi
je 0x14022d84a
mov rcx, rbx
call fcn.140082b80
add rbx, 8
cmp rbx, rdi
jne 0x14022d835
mov rbx, qword [rbp - 0x69]
mov rcx, rbx
call fcn.1400be0f4
nop
mov rbx, qword [rbp - 1]
test rbx, rbx
je 0x14022d889
mov eax, r14d
lock xadd dword [rbx + 8], eax
add eax, r14d
jne 0x14022d889
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
add eax, r14d
jne 0x14022d889
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14022d8aa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret