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

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x118
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov rax, qword [0x14019cfa0]
xor rax, rsp
mov qword [rsp + 0x100], rax
call fcn.140096f40
movzx eax, al
test eax, eax
je 0x1400978f6
call fcn.140096f10
movzx eax, al
test eax, eax
jne 0x1400978fd
xor al, al
jmp 0x140097c60
mov rcx, qword [rsp + 0x120]
call fcn.140004a80
test eax, eax
jne 0x140097915
xor al, al
jmp 0x140097c60
mov rdx, qword [rsp + 0x120]
lea rcx, [rsp + 0x48]
call fcn.140004cb0
nop
lea r8, [0x140148548]
lea rdx, [0x1401485d4]
lea rcx, [rsp + 0x48]
call fcn.140003570
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x78]
call fcn.140004cb0
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x98]
call fcn.14001a6e0
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x48]
call fcn.140004b30
nop
lea rcx, [rsp + 0x98]
call fcn.140001910
lea rcx, [rsp + 0x48]
call fcn.14009a200
movzx eax, al
test eax, eax
jne 0x1400979db
mov byte [rsp + 0x41], 0
lea rcx, [rsp + 0x48]
call fcn.140001910
movzx eax, byte [rsp + 0x41]
jmp 0x140097c60
lea rcx, [rsp + 0x50]
call fcn.140004d40
nop
lea r9, [0x1401485e0]
mov r8, qword [rsp + 0x48]
lea rdx, [0x140148650]
lea rcx, [rsp + 0x50]
call fcn.140005ca0
lea rcx, [rsp + 0x50]
call fcn.140004640
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140097a25
mov dword [rsp + 0x58], 1
jmp 0x140097a2d
mov dword [rsp + 0x58], 0
movzx eax, byte [rsp + 0x58]
mov byte [rsp + 0x40], al
mov dword [rsp + 0x5c], 0
movzx eax, byte [rsp + 0x128]
cmp eax, 1
jne 0x140097b8c
movzx eax, byte [rsp + 0x40]
test eax, eax
jne 0x140097b87
mov dword [rsp + 0x5c], 0x2000080
lea rcx, [rsp + 0x50]
call fcn.140004640
mov rdx, rax
lea rcx, [rsp + 0xc0]
call fcn.140011ed0
nop
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xe0]
call fcn.14001a320
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140045590
mov rcx, rax
call fcn.140019a00
nop
lea rcx, [rsp + 0xe0]
call fcn.140006ee0
nop
lea rcx, [rsp + 0xc0]
call fcn.140006ee0
lea rcx, [rsp + 0x50]
call fcn.140004640
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000080
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rax
call fcn.140099cf0
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0xffffffffffffffff
jne 0x140097b67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov rcx, qword [rsp + 0x120]
call fcn.140004640
mov edx, dword [rsp + 0x60]
mov rcx, rax
call fcn.140098fb0
mov byte [rsp + 0x42], 0
lea rcx, [rsp + 0x50]
call fcn.140001910
nop
lea rcx, [rsp + 0x48]
call fcn.140001910
movzx eax, byte [rsp + 0x42]
jmp 0x140097c60
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x120]
call fcn.140004640
mov rcx, rax
call fcn.140098ed0
jmp 0x140097c41
movzx eax, byte [rsp + 0x40]
cmp eax, 1
jne 0x140097c41
lea rcx, [rsp + 0x50]
call fcn.140004640
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x6000080
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rax
call fcn.140099cf0
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0xffffffffffffffff
jne 0x140097c21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x64], eax
mov rcx, qword [rsp + 0x120]
call fcn.140004640
mov edx, dword [rsp + 0x64]
mov rcx, rax
call fcn.140099190
mov byte [rsp + 0x43], 0
lea rcx, [rsp + 0x50]
call fcn.140001910
nop
lea rcx, [rsp + 0x48]
call fcn.140001910
movzx eax, byte [rsp + 0x43]
jmp 0x140097c60
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x120]
call fcn.140004640
mov rcx, rax
call fcn.1400990b0
mov byte [rsp + 0x44], 1
lea rcx, [rsp + 0x50]
call fcn.140001910
nop
lea rcx, [rsp + 0x48]
call fcn.140001910
movzx eax, byte [rsp + 0x44]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1400dbfd0
add rsp, 0x118
ret