Function at 0x1400a4890
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov r14, r8
mov rsi, rdx
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x1400a48e4
test byte [rcx + 0x1c], 2
je 0x1400a48e4
cmp byte [rcx + 0x19], 4
jb 0x1400a48e4
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015bdc8]
mov edx, 0x27
call fcn.140004c10
test rsi, rsi
jne 0x1400a4901
lea r8, str.wcsPath
mov edx, 0x43d
lea rcx, [0x14015b548]
call fcn.140087b08
and qword [rbp + 0x28], 0
lea rdx, [rbp + 0x28]
xor edi, edi
mov rcx, rsi
and dword [r14], edi
mov qword [rbp + 0x20], rdi
call fcn.1400887a0
mov ebx, eax
test eax, eax
js 0x1400a4bee
mov rcx, qword [rbp + 0x28]
lea r8, [rbp + 0x20]
lea rdx, str.GlobalCatalog
call fcn.140088abc
mov ebx, eax
test eax, eax
js 0x1400a4bea
and qword [rsp + 0x30], rdi
xor r9d, r9d
mov rdi, qword [rbp + 0x20]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
jne 0x1400a4a30
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x1400a49d6
mov rcx, qword [0x14017b048]
lea rsi, [0x14017b048]
cmp rcx, rsi
je 0x1400a4bfc
test byte [rcx + 0x1c], al
je 0x1400a4bfc
cmp byte [rcx + 0x19], 4
jb 0x1400a4bfc
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x26]
mov r9, rdi
lea r8, [0x14015bdc8]
call fcn.140005cd0
jmp 0x1400a4bf5
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017b048]
lea rsi, [0x14017b048]
cmp rcx, rsi
je 0x1400a4bfc
test byte [rcx + 0x1c], 2
je 0x1400a4bfc
cmp byte [rcx + 0x19], 2
jb 0x1400a4bfc
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015bdc8]
mov edx, 0x29
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.140005d40
jmp 0x1400a4bf5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
or qword [rbp + 0x20], 0xffffffffffffffff
lea r9, [rbp + 0x20]
lea r8, str.GlobalCatalog
mov rdx, rsi
call fcn.1400a67b0
mov ebx, eax
test eax, eax
jns 0x1400a4bc3
add eax, 0x7ff8fffe
cmp eax, 1
jbe 0x1400a4abb
mov rcx, qword [0x14017b048]
lea rsi, [0x14017b048]
cmp rcx, rsi
je 0x1400a4bd1
test byte [rcx + 0x1c], 2
je 0x1400a4bd1
cmp byte [rcx + 0x19], 2
jb 0x1400a4bd1
mov edx, 0x2b
lea r9, str.GlobalCatalog
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015bdc8]
mov dword [rsp + 0x20], ebx
call fcn.140005d40
jmp 0x1400a4bca
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x1400a4afe
test byte [rcx + 0x1c], 1
je 0x1400a4afe
cmp byte [rcx + 0x19], 3
jb 0x1400a4afe
mov rcx, qword [rcx + 0x10]
lea rax, str.GlobalCatalog
mov edx, 0x2a
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, [0x14015bdc8]
call fcn.1400103b0
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
or qword [rbp + 0x20], 0xffffffffffffffff
lea r9, [rbp + 0x20]
lea r8, str.BackupGlobalCatalog
mov rdx, rsi
call fcn.1400a67b0
mov ebx, eax
test eax, eax
jns 0x1400a4bc3
add eax, 0x7ff8fffe
cmp eax, 1
jbe 0x1400a4b6e
mov rcx, qword [0x14017b048]
lea rsi, [0x14017b048]
cmp rcx, rsi
je 0x1400a4bd1
test byte [rcx + 0x1c], 2
je 0x1400a4bd1
cmp byte [rcx + 0x19], 2
jb 0x1400a4bd1
mov edx, 0x2d
lea r9, str.BackupGlobalCatalog
jmp 0x1400a4aa2
mov rcx, qword [0x14017b048]
lea rsi, [0x14017b048]
cmp rcx, rsi
je 0x1400a4bb8
test byte [rcx + 0x1c], 1
je 0x1400a4bb8
cmp byte [rcx + 0x19], 3
jb 0x1400a4bb8
mov rcx, qword [rcx + 0x10]
lea rax, str.BackupGlobalCatalog
mov edx, 0x2c
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, [0x14015bdc8]
call fcn.1400103b0
mov rcx, qword [0x14017b048]
mov dword [r14], 1
xor ebx, ebx
jmp 0x1400a4bd1
lea rsi, [0x14017b048]
mov rcx, qword [0x14017b048]
cmp qword [rbp + 0x20], 0xffffffffffffffff
je 0x1400a4bfc
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x1400a4bf5
mov rdi, qword [rbp + 0x20]
lea rsi, [0x14017b048]
mov rcx, qword [0x14017b048]
cmp qword [rbp + 0x28], 0
je 0x1400a4c1a
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
test rdi, rdi
je 0x1400a4c35
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
cmp rcx, rsi
je 0x1400a4c5b
test byte [rcx + 0x1c], 2
je 0x1400a4c5b
cmp byte [rcx + 0x19], 4
jb 0x1400a4c5b
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015bdc8]
mov edx, 0x2e
call fcn.140004c10
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret