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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x618]
sub rsp, 0x710
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rbp + 0x600], rax
mov rdi, rcx
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x50]
call fcn.1400220d0
mov dword [rsp + 0x40], 0
mov word [rsp + 0x44], 0x500
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x50], eax
movzx eax, word [rsp + 0x44]
mov word [rsp + 0x54], ax
mov dword [rsp + 0x40], 0
mov word [rsp + 0x44], 0x500
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x56], eax
movzx eax, word [rsp + 0x44]
mov word [rsp + 0x5a], ax
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
xor esi, esi
mov qword [rsp + 0x78], rsi
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rsi
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x60], xmm1
mov word [rbp - 0x50], ax
mov qword [rbp - 0x68], rsi
cmp qword [rdi + 0x10], rsi
jne 0x140019be6
lea ecx, [rax + 0x18]
call fcn.14001f818
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov qword [rax], rcx
mov dword [rax], 0x400
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
mov qword [rdi + 0x10], rax
cmp byte [rbp - 0x4f], 1
jne 0x140019b29
mov edx, esi
jmp 0x140019b3f
cmp qword [rsp + 0x68], rcx
jne 0x140019b3a
lea rcx, [rsp + 0x50]
call fcn.140013110
lea rdx, [rsp + 0x60]
mov rbx, qword [rdi + 0x10]
mov dword [rbx], 0x400
lea rax, str.GlobalROGLSLOADERUI_PROGRESSMEMORY
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
xor r9d, r9d
lea rcx, [r9 - 1]
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140019b9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
mov r8d, ebx
lea rdx, str.Could_not_create_file_mapping_object___d_._n
call fcn.140005b00
jmp 0x140019be6
movsxd rax, dword [rbx]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 8], rax
xor edx, edx
test rax, rax
je 0x140019bd0
movsxd r8, dword [rbx]
mov rcx, rax
call fcn.1400220d0
jmp 0x140019be6
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.MapViewOfFile_fail
call fcn.140005b00
cmp qword [rdi], 0
jne 0x140019c23
cmp byte [rbp - 0x4f], 1
jne 0x140019bf7
mov rcx, rsi
jmp 0x140019c0e
cmp qword [rsp + 0x68], 0
jne 0x140019c09
lea rcx, [rsp + 0x50]
call fcn.140013110
lea rcx, [rsp + 0x60]
lea r9, str.GlobalROGLSLOADERUI_PROGRESSBAR
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.1400220d0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call fcn.1400220d0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3f0]
call fcn.1400220d0
lea r8, str.ProgramFiles_x86_
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x38]
call fcn.14002bb00
test eax, eax
jne 0x140019cb8
mov r9, qword [rsp + 0x38]
lea r8, str._sASUS
mov edx, 0x104
lea rcx, [rbp + 0x3f0]
call fcn.1400011b0
mov rcx, qword [rsp + 0x38]
call fcn.140029d98
lea r9, [rbp + 0x3f0]
lea r8, str._sAsusROGLSLServiceArmoury_Crate_Installer.exe
mov edx, 0x104
lea rcx, [rbp - 0x30]
call fcn.1400011b0
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140019d8d
test al, 0x10
jne 0x140019d8d
lea r8, [rbp - 0x30]
lea rdx, str.__s___asusdownloadbar__waitobj__barstyle_armourycrate__barProduct__Armoury_Crate_
lea rcx, [rbp + 0x1e0]
call fcn.140001d30
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea r8, [rbp + 0x1e0]
lea rdx, str.onProgressBarRun__Secured_UI_Path___ls
call fcn.140005c50
mov ecx, 0x540
call fcn.14001f818
mov rbx, rax
mov qword [rbp - 0x40], rax
xor edx, edx
mov r8d, 0x540
mov rcx, rax
call fcn.1400220d0
mov rcx, rbx
call fcn.1400170c0
mov rbx, rax
mov dword [rsp + 0x40], esi
mov byte [rsp + 0x20], 1
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [rbp + 0x1e0]
mov rcx, rax
call fcn.1400142e0
test al, al
jne 0x140019d71
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.startNormalUi_fail
call fcn.140005c50
test rbx, rbx
je 0x140019daa
mov rcx, rbx
call fcn.1400145c0
mov edx, 0x540
mov rcx, rbx
call fcn.14001f574
jmp 0x140019daa
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea r8, [rbp - 0x30]
lea rdx, str._S_not_found.
call fcn.140005c50
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140019db9
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140019dcc
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp - 0x78]
cmp qword [rbp - 0x68], 0
je 0x140019dd9
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140019de8
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x140019df7
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140019e06
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140019e16
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.14001f550
lea r11, [rsp + 0x710]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret