Function at 0x14020de04
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x200
mov qword [rbp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r13, r8
mov r12, rdx
mov rsi, rcx
mov rax, qword [rcx]
call qword [rax + 0x30]
xor r14d, r14d
test al, al
jne 0x14020de51
lea rcx, [rsi - 8]
mov rax, qword [rcx]
call qword [rax + 0x18]
jmp 0x14020e89d
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, r14d
cmp eax, 0xffffffff
setne dil
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test edi, edi
je 0x14020e89d
or r15, 0xffffffffffffffff
mov qword [rbp - 0x68], r15
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 0xc0000000
mov rdx, r12
lea rcx, [rbp - 0x68]
call fcn.140021fb8
test eax, eax
sete dil
mov rcx, qword [rbp - 0x68]
cmp rcx, r15
je 0x14020debb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
jne 0x14020e89d
cmp byte [rsi + 0xd4], r14b
je 0x14020e173
mov bl, r14b
cmp qword [rsi + 0x80], r14
je 0x14020e0b8
lea rdx, str.index.sqlite
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x14020e89d
mov rdx, r12
lea rcx, [rbp + 0x140]
call fcn.14000cb18
nop
lea rcx, [rbp + 0x140]
call fcn.14000b994
mov rdx, qword [rsi + 0xe0]
mov rcx, qword [rdx + 8]
cmp byte [rcx + 0x31], r14b
jne 0x14020df8c
mov r9d, r14d
cmp qword [rbp + 0x140], r14
setne r9b
test r9d, r9d
je 0x14020df81
mov rax, qword [rcx + 0x18]
mov r8, qword [rbp + 0x140]
sub r8, rax
movzx edi, word [rax]
cmp di, word [rax + r8]
jne 0x14020df5f
add rax, 2
test di, di
jne 0x14020df47
mov eax, r14d
jmp 0x14020df64
sbb eax, eax
sbb eax, r15d
test eax, eax
sets al
test al, al
je 0x14020df73
mov rcx, qword [rcx + 0x10]
jmp 0x14020df79
mov rdx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x31], r14b
je 0x14020df34
jmp 0x14020df8c
mov ecx, 0x80004005
call fcn.14000cbb8
int3
mov qword [rbp - 0x18], rdx
mov rax, qword [rsi + 0xe0]
cmp rdx, rax
je 0x14020dfed
mov rdx, qword [rdx + 0x18]
mov ecx, r14d
test rdx, rdx
setne cl
test ecx, ecx
jne 0x14020dfb8
mov ecx, 0x80004005
call fcn.14000cbb8
int3
mov rcx, qword [rbp + 0x140]
sub rdx, rcx
movzx edi, word [rcx]
cmp di, word [rcx + rdx]
jne 0x14020dfd9
add rcx, 2
test di, di
jne 0x14020dfc2
mov ecx, r14d
jmp 0x14020dfde
sbb ecx, ecx
sbb ecx, r15d
test ecx, ecx
sets cl
test cl, cl
jne 0x14020dfed
lea rax, [rbp - 0x18]
jmp 0x14020dff5
mov qword [rbp], rax
lea rax, [rbp]
mov rax, qword [rax]
cmp rax, qword [rsi + 0xe0]
je 0x14020e08b
mov rcx, qword [rax + 0x20]
mov qword [rbp - 0x60], rcx
mov rdi, qword [rax + 0x28]
mov qword [rbp - 0x58], rdi
test rdi, rdi
je 0x14020e02b
mov eax, 1
lock add dword [rdi + 8], eax
mov rdi, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14020e053
add rcx, 0x10
mov rax, qword [rcx]
cmp dword [rax - 0x10], r14d
je 0x14020e053
lea rdx, [rsi + 0x70]
call fcn.1401f1564
movzx ebx, bl
test al, al
mov eax, 1
cmove ebx, eax
test rdi, rdi
je 0x14020e08d
mov eax, r15d
lock xadd dword [rdi + 8], eax
add eax, r15d
jne 0x14020e08d
mov rdi, qword [rbp - 0x58]
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 0x14020e08d
mov rcx, qword [rbp - 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14020e08d
mov bl, 1
mov rdx, qword [rbp + 0x140]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14020e0b0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14020e89d
mov ecx, 0x88
call fcn.1400be454
mov qword [rbp + 0x58], rax
test rax, rax
je 0x14020e0d9
mov rdx, qword [rsi + 8]
mov rcx, rax
call fcn.14006de38
jmp 0x14020e0dc
mov rax, r14
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400186f8
nop
mov r9, qword [rsp + 0x50]
test r12, r12
jne 0x14020e0f9
mov ecx, r14d
jmp 0x14020e10a
xor eax, eax
mov rcx, r15
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, r12
lea rcx, [r9 + 0x20]
call fcn.14000c9f8
mov edx, dword [r13 + 0x1c]
shl rdx, 0x20
mov eax, dword [r13 + 0x20]
or rdx, rax
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x28], rdx
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x30], 1
mov rax, qword [rsi]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [rax + 0x68]
mov rax, qword [rsi + 0x18]
mov rcx, rsi
lea rdx, [rsp + 0x50]
cmp byte [rax + 1], r14b
mov rax, qword [rsi]
je 0x14020e165
call qword [rax + 0x60]
jmp 0x14020e169
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
nop
mov rdi, qword [rsp + 0x58]
jmp 0x14020e770
lea rdx, str.indexedDB.sqlite
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x14020e2d3
mov rdx, r12
lea rcx, [rsp + 0x78]
call fcn.1401c397c
nop
mov rax, qword [rsp + 0x78]
cmp dword [rax - 0x10], r14d
je 0x14020e2a9
lea rdx, [rsi + 0x70]
lea rcx, [rsp + 0x78]
call fcn.1401f1564
test al, al
jne 0x14020e2a9
mov ecx, 0x88
call fcn.1400be454
mov qword [rbp + 0x140], rax
test rax, rax
je 0x14020e1e2
mov rdx, qword [rsi + 8]
mov rcx, rax
call fcn.14006de38
jmp 0x14020e1e5
mov rax, r14
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400186f8
nop
mov r9, qword [rsp + 0x60]
test r12, r12
jne 0x14020e202
mov ecx, r14d
jmp 0x14020e213
xor eax, eax
mov rcx, r15
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, r12
lea rcx, [r9 + 0x20]
call fcn.14000c9f8
mov edx, dword [r13 + 0x1c]
shl rdx, 0x20
mov eax, dword [r13 + 0x20]
or rdx, rax
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x28], rdx
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x30], 1
mov rax, qword [rsi]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [rax + 0x68]
mov rax, qword [rsi + 0x18]
mov rcx, rsi
lea rdx, [rsp + 0x60]
cmp byte [rax + 1], r14b
mov rax, qword [rsi]
je 0x14020e26e
call qword [rax + 0x60]
jmp 0x14020e272
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
nop
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14020e2a9
mov eax, r15d
lock xadd dword [rdi + 8], eax
add eax, r15d
jne 0x14020e2a9
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 0x14020e2a9
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14020e89d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14020e89d
lea rdx, str.OfflineCacheindex.sqlite
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x14020e7b2
mov ecx, 0x38
call fcn.1400be454
test rax, rax
je 0x14020e307
mov rcx, rax
call fcn.1401c31bc
mov rbx, rax
jmp 0x14020e30a
mov rbx, r14
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], r14
mov rdx, rbx
lea rcx, [rbp - 8]
call fcn.14007a78c
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rax]
mov qword [rsp + 0x48], rcx
mov qword [rax], rdx
mov rdi, qword [rbp - 8]
test rdi, rdi
je 0x14020e365
mov eax, r15d
lock xadd dword [rdi + 8], eax
add eax, r15d
jne 0x14020e365
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 0x14020e365
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov r8, rbx
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400020a0
nop
cmp qword [rsp + 0x40], r14
je 0x14020e76b
mov rdx, r12
lea rcx, [rbp + 0x158]
call fcn.14000cb18
nop
lea rcx, [rbp + 0x158]
call fcn.140050bb8
lea rcx, [rbp + 8]
call fcn.140047624
nop
cmp qword [rsi + 0x80], r14
je 0x14020e6a4
mov rax, qword [rsi + 0xe0]
mov rdi, qword [rax + 8]
mov rbx, rdi
cmp byte [rdi + 0x31], r14b
jne 0x14020e3f5
mov rdx, qword [rbx + 0x10]
lea rcx, [rsi + 0xd8]
call fcn.14009419c
mov rbx, qword [rbx]
lea rcx, [rdi + 0x18]
call fcn.140078ae0
mov rcx, rdi
call fcn.1400be0f4
mov rdi, rbx
cmp byte [rbx + 0x31], r14b
je 0x14020e3c8
mov rax, qword [rsi + 0xe0]
mov qword [rax + 8], rax
mov rax, qword [rsi + 0xe0]
mov qword [rax], rax
mov rax, qword [rsi + 0xe0]
mov qword [rax + 0x10], rax
mov qword [rsi + 0xe8], r14
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r14
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
lea r8, [rbp - 0x38]
mov rdx, qword [rbp + 0x158]
call qword [rax + 0x10]
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x70], rax
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x70]
cmp rax, qword [rbp - 0x10]
je 0x14020e609
mov rbx, qword [rax]
mov qword [rsp + 0x30], rbx
mov rdi, qword [rax + 8]
mov qword [rsp + 0x38], rdi
test rdi, rdi
je 0x14020e48d
mov eax, 1
lock add dword [rdi + 8], eax
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov qword [rbp - 0x80], rbx
mov r12, qword [rbp - 0x78]
mov qword [rbp - 0x78], rdi
test r12, r12
je 0x14020e4da
mov eax, r15d
lock xadd dword [r12 + 8], eax
add eax, r15d
jne 0x14020e4d0
mov rax, qword [r12]
mov rcx, r12
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
lock xadd dword [r12 + 0xc], eax
add eax, r15d
jne 0x14020e4d0
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x10]
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
test rbx, rbx
je 0x14020e5ff
lea rdx, [rbx + 8]
mov rax, qword [rdx]
cmp dword [rax - 0x10], r14d
je 0x14020e5c4
lea rcx, [rsp + 0x70]
call fcn.14000c4d8
nop
lea rcx, [rsp + 0x70]
call fcn.14000b994
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
call fcn.14000c4d8
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rdi
test rdi, rdi
je 0x14020e52d
mov eax, 1
lock add dword [rdi + 8], eax
lea r8, [rbp - 0x50]
lea rdx, [rbp + 0x68]
lea rcx, [rsi + 0xd8]
call fcn.1400734a8
nop
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14020e57d
mov eax, r15d
lock xadd dword [rcx + 8], eax
add eax, r15d
jne 0x14020e57d
mov rdi, qword [rbp - 0x40]
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 0x14020e57d
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14020e59e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14020e5bf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x30]
mov rax, qword [rbx + 0x10]
cmp dword [rax - 0x10], r14d
je 0x14020e5df
lea rdx, [rsi + 0x70]
lea rcx, [rbx + 0x10]
call fcn.1401f1564
test al, al
jne 0x14020e5ff
lea rdx, [rbx + 0x10]
lea rcx, [rbp + 8]
call fcn.140053360
mov r8, rax
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 8]
call fcn.140018e00
add qword [rbp - 0x70], 0x10
jmp 0x14020e456
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14020e644
mov eax, r15d
lock xadd dword [rcx + 8], eax
add eax, r15d
jne 0x14020e644
mov rdi, qword [rbp - 0x78]
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 0x14020e644
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x14020e6a4
mov r12, qword [rbp - 0x30]
cmp rcx, r12
je 0x14020e69f
lea rbx, [rcx + 8]
mov rdi, qword [rbx]
test rdi, rdi
je 0x14020e68e
mov eax, r15d
lock xadd dword [rdi + 8], eax
add eax, r15d
jne 0x14020e68e
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 0x14020e68e
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
add rbx, 0x10
lea rax, [rbx - 8]
cmp rax, r12
jne 0x14020e65a
mov rcx, qword [rbp - 0x38]
call fcn.1400be0f4
mov eax, 1
mov byte [rsi + 0xd4], al
lea rcx, [rsi - 8]
mov byte [rsp + 0x28], al
mov byte [rsp + 0x20], al
mov r9b, al
lea r8, [0x14034fa44]
mov rdx, qword [rbp + 0x158]
call fcn.14020f850
mov byte [rsi + 0xd4], r14b
cmp qword [rsi + 0x80], r14
je 0x14020e725
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test al, al
je 0x14020e725
mov rax, qword [rsi + 0x18]
cmp byte [rax + 1], r14b
jne 0x14020e725
mov rdi, qword [rsp + 0x40]
lea rdx, [rbp + 8]
lea rcx, [rbp + 0xa8]
call fcn.140073e28
mov rax, qword [rdi]
lea r8, [rbp + 0xa8]
mov rdx, qword [rbp + 0x158]
mov rcx, rdi
call qword [rax + 0x38]
nop
mov r8, qword [rbp + 0x10]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 8]
call fcn.140004130
nop
mov rcx, qword [rbp + 0x10]
call fcn.1400be0f4
nop
mov rdx, qword [rbp + 0x158]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14020e76b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x14020e89d
mov eax, r15d
lock xadd dword [rdi + 8], eax
add eax, r15d
jne 0x14020e89d
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 0x14020e89d
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
jmp 0x14020e89d
lea rdx, str.permissions.sqlite
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x14020e813
mov rax, qword [rsi + 0x18]
cmp byte [rax + 1], r14b
jne 0x14020e89d
lea rcx, [rbp + 0xc8]
call fcn.1401c31bc
nop
lea rdx, [rsi + 0x70]
lea rcx, [rbp + 0x78]
call fcn.140073e28
lea r8, [rbp + 0x78]
mov rdx, r12
lea rcx, [rbp + 0xc8]
call fcn.1401c46ec
nop
lea rcx, [rbp + 0xc8]
call fcn.1401c30dc
jmp 0x14020e89d
lea rax, vtable.Piriform::CMozillaCookies.0
mov qword [rbp + 0x28], rax
lea rax, vtable.Piriform::CMozillaCookies.1.0
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], r14
mov qword [rbp + 0x40], r14
mov qword [rbp + 0x48], r14
lea rcx, [rsi + 0xb0]
call fcn.14000bff0
mov dword [rsi + 0xd0], r14d
lea rax, [rsi - 8]
test rax, rax
lea r9, [rsi + 0x68]
jne 0x14020e858
mov r9, r14
neg rax
sbb r8, r8
and r8, rsi
mov rdx, r12
lea rcx, [rbp + 0x28]
call fcn.1401c56ec
cmp dword [rsi + 0xd0], r14d
jle 0x14020e89d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test al, al
je 0x14020e89d
mov rax, qword [rsi + 0x18]
cmp byte [rax + 1], r14b
jne 0x14020e89d
lea rdx, [rsi + 0xb0]
mov rcx, r12
call fcn.1401c51dc
nop
mov rbx, qword [rsp + 0x248]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret