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

Disassembly:
mov rax, rsp
push rbx
push rbp
push r14
push r15
sub rsp, 0x58
mov ebx, r9d
mov r14, rdx
mov rbp, rcx
test rcx, rcx
je 0x14002051a
test rdx, rdx
je 0x14002051a
mov r15, qword [rsp + 0xa0]
test r15, r15
je 0x14002051a
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax - 0x28], r13
test r8, r8
lea r13, [0x140051018]
mov rdi, rbp
cmovne r13, r8
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
mov r9, rcx
je 0x140020315
cmp byte [rcx + rbp - 1], 0x5c
je 0x140020315
mov sil, 1
jmp 0x140020318
xor sil, sil
or rcx, 0xffffffffffffffff
mov rdi, rdx
mov r8d, 4
repne scasb al, byte [rdi]
mov rdi, r13
movzx edx, sil
not rcx
dec rcx
cmp rcx, r8
cmovb r8, rcx
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
lea rax, [r8 + rcx - 1]
mov rcx, qword [rsp + 0xa8]
add rdx, rax
lea rax, [rdx + r9 + 5]
cmp rax, rcx
jb 0x140020370
mov ecx, 0x6f
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400204eb
test ebx, ebx
je 0x14002039d
mov qword [rsp + 0x30], rcx
movzx r9d, bx
mov r8, r14
mov rcx, rbp
movzx edx, sil
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r13
call fcn.14001fe80
mov eax, ebx
jmp 0x1400204eb
mov rbx, qword [rsp + 0xc0]
xor eax, eax
mov qword [rsp + 0x98], r12
test rbx, rbx
je 0x1400203c2
mov edi, 0x4000000
cmp dword [rsp + 0xb8], eax
je 0x1400203c4
mov edi, eax
or edi, 0x102
movzx r12d, ax
mov dword [rsp + 0x40], edi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
test sil, sil
mov rsi, qword [rsp + 0xa8]
lea rdx, [0x140050c64]
lea rcx, [0x14004eb38]
cmovne rcx, rdx
mov qword [rsp + 0x48], rcx
nop word [rax + rax]
inc ax
mov qword [rsp + 0x38], r13
lea r8, str._s_s_.4s_04X._s
mov dword [rsp + 0x80], eax
movzx eax, ax
mov r9, rbp
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rcx
mov rcx, r15
mov rdx, rsi
inc r12w
call fcn.1400073f0
mov r8d, dword [rsp + 0xb0]
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov edx, 0xc0000000
mov rcx, r15
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140020480
test rax, rax
jne 0x1400204c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1400204c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x1400204ad
cmp eax, 5
jne 0x140020516
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400204ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14002050b
test r12w, r12w
je 0x140020516
mov edi, dword [rsp + 0x40]
mov eax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
jmp 0x140020400
test rbx, rbx
je 0x1400204d2
mov qword [rbx], rdi
jmp 0x1400204db
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [rsp + 0x80]
mov r12, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x88]
mov r13, qword [rsp + 0x50]
add rsp, 0x58
pop r15
pop r14
pop rbp
pop rbx
ret
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400204e3
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x58
pop r15
pop r14
pop rbp
pop rbx
ret