Function at 0x1402d0078
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, 0xa0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r13, r9
mov r14, r8
mov rbx, rdx
mov r12, rcx
and dword [rbp - 0x49], 0
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x29], rax
mov rax, qword [rbx]
mov rbx, qword [rbx + 8]
or r15d, 0xffffffff
mov qword [rbp - 0x11], rax
cmp rax, rbx
je 0x1402d038d
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.14000c244
mov rdx, qword [rbp - 0x29]
lea rcx, [rbp - 0x41]
call fcn.14000cb18
nop
lea rdx, str.preferences
lea rcx, [rbp - 0x41]
call fcn.14000f884
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1402d032f
mov qword [r12 + 0x28], r14
mov qword [r12 + 0x30], r13
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x10]
test al, al
jne 0x1402d036a
mov ecx, 0x78
call fcn.1400be454
mov qword [rbp + 0x17], rax
test rax, rax
je 0x1402d0163
mov r8b, 1
lea rdx, [rbp - 0x41]
mov rcx, rax
call fcn.1402cfe68
mov rsi, rax
jmp 0x1402d0165
xor esi, esi
mov qword [rbp - 0x21], rsi
and qword [rbp - 0x19], 0
mov rdx, rsi
lea rcx, [rbp - 9]
call fcn.1400923a8
mov rdx, qword [rbp - 0x19]
mov rcx, qword [rax]
mov qword [rbp - 0x19], rcx
mov qword [rax], rdx
mov rdi, qword [rbp - 9]
test rdi, rdi
je 0x1402d01bd
mov eax, r15d
lock xadd dword [rdi + 8], eax
add eax, r15d
jne 0x1402d01bd
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
lock xadd dword [rdi + 0xc], eax
add eax, r15d
jne 0x1402d01bd
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov r8, rsi
mov rdx, rsi
lea rcx, [rbp - 0x21]
call fcn.1400020a0
nop
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x1402d02fa
and qword [rbp - 0x39], 0
and qword [rbp - 0x31], 0
call fcn.1402cfdd8
lea rdx, [rbp + 7]
mov rcx, qword [rbp - 0x21]
call fcn.1402cf118
nop
or dword [rbp - 0x49], 1
mov rdx, qword [rax]
mov qword [rbp + 0x1f], rdx
mov rcx, qword [rax + 8]
and qword [rax + 8], 0
and qword [rax], 0
mov qword [rbp - 0x39], rdx
mov rdi, qword [rbp - 0x31]
mov qword [rbp - 0x31], rcx
test rdi, rdi
je 0x1402d024c
mov eax, r15d
lock xadd dword [rdi + 8], eax
add eax, r15d
jne 0x1402d024c
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
lock xadd dword [rdi + 0xc], eax
add eax, r15d
jne 0x1402d024c
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
cmp qword [rbp - 0x39], 0
setne sil
test byte [rbp - 0x49], 1
je 0x1402d0294
and dword [rbp - 0x49], 0xfffffffe
mov rdi, qword [rbp + 0xf]
test rdi, rdi
je 0x1402d0294
mov eax, r15d
lock xadd dword [rdi + 8], eax
add eax, r15d
jne 0x1402d0294
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
lock xadd dword [rdi + 0xc], eax
add eax, r15d
jne 0x1402d0294
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
test sil, sil
je 0x1402d02c4
mov rax, qword [rbp - 0x39]
cmp byte [rax + 0x32], 0
jne 0x1402d02b2
lea rcx, [r12 + 0x20]
mov rax, qword [rcx]
lea rdx, [rbp - 0x39]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x10]
test al, al
je 0x1402d01e9
mov rdi, qword [rbp - 0x31]
test rdi, rdi
je 0x1402d02fa
mov eax, r15d
lock xadd dword [rdi + 8], eax
add eax, r15d
jne 0x1402d02fa
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
lock xadd dword [rdi + 0xc], eax
add eax, r15d
jne 0x1402d02fa
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
mov rdi, qword [rbp - 0x19]
test rdi, rdi
je 0x1402d032f
mov eax, r15d
lock xadd dword [rdi + 8], eax
add eax, r15d
jne 0x1402d032f
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
lock xadd dword [rdi + 0xc], eax
add eax, r15d
jne 0x1402d032f
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x10]
test al, al
jne 0x1402d036c
mov rdx, qword [rbp - 0x41]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1402d035d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp - 0x11]
add rax, 8
jmp 0x1402d00d7
jmp 0x1402d036c
mov rdx, qword [rbp - 0x41]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1402d038d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1402d03ad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r11, [rsp + 0xa0]
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
mov r9, r8
add rcx, 0xffffffffffffffe8
xor r8d, r8d
jmp 0x1402d0078