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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r12, rdx
mov rbx, rcx
mov rdi, qword [rdx]
mov rax, qword [rdi + 0x38]
xor r14d, r14d
cmp dword [rax - 0x10], r14d
je 0x14021c0bf
mov rdi, rax
lea ecx, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, r14d
cmp eax, 0xffffffff
setne dil
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test edi, edi
jne 0x14021c0bf
mov rdx, qword [r12]
add rdx, 0x38
lea rcx, [rbp + 0x77]
call fcn.14000c4d8
nop
mov rdi, qword [rbp + 0x77]
or r15d, 0xffffffff
cmp dword [rdi - 0x10], r14d
jl 0x14021bc16
lea rdx, [0x14035a040]
mov rcx, rdi
call fcn.1400bee84
test rax, rax
je 0x14021bc12
mov rdi, qword [rbp + 0x77]
sub rax, rdi
sar rax, 1
cmp eax, r15d
jle 0x14021bc16
cmp qword [rbx + 0x148], r14
jne 0x14021bbc7
lea ecx, [r14 + 0x50]
call fcn.1400be454
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x14021bb59
mov rcx, rax
call fcn.1402df3f8
jmp 0x14021bb5c
mov rax, r14
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.1400059d0
mov rdx, qword [rax]
mov rcx, qword [rbx + 0x148]
mov qword [rax], rcx
mov qword [rbx + 0x148], rdx
mov rdx, qword [rbx + 0x150]
mov rcx, qword [rax + 8]
mov qword [rbx + 0x150], rcx
mov qword [rax + 8], rdx
mov rdi, qword [rbp + 0x17]
test rdi, rdi
je 0x14021bbc7
mov eax, r15d
lock xadd dword [rdi + 8], eax
add eax, r15d
jne 0x14021bbc7
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r15d
lock xadd dword [rdi + 0xc], eax
add eax, r15d
jne 0x14021bbc7
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x148]
mov r8, qword [r12]
mov rax, qword [rcx]
lea r9, [r8 + 0x48]
add r8, 0x38
lea rdx, [rbp - 1]
call qword [rax + 0x40]
nop
mov rdx, rax
lea rcx, [rbp + 0x77]
call fcn.14000c244
nop
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14021bc12
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rbp + 0x77]
mov r13d, r14d
mov ebx, 1
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, r14d
cmp eax, 0xffffffff
setne dil
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test edi, edi
jne 0x14021c086
mov rdi, qword [rbp + 0x77]
cmp dword [rdi - 0x10], r14d
jl 0x14021bd0b
lea rdx, [0x14036115c]
mov rcx, rdi
call fcn.1400bee84
test rax, rax
je 0x14021bd07
mov rdi, qword [rbp + 0x77]
sub rax, rdi
sar rax, 1
cmp eax, r15d
jle 0x14021bd0b
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], r14
mov qword [rbp - 0x31], r14
lea r8, [rbp - 0x41]
lea rdx, [0x14036115c]
lea rcx, [rbp + 0x77]
call fcn.1402e46c0
mov rsi, qword [rbp - 0x39]
mov rax, rsi
mov rdi, qword [rbp - 0x41]
sub rax, rdi
sar rax, 3
cmp rax, 2
jb 0x14021bce0
mov rdx, rdi
lea rcx, [rbp + 0x77]
call fcn.14000c244
mov rcx, qword [rbp - 0x41]
mov rcx, qword [rcx + 8]
call fcn.1400beacc
mov r13d, eax
mov rsi, qword [rbp - 0x39]
mov rdi, qword [rbp - 0x41]
test rdi, rdi
je 0x14021bd07
cmp rdi, rsi
je 0x14021bcff
mov rcx, rdi
call fcn.140082b80
add rdi, 8
cmp rdi, rsi
jne 0x14021bcea
mov rdi, qword [rbp - 0x41]
mov rcx, rdi
call fcn.1400be0f4
mov rdi, qword [rbp + 0x77]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, r14d
cmp eax, 0xffffffff
setne dil
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test edi, edi
jne 0x14021c086
mov rcx, qword [rbp + 0x77]
cmp dword [rcx - 0x10], r14d
jle 0x14021bda7
lea edx, [rdi + 0x2f]
call fcn.1400bff94
test rax, rax
je 0x14021bd9f
mov rcx, qword [rbp + 0x77]
sub rax, rcx
sar rax, 1
cmp eax, r15d
jle 0x14021bda3
mov r9d, eax
xor r8d, r8d
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x77]
call fcn.14000c3d8
nop
mov rdx, rax
lea rcx, [rbp + 0x77]
call fcn.14000c244
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14021bd9f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x77]
cmp dword [rcx - 0x10], r14d
jl 0x14021be07
lea rdx, [0x140364f84]
call fcn.1400bee84
test rax, rax
je 0x14021be07
sub rax, qword [rbp + 0x77]
sar rax, 1
cmp eax, r15d
jle 0x14021be07
mov r9d, eax
xor r8d, r8d
lea rdx, [rbp - 0x11]
lea rcx, [rbp + 0x77]
call fcn.14000c3d8
nop
mov rdx, rax
lea rcx, [rbp + 0x77]
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14021be07
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp + 0x77]
call fcn.14000b994
mov rdx, rax
lea rcx, [rbp + 0x77]
call fcn.14000c244
lea r8, [0x140330de8]
lea rdx, str.rundll32
lea rcx, [rbp + 0x77]
call fcn.14000b658
lea rcx, [rbp + 0x77]
call fcn.14000baec
lea rcx, [rbp + 0x77]
call fcn.14000bbfc
mov rbx, qword [rbp + 0x77]
cmp dword [rbx - 0x10], r14d
jl 0x14021be8d
lea rdx, [0x14034dbb8]
mov rcx, rbx
call fcn.1400bee84
mov rbx, qword [rbp + 0x77]
test rax, rax
je 0x14021be8d
sub rax, rbx
sar rax, 1
cmp eax, r15d
jle 0x14021be8d
lea r8, [0x140330de8]
lea rdx, [0x14034dbb8]
lea rcx, [rbp + 0x77]
call fcn.14000b658
mov rbx, qword [rbp + 0x77]
xor eax, eax
lea rdi, str.msiexec
mov rsi, rbx
lea ecx, [rax + 8]
repe cmpsw word [rsi], word [rdi]
je 0x14021bea6
sbb eax, eax
sbb eax, r15d
test eax, eax
sete al
test al, al
je 0x14021bec9
mov r8d, VariantTimeToDosDateTime
lea rdx, [0x140364fb8]
lea rcx, [rbp + 0x77]
call fcn.14000c9f8
mov rbx, qword [rbp + 0x77]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, r14d
cmp eax, 0xffffffff
setne dil
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test edi, edi
jne 0x14021c086
mov rcx, qword [rbp + 0x77]
cmp dword [rcx - 0x10], r14d
jl 0x14021c086
lea rbx, [0x14034da64]
mov rdx, rbx
call fcn.1400bee84
test rax, rax
je 0x14021c086
sub rax, qword [rbp + 0x77]
sar rax, 1
cmp eax, r15d
jle 0x14021c086
mov dword [rbp + 0x6f], r14d
lea r9, [rbp + 0x6f]
mov r8, rbx
lea rdx, [rbp + 0x7f]
lea rcx, [rbp + 0x77]
call fcn.140066804
nop
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x49]
call fcn.14000c4d8
nop
jmp 0x14021c02d
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, r14d
cmp eax, 0xffffffff
setne dil
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [rbp + 0x77]
test edi, edi
je 0x14021bfad
lea rdx, [rbp - 0x49]
call fcn.14000c244
xor r8d, r8d
lea rdx, [0x140330de8]
lea rcx, [rbp + 0x7f]
call fcn.14000c9f8
jmp 0x14021c02d
lea r9, [rbp + 0x6f]
mov r8, rbx
lea rdx, [rbp - 0x21]
call fcn.140066804
nop
mov rdx, rax
lea rcx, [rbp + 0x7f]
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14021bfeb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [rbp + 0x7f]
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.14000d30c
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x49]
call fcn.14000c0c4
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14021c02d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [0x140350cfe]
lea rcx, [rbp + 0x7f]
call fcn.1400669ec
test al, al
jne 0x14021bf5b
mov rdx, qword [rbp - 0x49]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14021c066
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x7f]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14021c086
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [r12]
add rcx, 0x38
lea rdx, [rbp + 0x77]
call fcn.14000c244
mov rdx, qword [r12]
mov dword [rdx + 0x40], r13d
mov rdx, qword [rbp + 0x77]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14021c0bf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret