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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rbx, rcx
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x80], rax
call fcn.14012166c
mov esi, 0x1126
test al, al
jne 0x140121c67
xorps xmm0, xmm0
lea r14, [rsp + 0x50]
movaps xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
mov rcx, rbx
mov rdx, r14
call fcn.140121c8d
mov edi, eax
mov rcx, r14
call fcn.140121d47
mov ebx, eax
mov rcx, r14
mov rdx, r14
call fcn.140121d8f
mov byte [rsp + 0x2b], bl
test bl, bl
jne 0x140121a83
test dil, dil
jne 0x140121a83
mov dword [rsp + 0x2c], 0x7b
test al, al
je 0x140121c52
cmp byte [rsp + 0x2b], 0
jne 0x140121b26
lea rbx, [rsp + 0x58]
lea rdx, [0x1402b5430]
lea rdi, [rsp + 0x38]
mov rcx, rdi
call fcn.1400231ae
movzx r8d, byte [rbx + 0xf]
test r8b, r8b
cmovs r8, qword [rbx]
mov rdx, qword [rbx - 8]
cmovns rdx, r14
mov rcx, rdi
call fcn.1400e8f12
mov rdi, qword [rax]
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0xf]
mov qword [rsp + 0x77], rdx
mov qword [rsp + 0x70], rcx
mov bpl, byte [rax + 0x17]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
cmp byte [rbx + 0xf], 0
jns 0x140121afa
mov rcx, qword [rsp + 0x50]
call fcn.140255d7c
mov qword [rsp + 0x50], rdi
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x77]
mov qword [rbx + 7], rcx
mov qword [rbx], rax
mov byte [rsp + 0x67], bpl
cmp byte [rsp + 0x4f], 0
jns 0x140121b26
mov rcx, qword [rsp + 0x38]
call fcn.140255d7c
mov rbp, 0xffffffffffffffff
lea rbx, [rsp + 0x68]
xor r15d, r15d
lea rdi, [rsp + 0x38]
mov rsi, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov qword [rsp + 0x20], rbx
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
mov r9, rbp
call fcn.1400e9148
cmp byte [rsp + 0x67], 0
jns 0x140121b68
mov rcx, qword [rsp + 0x50]
call fcn.140255d7c
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rsp + 0x38]
movaps xmmword [rsp + 0x50], xmm0
cmp byte [rsp + 0x67], 0
mov rcx, r14
jns 0x140121b8b
mov rcx, qword [rsp + 0x50]
call rsi
cmp eax, 0xffffffff
je 0x140121b9d
bt eax, 0xa
jae 0x140121c06
jmp 0x140121c3a
mov qword [rsp + 0x30], r15
mov r15, rbx
xor r13d, r13d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea r12d, [rbx - 2]
cmp r12d, 2
jb 0x140121bf8
cmp ebx, 0x7b
je 0x140121bf8
test byte [rsp + 0x30], 1
sete al
or al, byte [rsp + 0x2b]
jne 0x140121bec
mov rcx, r14
mov dx, 0x5c
mov r8, 0xffffffffffffffff
call fcn.1400e9672
mov r13d, 2
cmp rax, 3
je 0x140121bf8
mov r13d, 1
mov eax, ebx
mov dword [rsp + 0x2c], ebx
cmp r12d, 2
jb 0x140121c03
cmp ebx, 0x7b
jne 0x140121c2b
mov rbx, r15
mov rcx, r14
mov dx, 0x5c
mov r8, 0xffffffffffffffff
call fcn.1400e9672
mov rbp, rax
mov r15b, 1
cmp rbp, 2
ja 0x140121b41
jmp 0x140121c4a
test r13d, r13d
jne 0x140121c44
mov rbx, r15
mov r15, qword [rsp + 0x30]
jmp 0x140121c1f
mov dword [rsp + 0x2c], 0
jmp 0x140121c52
cmp r13d, 2
jne 0x140121c52
mov dword [rsp + 0x2c], 0x1126
cmp byte [rsp + 0x67], 0
jns 0x140121c63
mov rcx, qword [rsp + 0x50]
call fcn.140255d7c
mov esi, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140257200
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret