Function at 0x14000be30
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 [0x14009b978]
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 [0x14009b020]
lea r15, [0x14009b020]
lea r12, [0x14008ba10]
cmp rcx, r15
je 0x14000be9d
test byte [rcx + 0x1c], 4
je 0x14000be9d
cmp byte [rcx + 0x19], 5
jb 0x14000be9d
mov rcx, qword [rcx + 0x10]
mov edx, SetErrorInfo
mov r8, r12
call fcn.1400042fc
lea r9, [rsp + 0x290]
mov r8d, ebx
call fcn.140007040
mov ebx, eax
test eax, eax
je 0x14000bef0
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x14000c17d
test byte [rcx + 0x1c], 4
je 0x14000c17d
cmp byte [rcx + 0x19], 2
jb 0x14000c17d
mov edx, reloc.OLEAUT32.dll_SetErrorInfo
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r12
call fcn.140004668
jmp 0x14000c17d
test rdi, rdi
je 0x14000c001
lea r9, [rsp + 0x4a0]
mov r8, rbp
mov rdx, rdi
call fcn.140008470
mov ebx, eax
test eax, eax
je 0x14000bf3d
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x14000c17d
test byte [rcx + 0x1c], 4
je 0x14000c17d
cmp byte [rcx + 0x19], 2
jb 0x14000c17d
mov edx, 0xc9
jmp 0x14000bedc
lea rax, [rsp + 0x4a0]
mov edx, 0x104
lea r9, [rsp + 0x290]
mov qword [rsp + 0x20], rax
lea r8, [0x14008b500]
mov rcx, rsi
call fcn.140004280
mov edi, eax
test eax, eax
jns 0x14000bf9a
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x14000c16a
test byte [rcx + 0x1c], 4
je 0x14000c16a
cmp byte [rcx + 0x19], 2
jb 0x14000c16a
mov edx, 0xca
jmp 0x14000c15b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14000c17d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x14000c17d
test byte [rcx + 0x1c], 4
je 0x14000c17d
cmp byte [rcx + 0x19], 2
jb 0x14000c17d
mov rcx, qword [rcx + 0x10]
mov edx, 0xcb
mov r9, rsi
mov dword [rsp + 0x20], eax
mov r8, r12
call fcn.14000c558
jmp 0x14000c17d
lea rax, [0x14008b578]
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.140004280
mov edi, eax
test eax, eax
jns 0x14000c067
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x14000c16a
test byte [rcx + 0x1c], 4
je 0x14000c16a
cmp byte [rcx + 0x19], 2
jb 0x14000c16a
lea edx, [rbp - 0x38]
jmp 0x14000c15b
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x6b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
jne 0x14000c0c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x14000c17d
test byte [rcx + 0x1c], 4
je 0x14000c17d
cmp byte [rcx + 0x19], 2
jb 0x14000c17d
mov edx, 0xcd
jmp 0x14000bedc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
test eax, eax
jne 0x14000c114
mov rax, qword [0x14009b020]
cmp rax, r15
je 0x14000c114
test byte [rax + 0x1c], 4
je 0x14000c114
cmp byte [rax + 0x19], 3
jb 0x14000c114
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
mov edx, 0xce
mov r9d, eax
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.140004668
lea rax, [rsp + 0x6c]
mov rdx, rbp
lea r9, [rsp + 0x290]
mov qword [rsp + 0x20], rax
lea r8, [0x14008b500]
mov rcx, rsi
call fcn.140004280
mov edi, eax
test eax, eax
jns 0x14000c17d
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x14000c16a
test byte [rcx + 0x1c], 4
je 0x14000c16a
cmp byte [rcx + 0x19], 2
jb 0x14000c16a
mov edx, 0xcf
mov rcx, qword [rcx + 0x10]
mov r9d, edi
mov r8, r12
call fcn.140004328
mov eax, edi
movzx ebx, di
and eax, 0x1fff0000
cmp eax, 0x70000
je 0x14000c17d
mov ebx, edi
mov eax, ebx
mov rcx, qword [rsp + 0x8c0]
xor rcx, rsp
call fcn.1400018f0
mov rbx, qword [rsp + 0x900]
add rsp, 0x8d0
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret