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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x14000ef6d
xor edx, edx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], dx
jne 0x14000ed00
test rax, rax
je 0x14000ed34
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x14000ef6d
cmp r8w, 0x2f
je 0x14000ef6d
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x14000ed10
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.14000e050
mov rdi, rax
test rax, rax
je 0x14000ee8d
mov qword [rsp + 0x50], r14
call fcn.14000f380
mov r14, rax
test rax, rax
je 0x14000edb2
xor r8d, r8d
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [rdi + rcx*2], bp
jne 0x14000ed70
test rcx, rcx
je 0x14000ed9b
xor eax, eax
movzx edx, word [rdi + rax*2]
cmp dx, 0x5c
je 0x14000edc5
cmp dx, 0x2f
je 0x14000edc5
inc r8d
mov eax, r8d
cmp rax, rcx
jb 0x14000ed80
mov rdx, rdi
mov rcx, r14
call fcn.14000f540
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x14000ef27
lea rax, str.system32_
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x20], rax
lea rsi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rsi]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x14000ee00
mov r8, rbx
mov rcx, rdi
call fcn.140022c3c
test eax, eax
je 0x14000ee28
add rsi, 8
lea rax, [rsp + 0x30]
cmp rsi, rax
jb 0x14000edf0
jmp 0x14000ee37
lea rdx, [rdi + rbx*2]
mov rcx, r14
call fcn.14000f540
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rsi, rax
mov rsi, qword [rsp + 0x40]
jne 0x14000eda9
movzx ecx, word [rdi]
cmp ecx, 0x5c
je 0x14000ee83
cmp ecx, 0x2f
je 0x14000ee83
call fcn.140022750
test eax, eax
je 0x14000eda9
cmp word [rdi + 2], 0x3a
jne 0x14000eda9
movzx eax, word [rdi + 4]
cmp ax, 0x5c
je 0x14000ee83
cmp ax, 0x2f
jne 0x14000eda9
mov rbp, rdi
xor edi, edi
jmp 0x14000eda9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x14000ef47
mov rcx, rbx
call fcn.14000ffa0
mov rdi, rax
test rax, rax
je 0x14000ef47
mov ecx, 0x37e4
call fcn.14000fa10
test eax, eax
je 0x14000eec5
call fcn.14000ef90
jmp 0x14000eeca
call fcn.14000f380
mov rbx, rax
test rax, rax
je 0x14000ef1e
mov rdx, rdi
mov rcx, rax
call fcn.14000f540
mov rbp, rax
test rax, rax
je 0x14000ef15
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000eef7
test al, 0x50
je 0x14000ef15
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14000ef0a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x14000ef47
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000ef5a
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret