Function at 0x14020cc04
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r12, r8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rcx]
call qword [rax + 0x30]
test al, al
jne 0x14020cc47
lea rcx, [rdi - 8]
mov rax, qword [rcx]
call qword [rax + 0x18]
jmp 0x14020cee2
or r14, 0xffffffffffffffff
mov qword [rbp - 0x21], r14
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 0xc0000000
mov rdx, rsi
lea rcx, [rbp - 0x21]
call fcn.140021fb8
test eax, eax
sete bl
mov rcx, qword [rbp - 0x21]
cmp rcx, r14
je 0x14020cc80
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x14020cee2
mov rax, qword [rdi + 0x18]
cmp byte [rax + 1], bl
jne 0x14020cee2
lea rdx, str.com.apple.Safari.plist
lea rcx, [r12 + 0x2c]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x14020cdb0
lea rcx, [rbp + 0x7f]
call fcn.1401bacf8
nop
and qword [rbp - 0x49], 0
and qword [rbp - 0x41], 0
lea rax, [rdi - 8]
neg rax
sbb rbx, rbx
and rbx, rdi
mov rdx, rsi
lea rcx, [rbp - 0x29]
call fcn.14000cb18
nop
mov r9, rbx
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x29]
lea rcx, [rbp + 0x7f]
call fcn.1401bb528
mov ebx, eax
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov ecx, r14d
lock xadd dword [rdx + 0x10], ecx
add ecx, r14d
test ecx, ecx
jg 0x14020cd14
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
test ebx, ebx
jne 0x14020cd6c
cmp qword [rbp - 0x49], 0
je 0x14020cd6c
lea rcx, [rbp - 0x49]
call fcn.1401ba348
test eax, eax
jle 0x14020cd6c
mov rdx, rsi
lea rcx, [rbp - 0x39]
call fcn.14000cb18
nop
lea r8, [rbp - 0x39]
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x49]
call fcn.1401bb078
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 0x14020cd6c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14020cda7
mov eax, r14d
lock xadd dword [rcx + 8], eax
add eax, r14d
jne 0x14020cda7
mov rbx, qword [rbp - 0x41]
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 0x14020cda7
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rdx, qword [rbp + 0x7f]
jmp 0x14020cec6
lea rdx, str.WebpageIcons.db
lea rcx, [r12 + 0x2c]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x14020cee2
lea rdx, str._appdata_
lea rcx, [rbp - 0x31]
call fcn.14000cb18
nop
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax + 0x90]
mov rax, qword [rcx]
lea r9, [rdi + 0x28]
lea r8, [rbp - 0x31]
lea rdx, [rbp - 0x19]
call qword [rax + 0x38]
nop
mov rdx, qword [rax]
lea rcx, [rbp + 0x67]
call fcn.14000cb18
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 0x14020ce27
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14020ce47
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, str.Apple_ComputerSafariBookmarks.plist
lea rcx, [rbp + 0x67]
call fcn.14000f884
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14020cec2
lea rcx, [rbp - 0x11]
call fcn.140047624
nop
lea rdx, [rbp - 0x11]
mov rcx, qword [rbp + 0x67]
call fcn.1401bb6c8
test eax, eax
jne 0x14020cea0
and qword [rbp + 0xf], 0
and qword [rbp + 0x17], 0
and qword [rbp + 0x1f], 0
lea r8, [rbp - 0x11]
mov rdx, rsi
lea rcx, [rbp + 0xf]
call fcn.1401bbbf8
nop
mov r8, qword [rbp - 9]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp + 0x2f]
lea rcx, [rbp - 0x11]
call fcn.140004130
nop
mov rcx, qword [rbp - 9]
call fcn.1400be0f4
nop
mov rdx, qword [rbp + 0x67]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14020cee2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0xe8]
add rsp, 0xb0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret