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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, rcx
mov r13, rdx
mov rcx, rdx
mov rbx, rdx
xor ebp, ebp
xor r14d, r14d
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15d, eax
cmp eax, 0xffffffff
jne 0x140019ab7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rbx
mov edx, 0x11d
mov r8d, eax
mov rcx, rsi
call fcn.140091750
xor eax, eax
jmp 0x140019d3b
and r15d, 0x10
je 0x140019ae9
mov rdi, 0xffffffffffffffff
lea r14d, [rdi + 2]
nop dword [rax + rax]
inc rdi
cmp word [r13 + rdi*2], bp
jne 0x140019ad0
inc rdi
lea rbx, [rdi*2]
add rbx, r13
cmp word [rbx], bp
je 0x140019b2e
lea rdx, [rdi + r14]
nop dword [rax]
nop word [rax + rax]
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [rbx + rcx*2], 0
jne 0x140019b10
inc rcx
lea rax, [rdx + rcx]
add rbp, rax
lea rbx, [rbx + rcx*2]
cmp word [rbx], 0
jne 0x140019b00
lea rdx, [rbp*2 + 0x16]
mov ecx, 0x2042
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x58], rax
mov rbx, rax
test rax, rax
je 0x140019d38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140019d38
mov qword [rsp + 0x50], r12
lea r14, [rax + 0x14]
mov dword [rax], 0x14
lea rbp, [r14 + rbp*2]
mov dword [rax + 0x10], 1
mov r12, r13
test r15d, r15d
je 0x140019b94
lea r12, [rdi*2]
add r12, r13
test r15d, r15d
mov r10d, 0
cmove r13, r10
cmp word [r12], r10w
je 0x140019d26
lea edx, [r10 + 0x5c]
nop dword [rax]
test r13, r13
je 0x140019c78
mov rdi, r12
mov r15, r14
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [r13 + rax*2], 0
jne 0x140019bd0
test rax, rax
je 0x140019c00
lea rcx, [r13 - 2]
lea rcx, [rcx + rax*2]
nop dword [rax]
cmp word [rcx], 0x5c
jne 0x140019c00
sub rcx, 2
sub rax, 1
jne 0x140019bf0
cmp word [r12], 0x5c
jne 0x140019c1a
nop dword [rax + rax]
add rdi, 2
cmp word [rdi], 0x5c
je 0x140019c10
mov rsi, 0xffffffffffffffff
inc rsi
cmp word [rdi + rsi*2], 0
jne 0x140019c21
test rax, rax
je 0x140019c4d
lea rbx, [rax + rax]
mov rdx, r13
mov r8, rbx
mov rcx, r14
call fcn.1400b1500
xor r10d, r10d
lea r15, [rbx + r14]
lea edx, [r10 + 0x5c]
test rsi, rsi
je 0x140019c72
mov word [r15], dx
lea rbx, [rsi + rsi]
add r15, 2
mov r8, rbx
mov rcx, r15
mov rdx, rdi
call fcn.1400b1500
add r15, rbx
xor r10d, r10d
mov word [r15], r10w
jmp 0x140019cd4
lea rcx, [rbp + 2]
sub rcx, r14
sar rcx, 1
je 0x140019cd9
cmp rcx, 0x7fffffff
jbe 0x140019c93
mov word [r14], r10w
jmp 0x140019cd9
mov r8d, 0x7ffffffe
mov r9, r12
sub r8, rcx
mov rdx, r14
sub r9, r14
lea rax, [r8 + rcx]
test rax, rax
je 0x140019cc5
movzx eax, word [r9 + rdx]
test ax, ax
je 0x140019cc5
mov word [rdx], ax
add rdx, 2
sub rcx, 1
jne 0x140019ca5
test rcx, rcx
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], r10w
mov edx, 0x5c
mov rax, 0xffffffffffffffff
cmp word [r12 + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140019ce0
lea r12, [r12 + rax*2]
mov rax, 0xffffffffffffffff
add r12, 2
nop dword [rax]
cmp word [r14 + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140019d00
lea r14, [r14 + rax*2]
add r14, 2
cmp word [r12], 0
jne 0x140019bb0
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
mov word [r14], r10w
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov r12, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret