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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x58]
sub rsp, 0x130
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov r12, rcx
call fcn.140243a84
cmp dword [rax], 0x3e8
ja 0x14021e504
call fcn.140243bb4
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.14000b014
nop
lea rcx, [rax + 8]
lea rdx, str._DEBUG_
call fcn.14000b410
mov rcx, rax
lea rdx, str.Uninstall___Extracting_icons...
call fcn.14000b410
nop
lea rcx, [rsp + 0x38]
call fcn.14000aec4
mov rax, qword [r12 + 0x60]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14021e721
mov rax, qword [r12 + 0x40]
lea rcx, [r12 + 0x40]
call qword [rax + 0x10]
test al, al
jne 0x14021e721
mov rcx, qword [rbx + 0x20]
mov qword [rsp + 0x20], rcx
mov rdi, qword [rbx + 0x28]
mov qword [rsp + 0x28], rdi
test rdi, rdi
je 0x14021e54f
lock inc dword [rdi + 8]
mov rdi, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14021e6b9
xor r13b, r13b
mov rax, qword [rcx + 0x38]
cmp dword [rax - 0x10], 0
jne 0x14021e5cf
mov r13b, 1
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x60]
call fcn.140219510
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0x38
mov rdx, rax
call fcn.14000c244
nop
mov rdx, qword [rbp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14021e5a8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx + 0x38]
cmp dword [rax - 0x10], 0
jne 0x14021e5cf
cmp dword [rcx + 0x50], 8
jne 0x14021e5cf
lea rdx, [rcx + 0x68]
add rcx, 0x38
call fcn.14000c244
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx + 0x38]
cmp dword [rax - 0x10], 0
je 0x14021e6a4
lea rdx, [rsp + 0x20]
mov rcx, r12
call fcn.14021ba70
mov r11, qword [rsp + 0x20]
mov rdi, qword [r11 + 0x38]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, 0xffffffff
setne dil
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test edi, edi
jne 0x14021e6a4
test r13b, r13b
jne 0x14021e6a4
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x68]
call fcn.140219510
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0x38
mov rdx, rax
call fcn.14000c244
nop
mov rdx, qword [rbp + 0x68]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14021e667
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x20]
lea rcx, [rdx + 0x38]
mov rax, qword [rcx]
cmp dword [rax - 0x10], 0
jne 0x14021e68d
cmp dword [rdx + 0x50], 8
jne 0x14021e68d
add rdx, 0x68
call fcn.14000c244
mov rdx, qword [rsp + 0x20]
mov rax, qword [rdx + 0x38]
cmp dword [rax - 0x10], 0
je 0x14021e6a4
lea rdx, [rsp + 0x20]
mov rcx, r12
call fcn.14021ba70
lea rcx, [r12 + 0x10]
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
call qword [rax + 0x20]
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x14021e6dc
lock dec dword [rdi + 8]
jne 0x14021e6dc
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lock dec dword [rdi + 0xc]
jne 0x14021e6dc
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
cmp byte [rbx + 0x31], 0
jne 0x14021e716
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x31], 0
jne 0x14021e6fa
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x31], 0
je 0x14021e6ec
jmp 0x14021e716
mov rax, qword [rbx + 8]
jmp 0x14021e70d
cmp rbx, qword [rax + 0x10]
jne 0x14021e713
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x31], 0
je 0x14021e700
mov rbx, rax
cmp rbx, qword [r12 + 0x60]
jne 0x14021e515
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret