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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x188]
sub rsp, 0x288
mov r12, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov r8d, dword [0x14005c078]
mov rax, qword gs:[0x58]
mov ecx, 4
mov r8, qword [rax + r8*8]
mov eax, dword [rcx + r8]
cmp dword [0x14005b79c], eax
jg 0x140021f5e
lea r15, [0x14005a0a0]
cmp qword [0x14005a0b0], 0
jne 0x140021d0d
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140022af0
nop
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPInstall
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.140022d20
test eax, eax
je 0x140021d03
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.140026d60
mov dword [rbp + 0x1e8], 0x208
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x1e8]
lea r8, [rsp + 0x70]
lea rdx, str.ProgDir
lea rcx, [rsp + 0x40]
call fcn.1400236e0
test eax, eax
je 0x140021d03
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140021c73
lea rdx, [rsp + 0x70]
mov rcx, r15
call fcn.14000cfd0
mov rdx, r15
cmp qword [0x14005a0b8], 8
cmovae rdx, qword [0x14005a0a0]
mov r8, qword [0x14005a0b0]
test r8, r8
je 0x140021cdd
lea rcx, [r8 - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rdx + rax*2]
cmp word [rcx], 0x5c
je 0x140021cd5
cmp rcx, rdx
je 0x140021cdd
sub rcx, 2
cmp word [rcx], 0x5c
jne 0x140021cc6
sub rcx, rdx
sar rcx, 1
jmp 0x140021ce4
mov rcx, 0xffffffffffffffff
lea rax, [r8 - 1]
cmp rcx, rax
je 0x140021d03
mov r8d, 1
lea rdx, [0x14004df38]
mov rcx, r15
call fcn.14000e560
nop
lea rcx, [rsp + 0x38]
call fcn.140022bf0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 7
mov word [rdi], bx
mov dword [rsp + 0x30], 1
mov r14, qword [0x14005a0b0]
test r14, r14
je 0x140021f39
mov rcx, qword [r12 + 0x10]
mov qword [rsp + 0x68], rcx
movabs rdx, 0x7ffffffffffffffe
mov rax, rdx
sub rax, r14
cmp rax, rcx
jb 0x140021f94
cmp qword [0x14005a0b8], 8
cmovae r15, qword [0x14005a0a0]
mov qword [rbp + 0x1e8], r12
cmp qword [r12 + 0x18], 8
jb 0x140021d81
mov rax, qword [r12]
mov qword [rbp + 0x1e8], rax
lea r13, [r14 + rcx]
mov ebx, 7
lea rsi, [rsp + 0x38]
cmp r13, rbx
jbe 0x140021e21
mov rbx, r13
or rbx, 7
cmp rbx, rdx
jbe 0x140021db0
mov rbx, rdx
mov rcx, 0xfffffffffffffffe
jmp 0x140021ddf
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140021f9a
add rcx, rcx
cmp rcx, 0x1000
jb 0x140021e0b
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140021f9a
mov rcx, rax
call fcn.1400243ec
test rax, rax
je 0x140021f58
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140021e1c
test rcx, rcx
je 0x140021e1a
call fcn.1400243ec
mov rsi, rax
jmp 0x140021e1c
xor esi, esi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], rbx
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r15
mov rcx, rsi
call fcn.1400266b0
lea rcx, [rbx + rsi]
mov r8, qword [rsp + 0x68]
add r8, r8
mov rdx, qword [rbp + 0x1e8]
call fcn.1400266b0
xor ebx, ebx
mov word [rsi + r13*2], bx
mov dword [rsp + 0x30], 3
lea rax, [rsp + 0x38]
cmp rdi, rax
je 0x140021ec8
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140021ead
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140021ea8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140021f58
mov rcx, r8
call fcn.1400243b8
mov qword [rdi + 0x18], 7
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rdi + 0x10], xmm1
jmp 0x140021f06
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140021f06
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021f01
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021f58
call fcn.1400243b8
cmp dword [rbp + 0x1e0], ebx
je 0x140021f39
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140021f1b
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140021f39
xor r8d, r8d
lea rdx, [0x14004df6c]
mov rcx, rdi
call fcn.14000cfd0
nop
mov rcx, r12
call fcn.14000c530
mov rax, rdi
add rsp, 0x288
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400303f4
int3
lea rcx, [0x14005b79c]
call fcn.140024058
cmp dword [0x14005b79c], 0xffffffff
jne 0x140021bcf
lea rcx, [0x140043d80]
call fcn.1400243a0
lea rcx, [0x14005b79c]
call fcn.140023ff8
jmp 0x140021bcf
call fcn.140003e20
int3
call fcn.140001e20
int3