Function at 0x1401f6404
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 - 0x58]
sub rsp, 0x120
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r15, r8
mov r13, rdx
mov r12, rcx
and dword [rsp + 0x20], 0
mov rax, qword [rcx]
call qword [rax + 0x30]
test al, al
jne 0x1401f6460
lea rcx, [r12 - 8]
mov rax, qword [rcx]
call qword [rax + 0x18]
jmp 0x1401f6907
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, 0xffffffff
setne dil
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test edi, edi
je 0x1401f6907
mov rdx, r13
lea rcx, [r12 - 8]
call fcn.14020efc0
test al, al
jne 0x1401f6907
lea rdx, str.cookies4.dat
lea rcx, [r15 + 0x2c]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x1401f6653
lea rcx, [r12 + 0x88]
call fcn.140003c14
lea rcx, [rbp - 0x80]
call fcn.1401df8f0
nop
mov rdx, r13
lea rcx, [rbp - 0x80]
call fcn.1401dffc0
test eax, eax
jne 0x1401f6645
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x18], rax
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x78]
call fcn.1401de1f0
nop
mov r13d, 1
mov dword [rsp + 0x20], r13d
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14000c244
or rbx, 0xffffffffffffffff
mov rsi, rax
xor eax, eax
lea rdi, [0x140330de8]
mov rsi, qword [rsi]
lea ecx, [rax + 1]
repe cmpsw word [rsi], word [rdi]
je 0x1401f6550
sbb eax, eax
sbb eax, ebx
test eax, eax
setne al
test al, al
je 0x1401f656c
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x30]
test al, al
je 0x1401f656c
mov dil, 1
jmp 0x1401f656f
xor dil, dil
test r13b, 1
je 0x1401f65a2
and r13d, 0xfffffffe
mov dword [rsp + 0x20], r13d
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1401f659d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r13d, dword [rsp + 0x20]
test dil, dil
je 0x1401f65e0
lea rdx, [rsp + 0x28]
lea rcx, [r12 - 8]
call fcn.1401f4604
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x78]
call fcn.1401de1f0
nop
or r13d, 1
mov dword [rsp + 0x20], r13d
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14000c244
jmp 0x1401f6535
cmp qword [r12 + 0x98], 0
jbe 0x1401f6625
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x30]
test al, al
je 0x1401f6625
mov rax, qword [r12 + 0x18]
cmp byte [rax + 1], 0
jne 0x1401f6625
lea rdx, [r12 + 0x88]
lea rcx, [rbp - 0x80]
call fcn.1401ddde0
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x80]
mov rax, qword [rbp - 0x80]
call qword [rax + 0x38]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1401f6645
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp - 0x80]
call fcn.1401de2c0
jmp 0x1401f6907
cmp qword [r12 + 0xa8], 0
je 0x1401f6820
lea rdx, str..dat
lea rcx, [r15 + 0x2c]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x1401f6907
mov r8, r13
lea rdx, [rsp + 0x60]
mov rcx, qword [r12 + 0xa8]
call fcn.1401dfd50
nop
mov rdx, qword [rax]
lea rcx, [rsp + 0x40]
call fcn.14002e7e0
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1401f66c2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsp + 0x40]
cmp dword [rax - 0x10], 0
je 0x1401f67f8
lea rdx, [r12 + 0x68]
lea rcx, [rsp + 0x40]
call fcn.1401f1564
test al, al
jne 0x1401f67f8
mov ecx, 0x88
call fcn.1400be454
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1401f670a
mov rdx, qword [r12 + 8]
mov rcx, rax
call fcn.14006de38
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400186f8
nop
mov rsi, qword [rsp + 0x30]
test r13, r13
jne 0x1401f6726
xor ecx, ecx
jmp 0x1401f6737
xor eax, eax
mov rcx, rbx
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, r13
lea rcx, [rsi + 0x20]
call fcn.14000c9f8
mov edx, dword [r15 + 0x1c]
shl rdx, 0x20
mov eax, dword [r15 + 0x20]
or rdx, rax
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x28], rdx
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x30], 1
mov rax, qword [r12]
lea rdx, [rsp + 0x30]
mov rcx, r12
call qword [rax + 0x68]
mov rdx, qword [r12 + 0x18]
mov rcx, r12
mov rax, qword [r12]
cmp byte [rdx + 1], 0
lea rdx, [rsp + 0x30]
je 0x1401f6795
call qword [rax + 0x60]
jmp 0x1401f6798
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov rax, qword [rsp + 0x30]
cmp byte [rax + 0x70], 0
je 0x1401f67c5
mov rdx, r13
mov rcx, qword [r12 + 0xa8]
call fcn.1401dfb10
test al, al
je 0x1401f67c5
mov rcx, qword [r12 + 0xa8]
call fcn.1401dd020
nop
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x1401f67f8
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x1401f67f8
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x1401f67f8
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1401f6907
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1401f6907
mov ecx, 0x88
call fcn.1400be454
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1401f6842
mov rdx, qword [r12 + 8]
mov rcx, rax
call fcn.14006de38
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400186f8
nop
mov rsi, qword [rsp + 0x48]
or rbx, 0xffffffffffffffff
test r13, r13
jne 0x1401f6862
xor ecx, ecx
jmp 0x1401f6873
xor eax, eax
mov rcx, rbx
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, r13
lea rcx, [rsi + 0x20]
call fcn.14000c9f8
mov edx, dword [r15 + 0x1c]
shl rdx, 0x20
mov eax, dword [r15 + 0x20]
or rdx, rax
mov rax, qword [rsp + 0x48]
mov qword [rax + 0x28], rdx
mov rax, qword [rsp + 0x48]
mov dword [rax + 0x30], 1
mov rax, qword [r12]
lea rdx, [rsp + 0x48]
mov rcx, r12
call qword [rax + 0x68]
mov rdx, qword [r12 + 0x18]
mov rcx, r12
mov rax, qword [r12]
cmp byte [rdx + 1], 0
lea rdx, [rsp + 0x48]
je 0x1401f68d1
call qword [rax + 0x60]
jmp 0x1401f68d5
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
nop
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x1401f6907
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x1401f6907
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x1401f6907
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400be110
mov rbx, qword [rsp + 0x178]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret