Function at 0x14021c450
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, 0x100
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rbx, rdx
xor r15d, r15d
mov dword [rbp + 0x6f], r15d
mov r14b, r15b
mov rdx, rcx
mov rcx, rbx
call fcn.14000c244
mov rcx, rbx
call fcn.14000b994
mov rcx, rbx
call fcn.14000baec
mov rcx, rbx
call fcn.14000bbfc
mov rdx, qword [rbx]
cmp dword [rdx - 0x10], r15d
jne 0x14021c4b6
mov r12b, 1
jmp 0x14021d048
mov r13d, 1
mov r8d, r13d
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140024c5c
xor edx, edx
lea rdi, [0x14034dbb8]
mov rsi, qword [rax]
lea ecx, [rdx + 2]
lea r12d, [r13 - 2]
repe cmpsw word [rsi], word [rdi]
je 0x14021c4e9
sbb edx, edx
sbb edx, r12d
test edx, edx
sete dil
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14021c510
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14021c5a6
mov rcx, qword [rbx]
cmp dword [rcx - 0x10], r13d
jl 0x14021c568
add rcx, 2
lea rdx, [0x14034dbb8]
call fcn.1400bee84
test rax, rax
je 0x14021c568
sub rax, qword [rbx]
sar rax, 1
cmp eax, r12d
jle 0x14021c568
lea r9d, [rax - 1]
mov r8d, r13d
lea rdx, [rbp - 1]
mov rcx, rbx
call fcn.14000c3d8
nop
mov rdx, rax
mov rcx, rbx
call fcn.14000c244
nop
mov rdx, qword [rbp - 1]
jmp 0x14021c58a
mov r8d, r13d
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14000b630
nop
mov rdx, rax
mov rcx, rbx
call fcn.14000c244
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14021c5a6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, 0xd
lea rdx, [rbp - 0x41]
mov rcx, rbx
call fcn.140024c5c
xor edx, edx
lea rdi, [0x140364e18]
mov rsi, qword [rax]
lea ecx, [rdx + 0xe]
repe cmpsw word [rsi], word [rdi]
je 0x14021c5d1
sbb edx, edx
sbb edx, r12d
test edx, edx
sete dil
mov rdx, qword [rbp - 0x41]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14021c5f7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, rbx
test dil, dil
je 0x14021c623
mov r8d, 0xd
lea rdx, [rsp + 0x48]
call fcn.14000b630
nop
mov rdx, rax
mov rcx, rbx
call fcn.14000c244
nop
mov rdx, qword [rsp + 0x48]
jmp 0x14021c69b
mov r8d, 9
lea rdx, [rbp - 0x11]
call fcn.140024c5c
xor edx, edx
lea rdi, [0x140364e38]
mov rsi, qword [rax]
lea ecx, [rdx + 0xa]
repe cmpsw word [rsi], word [rdi]
je 0x14021c64b
sbb edx, edx
sbb edx, r12d
test edx, edx
sete dil
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14021c671
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14021c6ba
mov r8d, 9
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14000b630
nop
mov rdx, rax
mov rcx, rbx
call fcn.14000c244
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14021c6b7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r14b, r13b
mov r8d, r13d
lea rdx, [rbp - 0x31]
mov rcx, rbx
call fcn.140024c5c
xor edx, edx
lea rdi, [0x14034dbb8]
mov rsi, qword [rax]
lea ecx, [rdx + 2]
repe cmpsw word [rsi], word [rdi]
je 0x14021c6e2
sbb edx, edx
sbb edx, r12d
test edx, edx
sete dil
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14021c708
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14021c79c
mov rcx, qword [rbx]
cmp dword [rcx - 0x10], r13d
jl 0x14021c760
add rcx, 2
lea rdx, [0x14034dbb8]
call fcn.1400bee84
test rax, rax
je 0x14021c760
sub rax, qword [rbx]
sar rax, 1
cmp eax, r12d
jle 0x14021c760
lea r9d, [rax - 1]
mov r8d, r13d
lea rdx, [rbp - 0x71]
mov rcx, rbx
call fcn.14000c3d8
nop
mov rdx, rax
mov rcx, rbx
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x71]
jmp 0x14021c780
mov r8d, r13d
lea rdx, [rbp + 0xf]
mov rcx, rbx
call fcn.14000b630
nop
mov rdx, rax
mov rcx, rbx
call fcn.14000c244
nop
mov rdx, qword [rbp + 0xf]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14021c79c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, 2
lea rdx, [rbp - 0x21]
mov rcx, rbx
call fcn.140024c5c
nop
mov r12d, r13d
mov dword [rbp + 0x6f], r13d
xor edx, edx
lea rdi, [0x140364e4c]
mov rsi, qword [rax]
lea ecx, [rdx + 3]
repe cmpsw word [rsi], word [rdi]
je 0x14021c7cf
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
sete al
test al, al
jne 0x14021c83f
mov r8d, 2
lea rdx, [rbp - 0x61]
mov rcx, rbx
call fcn.140024c5c
mov ecx, 3
mov r12d, ecx
mov dword [rbp + 0x6f], ecx
xor edx, edx
lea rdi, [0x140351c58]
mov rsi, qword [rax]
repe cmpsw word [rsi], word [rdi]
je 0x14021c80b
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
sete al
test al, al
jne 0x14021c83f
mov rcx, qword [rbx]
cmp dword [rcx - 0x10], r13d
jle 0x14021c83a
mov edx, 0x7b
add rcx, 2
call fcn.1400bff94
test rax, rax
je 0x14021c83a
sub rax, qword [rbx]
sar rax, 1
test eax, eax
jg 0x14021c83f
mov dil, r15b
jmp 0x14021c842
mov dil, r13b
or esi, 0xffffffff
test r12b, 2
je 0x14021c875
and r12d, 0xfffffffd
mov dword [rbp + 0x6f], r12d
mov rdx, qword [rbp - 0x61]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14021c871
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r12d, dword [rbp + 0x6f]
test r13b, r12b
je 0x14021c898
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14021c898
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14021c8a5
mov r12b, r13b
jmp 0x14021d048
mov rcx, qword [rbx]
cmp dword [rcx - 0x10], r15d
jl 0x14021c999
lea rdx, [0x14035a040]
call fcn.1400bee84
test rax, rax
je 0x14021c999
sub rax, qword [rbx]
sar rax, 1
cmp eax, esi
jle 0x14021c999
mov rdx, rbx
lea rcx, [rbp + 0x7f]
call fcn.14000c4d8
nop
lea rcx, [rbp + 0x77]
call fcn.14023dc9c
cmp dword [rbp + 0x77], r15d
je 0x14021c942
lea rdx, [0x14035a048]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x14021c916
lea r8, str._ProgramW6432_
lea rdx, str._programfiles_
jmp 0x14021c939
lea rdx, [0x14035d6e8]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x14021c942
lea r8, str._CommonProgramW6432_
lea rdx, str._commonprogramfiles_
lea rcx, [rbp + 0x7f]
call fcn.14000b658
mov rdx, qword [rbp + 0x7f]
lea rcx, [rbp - 0x51]
call fcn.14023ea4c
nop
mov rdx, rax
mov rcx, rbx
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x51]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14021c97b
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, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14021c999
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, 2
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140024c5c
xor edx, edx
lea rdi, [0x140358538]
mov rsi, qword [rax]
lea ecx, [rdx + 3]
repe cmpsw word [rsi], word [rdi]
je 0x14021c9c5
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
sete al
test al, al
setne r12b
test r12b, r12b
sete dil
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14021c9f7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14021d048
mov rdi, qword [rbx]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, r15d
cmp eax, 0xffffffff
setne dil
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp edi, r13d
sete r12b
test r12b, r12b
jne 0x14021d048
mov r8d, 4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140024bbc
xor edx, edx
lea rdi, str..url
mov rsi, qword [rax]
lea ecx, [rdx + 5]
repe cmpsw word [rsi], word [rdi]
je 0x14021ca6d
sbb edx, edx
mov r12d, 0xffffffff
sbb edx, r12d
jmp 0x14021ca71
or r12d, 0xffffffff
test edx, edx
setne dil
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14021ca98
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14021cc16
mov rcx, qword [rbx]
cmp dword [rcx - 0x10], r15d
jl 0x14021cb16
lea rdx, [0x140353d40]
call fcn.1400bee84
test rax, rax
je 0x14021cb16
mov rcx, qword [rbx]
sub rax, rcx
sar rax, 1
cmp eax, r12d
jle 0x14021cb16
cmp dword [rcx - 0x10], r15d
jl 0x14021cae0
lea rdx, [0x140353d40]
call fcn.1400bee84
test rax, rax
jne 0x14021cae5
mov eax, r12d
jmp 0x14021caeb
sub rax, qword [rbx]
sar rax, 1
lea r9d, [rax + 4]
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14000c3d8
nop
mov rdx, rax
mov rcx, rbx
call fcn.14000c244
nop
mov rdx, qword [rsp + 0x40]
jmp 0x14021cbfa
mov rcx, qword [rbx]
cmp dword [rcx - 0x10], r15d
jl 0x14021cb88
lea rdx, [0x140357e60]
call fcn.1400bee84
test rax, rax
je 0x14021cb88
mov rcx, qword [rbx]
sub rax, rcx
sar rax, 1
cmp eax, r12d
jle 0x14021cb88
cmp dword [rcx - 0x10], r15d
jl 0x14021cb55
lea rdx, [0x140357e60]
call fcn.1400bee84
test rax, rax
jne 0x14021cb5a
mov eax, r12d
jmp 0x14021cb60
sub rax, qword [rbx]
sar rax, 1
lea r9d, [rax + 4]
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14000c3d8
nop
mov rdx, rax
mov rcx, rbx
call fcn.14000c244
nop
mov rdx, qword [rsp + 0x50]
jmp 0x14021cbfa
mov rcx, qword [rbx]
cmp dword [rcx - 0x10], r15d
jl 0x14021cc16
lea rdx, str..com
call fcn.1400bee84
test rax, rax
je 0x14021cc16
mov rcx, qword [rbx]
sub rax, rcx
sar rax, 1
cmp eax, r12d
jle 0x14021cc16
cmp dword [rcx - 0x10], r15d
jl 0x14021cbcb
lea rdx, str..com
call fcn.1400bee84
test rax, rax
jne 0x14021cbd0
mov eax, r12d
jmp 0x14021cbd6
sub rax, qword [rbx]
sar rax, 1
lea r9d, [rax + 4]
xor r8d, r8d
lea rdx, [rbp - 0x79]
mov rcx, rbx
call fcn.14000c3d8
nop
mov rdx, rax
mov rcx, rbx
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x79]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14021cc16
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r9d, 2
mov r8d, r13d
lea rdx, [rbp - 0x69]
mov rcx, rbx
call fcn.14000c3d8
xor edx, edx
lea rdi, [0x140364e74]
mov rsi, qword [rax]
lea ecx, [rdx + 3]
repe cmpsw word [rsi], word [rdi]
je 0x14021cc44
sbb edx, edx
sbb edx, r12d
test edx, edx
sete dil
mov rdx, qword [rbp - 0x69]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14021cc6a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14021cd5e
mov r9d, 3
xor r8d, r8d
lea rdx, [rbp - 0x59]
mov rcx, rbx
call fcn.14000c3d8
mov rcx, rax
call fcn.1402c7148
mov r12b, al
test al, al
sete dil
mov rdx, qword [rbp - 0x59]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14021ccb8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14021cd55
mov r8d, r13d
lea rdx, [rbp - 0x49]
mov rcx, rbx
call fcn.140024bbc
xor edx, edx
lea rdi, [0x140352420]
mov rsi, qword [rax]
lea ecx, [rdx + 2]
repe cmpsw word [rsi], word [rdi]
je 0x14021cce9
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
sete dil
mov rdx, qword [rbp - 0x49]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14021cd0e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14021cd55
mov rax, qword [rbx]
mov r9d, dword [rax - 0x10]
xor r8d, r8d
lea rdx, [rbp - 0x39]
mov rcx, rbx
call fcn.14000c3d8
nop
mov rdx, rax
mov rcx, rbx
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x39]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14021cd55
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r12b, r12b
jne 0x14021d048
mov rdi, qword [rbx]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, r15d
cmp eax, 0xffffffff
setne dil
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp edi, r13d
sete r12b
test r12b, r12b
jne 0x14021d048
mov edx, 0x2c
mov rcx, qword [rbx]
call fcn.1400c3734
or edi, 0xffffffff
test rax, rax
je 0x14021cdf3
sub rax, qword [rbx]
sar rax, 1
cmp eax, edi
jle 0x14021cdf3
mov r9d, eax
xor r8d, r8d
lea rdx, [rbp - 0x29]
mov rcx, rbx
call fcn.14000c3d8
nop
mov rdx, rax
mov rcx, rbx
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14021cdf3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbx]
cmp dword [rcx - 0x10], r15d
jl 0x14021ce54
lea rdx, [0x140364e80]
call fcn.1400bee84
test rax, rax
je 0x14021ce54
sub rax, qword [rbx]
sar rax, 1
cmp eax, edi
jle 0x14021ce54
mov r9d, eax
xor r8d, r8d
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.14000c3d8
nop
mov rdx, rax
mov rcx, rbx
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14021ce54
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbx]
cmp dword [rcx - 0x10], r15d
jle 0x14021ce6c
mov edx, 0x25
call fcn.1400bff94
test rax, rax
jne 0x14021ce70
mov eax, edi
jmp 0x14021ce76
sub rax, qword [rbx]
sar rax, 1
cmp eax, edi
setg r12b
test r12b, r12b
jne 0x14021d048
mov rdi, qword [rbx]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, r15d
cmp eax, 0xffffffff
setne dil
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp edi, r13d
sete r12b
test r12b, r12b
jne 0x14021d048
mov r8d, r13d
lea rdx, [0x14034da64]
mov rcx, rbx
call fcn.14000c0c4
mov rcx, qword [rbx]
cmp dword [rcx - 0x10], r15d
jle 0x14021d048
mov edx, 0x20
call fcn.1400bff94
test rax, rax
je 0x14021d048
mov rcx, qword [rbx]
sub rax, rcx
sar rax, 1
cmp eax, 0xffffffff
jle 0x14021d048
cmp dword [rcx - 0x10], r15d
jle 0x14021cf7d
mov edx, 0x20
call fcn.1400bff94
test rax, rax
je 0x14021cf7d
sub rax, qword [rbx]
sar rax, 1
cmp eax, 0xffffffff
jle 0x14021cf7d
mov edx, 0x20
mov rcx, qword [rbx]
call fcn.1400c3734
test rax, rax
jne 0x14021cf39
or eax, 0xffffffff
jmp 0x14021cf3f
sub rax, qword [rbx]
sar rax, 1
mov r9d, eax
xor r8d, r8d
lea rdx, [rbp - 9]
mov rcx, rbx
call fcn.14000c3d8
nop
mov rdx, rax
mov rcx, rbx
call fcn.14000c244
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14021cf7d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, 0x2e
mov rcx, qword [rbx]
call fcn.1400c3734
test rax, rax
je 0x14021cf9a
sub rax, qword [rbx]
sar rax, 1
cmp eax, 0xffffffff
jne 0x14021cfbb
mov r8d, 4
mov rcx, rbx
test r14b, r14b
lea rdx, [0x140357e60]
jne 0x14021cfb6
lea rdx, [0x140353d40]
call fcn.14000c0c4
mov r9d, 2
mov r8d, r13d
lea rdx, [rbp + 7]
mov rcx, rbx
call fcn.14000c3d8
lea rdi, [0x140364e74]
mov rsi, qword [rax]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
sete dil
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14021d005
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14021d03c
mov rdi, qword [rbx]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, r15d
cmp eax, 0xffffffff
setne dil
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp edi, r13d
sete r12b
jmp 0x14021d03f
mov r12b, r13b
test r12b, r12b
je 0x14021ced0
mov al, r12b
mov rbx, qword [rsp + 0x140]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret