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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x8d0
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rsp + 0x8c0], rax
mov rsi, qword [rsp + 0x920]
mov rdi, r9
mov ebx, r8d
mov rbp, rdx
mov rcx, qword [str.___t_]
lea r15, str.___t_
lea r12, [0x140081340]
cmp rcx, r15
je 0x140008d59
test byte [rcx + 0x1c], 4
je 0x140008d59
cmp byte [rcx + 0x19], 5
jb 0x140008d59
mov rcx, qword [rcx + 0x10]
mov edx, SetErrorInfo
mov r8, r12
call fcn.140001010
lea r9, [rsp + 0x290]
mov r8d, ebx
call fcn.140009a50
mov ebx, eax
test eax, eax
je 0x140008dac
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140009018
test byte [rcx + 0x1c], 4
je 0x140009018
cmp byte [rcx + 0x19], 2
jb 0x140009018
mov edx, reloc.OLEAUT32.dll_SetErrorInfo
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r12
call fcn.140001030
jmp 0x140009018
test rdi, rdi
je 0x140008eb1
lea r9, [rsp + 0x4a0]
mov r8, rbp
mov rdx, rdi
call fcn.1400084a4
mov ebx, eax
test eax, eax
je 0x140008df9
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140009018
test byte [rcx + 0x1c], 4
je 0x140009018
cmp byte [rcx + 0x19], 2
jb 0x140009018
mov edx, 0xc9
jmp 0x140008d98
lea rax, [rsp + 0x4a0]
mov edx, 0x104
lea r9, [rsp + 0x290]
mov qword [rsp + 0x20], rax
lea r8, [0x140080e30]
mov rcx, rsi
call fcn.1400028c0
mov edi, eax
test eax, eax
jns 0x140008e56
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140009002
test byte [rcx + 0x1c], 4
je 0x140009002
cmp byte [rcx + 0x19], 2
jb 0x140009002
mov edx, 0xca
jmp 0x140008ff3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140009018
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140009018
test byte [rcx + 0x1c], 4
je 0x140009018
cmp byte [rcx + 0x19], 2
jb 0x140009018
mov rcx, qword [rcx + 0x10]
mov edx, 0xcb
mov r9, rsi
mov dword [rsp + 0x20], eax
mov r8, r12
call fcn.140001250
jmp 0x140009018
lea rax, [0x140080ea8]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x290]
mov qword [rsp + 0x20], rbp
lea r8, str._s_I64x._s
mov ebp, 0x104
lea rcx, [rsp + 0x6b0]
mov edx, ebp
call fcn.1400028c0
mov edi, eax
test eax, eax
jns 0x140008f17
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140009002
test byte [rcx + 0x1c], 4
je 0x140009002
cmp byte [rcx + 0x19], 2
jb 0x140009002
lea edx, [rbp - 0x38]
jmp 0x140008ff3
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x6b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140008f66
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140009018
test byte [rcx + 0x1c], 4
je 0x140009018
cmp byte [rcx + 0x19], 2
jb 0x140009018
mov edx, 0xcd
jmp 0x140008d98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x140008fac
mov rax, qword [str.___t_]
cmp rax, r15
je 0x140008fac
test byte [rax + 0x1c], 4
je 0x140008fac
cmp byte [rax + 0x19], 3
jb 0x140008fac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0xce
mov r9d, eax
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.140001030
lea rax, [rsp + 0x6c]
mov rdx, rbp
lea r9, [rsp + 0x290]
mov qword [rsp + 0x20], rax
lea r8, [0x140080e30]
mov rcx, rsi
call fcn.1400028c0
mov edi, eax
test eax, eax
jns 0x140009018
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140009002
test byte [rcx + 0x1c], 4
je 0x140009002
cmp byte [rcx + 0x19], 2
jb 0x140009002
mov edx, 0xcf
mov rcx, qword [rcx + 0x10]
mov r9d, edi
mov r8, r12
call fcn.140001030
mov ecx, edi
movzx eax, di
and ecx, 0x1fff0000
mov ebx, edi
cmp ecx, 0x70000
cmove ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x8c0]
xor rcx, rsp
call fcn.140077900
mov rbx, qword [rsp + 0x900]
add rsp, 0x8d0
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret