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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x4298
call fcn.140222df0
sub rsp, rax
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x4280], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rsp + 0x42a0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
je 0x1400f2c91
mov dword [rsp + 0x48], 0
lea rax, [rsp + 0x280]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x4000
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x900a8
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400f2c20
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0xa0000003
jne 0x1400f2ae6
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0xa]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x40]
mov word [rcx + 0xa], ax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 8]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x40]
mov word [rcx + 8], ax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 8]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax*2 + 0x10]
mov qword [rsp + 0x58], rax
mov r8d, 4
lea rdx, [0x14030c8b0]
mov rcx, qword [rsp + 0x58]
call fcn.14022ae84
test eax, eax
jne 0x1400f2ac3
mov rax, qword [rsp + 0x58]
add rax, 8
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0xa]
sub eax, 4
mov rcx, qword [rsp + 0x40]
mov word [rcx + 0xa], ax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0xa]
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x42a8]
call fcn.140016460
jmp 0x1400f2c1e
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0xa000000c
jne 0x1400f2c16
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0xa]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x40]
mov word [rcx + 0xa], ax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 8]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x40]
mov word [rcx + 8], ax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 8]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax*2 + 0x14]
mov qword [rsp + 0x50], rax
mov r8d, 4
lea rdx, [0x14030c8c0]
mov rcx, qword [rsp + 0x50]
call fcn.14022ae84
test eax, eax
jne 0x1400f2b85
mov rax, qword [rsp + 0x50]
add rax, 8
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0xa]
sub eax, 4
mov rcx, qword [rsp + 0x40]
mov word [rcx + 0xa], ax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x10]
and eax, 1
test eax, eax
je 0x1400f2bf6
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0xa]
mov r8d, eax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x42a8]
call fcn.140016460
mov rcx, qword [rsp + 0x42a8]
call fcn.14002a240
mov rcx, qword [rsp + 0x42a8]
call fcn.14000c690
xor r9d, r9d
lea r8, [rsp + 0x70]
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x42a8]
call fcn.140015550
jmp 0x1400f2c14
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0xa]
mov r8d, eax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x42a8]
call fcn.140016460
jmp 0x1400f2c1e
mov dword [rsp + 0x48], 1
jmp 0x1400f2c29
call fcn.1400f5240
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x48], 0
jne 0x1400f2c8b
mov rcx, qword [rsp + 0x42a8]
call fcn.14000c690
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0xffffffff
je 0x1400f2c8b
mov eax, dword [rsp + 0x4c]
and eax, 0x410
cmp eax, 0x410
jne 0x1400f2c8b
mov rcx, qword [rsp + 0x42a8]
call fcn.14000c690
mov rdx, qword [rsp + 0x42a8]
mov rcx, rax
call fcn.1400f2960
jmp 0x1400f2c96
mov eax, dword [rsp + 0x48]
jmp 0x1400f2c96
call fcn.1400f5240
mov rcx, qword [rsp + 0x4280]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x4298
ret