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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x78
lea rax, [rsp + 0x90]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
add rax, 8
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax - 8]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov eax, dword [rsp + 0x88]
btr eax, 0xf
test eax, eax
jne 0x14001e411
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x14001e326
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x14001e326
mov rcx, qword [rsp + 0x80]
call fcn.14001eab0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14001e317
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
mov eax, 0xffffffff
jmp 0x14001e595
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x14001e34f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001efa0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0xffffffff
jmp 0x14001e595
mov eax, dword [rsp + 0x40]
and eax, 0x10
test eax, eax
je 0x14001e411
cmp qword [rsp + 0x50], 0
je 0x14001e399
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000001
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
jmp 0x14001e3cd
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000001
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x14001e3f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001efa0
mov eax, 0xffffffff
jmp 0x14001e595
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open_osfhandle]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
jmp 0x14001e595
cmp qword [rsp + 0x50], 0
jne 0x14001e4ff
mov r8d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jge 0x14001e4b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0xd
jne 0x14001e4b4
mov eax, dword [rsp + 0x88]
and eax, 0x100
test eax, eax
je 0x14001e4b4
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x14001e485
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001efa0
jmp 0x14001e4aa
mov eax, dword [rsp + 0x40]
and eax, 0x10
test eax, eax
je 0x14001e49e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x15
jmp 0x14001e4aa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0xd
mov eax, 0xffffffff
jmp 0x14001e595
cmp dword [rsp + 0x44], 0
jge 0x14001e4c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 2
je 0x14001e4cf
mov eax, dword [rsp + 0x44]
jmp 0x14001e595
mov rcx, qword [rsp + 0x80]
call fcn.14001eab0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14001e4ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
mov eax, 0xffffffff
jmp 0x14001e595
mov r8d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wopen]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jge 0x14001e586
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0xd
jne 0x14001e586
mov eax, dword [rsp + 0x88]
and eax, 0x100
test eax, eax
je 0x14001e586
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x14001e561
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001efa0
jmp 0x14001e586
mov eax, dword [rsp + 0x40]
and eax, 0x10
test eax, eax
je 0x14001e57a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x15
jmp 0x14001e586
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0xd
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rsp + 0x44]
add rsp, 0x78
ret