Function at 0x140019a50
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.140022630
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 0x140019c06
lea ecx, [rax + 0x18]
call fcn.14001fd78
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 0x140019b49
mov edx, esi
jmp 0x140019b5f
cmp qword [rsp + 0x68], rcx
jne 0x140019b5a
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 0x140019bbf
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 0x140019c06
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 0x140019bf0
movsxd r8, dword [rbx]
mov rcx, rax
call fcn.140022630
jmp 0x140019c06
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.MapViewOfFile_fail
call fcn.140005b00
cmp qword [rdi], 0
jne 0x140019c43
cmp byte [rbp - 0x4f], 1
jne 0x140019c17
mov rcx, rsi
jmp 0x140019c2e
cmp qword [rsp + 0x68], 0
jne 0x140019c29
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.140022630
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call fcn.140022630
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3f0]
call fcn.140022630
lea r8, str.ProgramFiles_x86_
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x38]
call fcn.14002c060
test eax, eax
jne 0x140019cd8
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.14002a2f8
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 0x140019dad
test al, 0x10
jne 0x140019dad
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.14001fd78
mov rbx, rax
mov qword [rbp - 0x40], rax
xor edx, edx
mov r8d, 0x540
mov rcx, rax
call fcn.140022630
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 0x140019d91
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.startNormalUi_fail
call fcn.140005c50
test rbx, rbx
je 0x140019dca
mov rcx, rbx
call fcn.1400145c0
mov edx, 0x540
mov rcx, rbx
call fcn.14001fad4
jmp 0x140019dca
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 0x140019dd9
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140019dec
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp - 0x78]
cmp qword [rbp - 0x68], 0
je 0x140019df9
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140019e08
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x140019e17
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140019e26
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140019e36
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.14001fab0
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