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

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x2e0
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rbx, rcx
mov dword [rsp + 0x9c], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x98], eax
mov rsi, qword [rbx + 8]
mov rbp, qword [rbx + 0x10]
mov edi, dword [rbx + 0x28]
xor r12d, r12d
mov qword [rsp + 0xb0], r12
xor edx, edx
lea r8d, [r12 + 0x70]
lea rcx, [rsp + 0xb8]
call fcn.12959590
xor edx, edx
mov r8d, 0x98
lea rcx, [rsp + 0x128]
call fcn.12959590
lea r11, [rsp + 0x148]
mov qword [rsp + 0x90], r11
mov qword [rsp + 0x168], 7
mov qword [rsp + 0x160], r12
mov word [rsp + 0x150], r12w
lea rax, [rsp + 0x170]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x190], 7
mov qword [rsp + 0x188], r12
mov word [rsp + 0x178], r12w
lea rax, [rsp + 0x198]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x1b8], 7
mov qword [rsp + 0x1b0], r12
mov word [rsp + 0x1a0], r12w
mov qword [rsp + 0x1c0], r12
xor edx, edx
lea r8d, [r12 + 0x70]
lea rcx, [rsp + 0x1c8]
call fcn.12959590
xor edx, edx
mov r8d, 0x98
lea rcx, [rsp + 0x238]
call fcn.12959590
lea r11, [rsp + 0x258]
mov qword [rsp + 0x90], r11
mov qword [rsp + 0x278], 7
mov qword [rsp + 0x270], r12
mov word [rsp + 0x260], r12w
lea rax, [rsp + 0x280]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x2a0], 7
mov qword [rsp + 0x298], r12
mov word [rsp + 0x288], r12w
lea rax, [rsp + 0x2a8]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x2c8], 7
mov qword [rsp + 0x2c0], r12
mov word [rsp + 0x2b0], r12w
mov byte [rsp + 0x1d4], 1
mov byte [rsp + 0xc4], 1
mov dword [rsp + 0x1d8], 1
mov dword [rsp + 0xc8], 1
mov dword [rsp + 0x1d0], r12d
mov dword [rsp + 0xc0], r12d
mov rdx, qword [rbx + 0x10]
mov qword [rsp + 0x1c0], rdx
lea rax, [rsp + 0x238]
mov qword [rsp + 0x1e0], rax
lea rax, [rsp + 0x258]
mov qword [rsp + 0x1e8], rax
lea rax, [rsp + 0x280]
mov qword [rsp + 0x1f0], rax
lea rax, [rsp + 0x2a8]
mov qword [rsp + 0x1f8], rax
lea rax, [rsp + 0x23c]
mov qword [rsp + 0x200], rax
lea rax, [rsp + 0x240]
mov qword [rsp + 0x208], rax
lea rax, [rsp + 0x250]
mov qword [rsp + 0x228], rax
lea rax, [rsp + 0x254]
mov qword [rsp + 0x230], rax
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1288c1f4
test rdx, rdx
je 0x1288c1f4
test byte [rbx + 0x28], 6
jne 0x1288c1f4
call qword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
test eax, eax
jne 0x1288c1f1
mov dword [rsp + 0x80], r12d
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x1d8]
mov dword [rsp + 0x70], eax
movzx eax, byte [rsp + 0x1d4]
mov byte [rsp + 0x68], al
mov rax, qword [rsp + 0x228]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x220]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x1d0]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x218]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x210]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x200]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x1f8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x1f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x1e8]
mov r8, qword [rsp + 0x1e0]
mov rdx, qword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x1c0]
call fcn.12888cb0
mov dword [rsp + 0x1dc], eax
cmp dword [rsp + 0x238], 2
jb 0x1288c1f4
mov eax, dword [rsp + 0x250]
shr eax, 4
and eax, 1
je 0x1288c1f4
or edi, 2
mov r10, qword [rbx]
mov dword [rsp + 0x28], edi
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x20], rax
mov r9, qword [rbx + 0x18]
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call qword [r10 + 8]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [rsp + 0x98], eax
test edi, edi
je 0x1288c261
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1288c261
call fcn.12824800
test eax, eax
je 0x1288c261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1288c261
test al, 0x10
jne 0x1288c261
mov r8d, dword [rbx + 0x28]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
call fcn.12857520
nop
lea r9, [fcn.1288b960]
mov edx, 0x110
mov r8d, 2
lea rcx, [rsp + 0xb0]
call fcn.1295b4c0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x1288c297
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x1288c299
mov eax, edi
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.12959850
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret