Function at 0x14020b844
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov r13, rcx
mov rax, qword [rcx]
call qword [rax + 0x30]
xor esi, esi
test al, al
jne 0x14020b895
lea rcx, [r13 - 8]
mov rax, qword [rcx]
call qword [rax + 0x18]
jmp 0x14020c20a
mov byte [rsp + 0x21], sil
add rdi, 0x2c
xor edx, edx
mov rcx, rdi
call fcn.14020ec00
test al, al
je 0x14020b93e
cmp byte [r13 + 0x69], sil
jne 0x14020c20a
lea rdx, str.desktop.ini
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x14020c20a
mov rdx, qword [r13 + 0xd0]
lea rcx, [rsp + 0x78]
call fcn.14000cb18
nop
lea rdx, str.desktop.ini
lea rcx, [rsp + 0x78]
call fcn.14000f884
mov rdx, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
sete r14b
mov byte [rsp + 0x21], r14b
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
or r12, 0xffffffffffffffff
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14020b933
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r14b, r14b
je 0x14020c20a
jmp 0x14020b942
or r12, 0xffffffffffffffff
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.14000cb18
nop
mov rbx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rsi
mov r15b, sil
mov al, sil
mov byte [rsp + 0x20], al
mov r14d, 1
mov al, r14b
mov byte [rsp + 0x178], al
call fcn.14023e03c
test al, al
je 0x14020bc1f
cmp byte [rsp + 0x21], sil
jne 0x14020ba0f
lea rcx, [r13 - 8]
mov r9, qword [rsp + 0x170]
mov r8, qword [rsp + 0x168]
lea rdx, [rsp + 0xd0]
call fcn.1401fb354
nop
mov rbx, qword [rax]
mov qword [rsp + 0xf0], rbx
mov rcx, qword [rax + 8]
mov qword [rax + 8], rsi
mov qword [rax], rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rcx
mov rdi, qword [rsp + 0xd8]
test rdi, rdi
je 0x14020ba0f
mov eax, r12d
lock xadd dword [rdi + 8], eax
add eax, r12d
jne 0x14020ba0a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
lock xadd dword [rdi + 0xc], eax
add eax, r12d
jne 0x14020ba0a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rbx, qword [rsp + 0x28]
jmp 0x14020ba3c
test rbx, rbx
jne 0x14020ba49
mov r15b, r14b
jmp 0x14020be0c
mov rdi, qword [rsp + 0x170]
add rdi, 0x2c
lea rdx, str._I______.
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x14020baa8
lea rdx, str._I______
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x14020baa8
mov rdx, rbx
lea rcx, [r13 + 0xb0]
call fcn.140053360
mov r8, rax
lea rdx, [rsp + 0x100]
lea rcx, [r13 + 0xb0]
call fcn.140018e00
jmp 0x14020bc0c
cmp byte [r13 + 0x69], sil
je 0x14020babb
mov byte [rsp + 0x178], sil
jmp 0x14020bc0c
mov rax, qword [r13 + 0x18]
cmp byte [rax + 1], sil
je 0x14020bb99
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.14000cb18
nop
lea r8, [0x140368a24]
lea rdx, [0x140368a2c]
lea rcx, [rsp + 0x68]
call fcn.14000b658
mov rdx, qword [rsp + 0x168]
lea rcx, [rsp + 0x58]
call fcn.14000cb18
nop
mov r8, qword [rsp + 0x68]
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14000b658
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x14020bb51
mov rdi, qword [rsp + 0x58]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, esi
cmp eax, 0xffffffff
setne dil
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test edi, edi
je 0x14020bb54
mov r15b, r14b
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14020bb76
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14020bc07
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14020bc07
mov rdx, qword [rsp + 0x168]
lea rcx, [rsp + 0x88]
call fcn.14000cb18
mov rdi, qword [r13 + 0xb8]
lea rcx, [r13 + 0xb0]
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0xc8]
call fcn.140024df0
cmp qword [rax], rdi
setne dil
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14020bbfc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movzx r15d, r15b
test dil, dil
cmovne r15d, r14d
mov rbx, qword [rsp + 0x28]
lea rdx, [rbx + 0x20]
lea rcx, [rsp + 0x38]
call fcn.14000c244
jmp 0x14020be0c
mov r15b, r14b
mov rdx, rdi
lea rcx, [rsp + 0x80]
call fcn.14000cb18
lea rcx, [r13 + 0x90]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0xc0]
call fcn.140038d44
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14020bc72
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [r13 + 0x98]
mov rdi, qword [rsp + 0xc0]
cmp rdi, rax
je 0x14020bcd9
mov rdx, qword [rdi + 0x20]
add rdx, 0x20
lea rcx, [rsp + 0x38]
call fcn.14000c244
mov rbx, qword [rdi + 0x20]
mov qword [rsp + 0x90], rbx
mov rax, qword [rdi + 0x28]
mov qword [rsp + 0x98], rax
test rax, rax
je 0x14020bcca
lock add dword [rax + 8], r14d
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rax
jmp 0x14020be0c
mov rdi, qword [rax]
cmp rdi, rax
je 0x14020be07
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
mov r8, qword [rdi + 0x18]
lea rdx, [0x140363a90]
lea rcx, [rsp + 0x60]
call fcn.14000d9c8
mov rbx, qword [rsp + 0x60]
mov rdx, rbx
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x14020bd93
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14020bd4a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rdi + 0x31], sil
jne 0x14020bd84
mov rax, qword [rdi + 0x10]
cmp byte [rax + 0x31], sil
jne 0x14020bd68
mov rdi, rax
mov rax, qword [rax]
cmp byte [rax + 0x31], sil
je 0x14020bd5a
jmp 0x14020bd84
mov rax, qword [rdi + 8]
jmp 0x14020bd7b
cmp rdi, qword [rax + 0x10]
jne 0x14020bd81
mov rdi, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x31], sil
je 0x14020bd6e
mov rdi, rax
cmp rdi, qword [r13 + 0x98]
jne 0x14020bce5
jmp 0x14020be07
mov rdx, qword [rdi + 0x20]
add rdx, 0x20
lea rcx, [rsp + 0x38]
call fcn.14000c244
mov r11, qword [rdi + 0x20]
mov qword [rsp + 0xa0], r11
mov rax, qword [rdi + 0x28]
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x14020bddc
lock add dword [rax + 8], r14d
mov rbx, qword [rsp + 0x60]
mov rax, qword [rsp + 0xa8]
mov r11, qword [rsp + 0xa0]
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x20], r14b
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14020be07
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x28]
mov rax, qword [r13 + 0x28]
test rax, rax
je 0x14020be72
cmp qword [rax + 0x80], rsi
je 0x14020be72
mov rax, qword [rax + 0x80]
cmp byte [rax + 0x24], sil
je 0x14020be72
test rbx, rbx
je 0x14020be45
mov rax, qword [rbx + 0x18]
mov rcx, rax
shr rcx, 0x20
mov dword [rsp + 0x74], ecx
mov dword [rsp + 0x70], eax
jmp 0x14020be56
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x14]
mov qword [rsp + 0x70], rax
mov edx, r14d
lea rcx, [rsp + 0x70]
call fcn.1401ef324
neg al
sbb cl, cl
mov al, byte [rsp + 0x178]
and al, cl
jmp 0x14020be79
mov al, byte [rsp + 0x178]
test al, al
je 0x14020c1ab
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x30]
test al, al
je 0x14020c1ab
mov edi, 0x88
mov ecx, edi
call fcn.1400be454
mov qword [rsp + 0x160], rax
test rax, rax
je 0x14020beba
mov rdx, qword [r13 + 8]
mov rcx, rax
call fcn.14006de38
jmp 0x14020bebd
mov rax, rsi
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.1400186f8
nop
mov rcx, qword [rsp + 0xb0]
add rcx, 0x20
lea rdx, [rsp + 0x38]
call fcn.14000c244
mov rax, qword [r13]
lea rdx, [rsp + 0xb0]
mov rcx, r13
call qword [rax + 0x58]
mov rcx, rdi
call fcn.1400be454
mov qword [rsp + 0x160], rax
test rax, rax
je 0x14020bf19
mov rdx, qword [r13 + 8]
mov rcx, rax
call fcn.14006de38
jmp 0x14020bf1c
mov rax, rsi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400186f8
nop
mov r9, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x168]
test rdx, rdx
jne 0x14020bf40
mov ecx, esi
jmp 0x14020bf51
xor eax, eax
mov rcx, r12
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, r14
mov r8d, ecx
lea rcx, [r9 + 0x20]
call fcn.14000c9f8
mov rdi, qword [rsp + 0x170]
test dword [rdi], 0x400
jne 0x14020bf85
test dword [rdi], 0x10000
jne 0x14020bf85
lea rcx, [r13 - 8]
lea rdx, [rsp + 0x48]
call fcn.140210270
jmp 0x14020bfc0
mov rax, qword [r13]
mov r8b, r14b
mov rdx, qword [rsp + 0x168]
mov rcx, r13
call qword [rax + 0xc0]
mov rdi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
sete al
mov byte [rdi + 0x70], al
mov rdi, qword [rsp + 0x170]
cmp byte [r13 + 0x68], sil
je 0x14020c13a
test r15b, r15b
je 0x14020c13a
test rbx, rbx
je 0x14020c019
lea rdx, [rbx + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, 0x20
call fcn.14000c244
mov rdx, qword [rbx + 0x10]
mov rax, qword [rsp + 0x48]
mov qword [rax + 0x28], rdx
mov rax, qword [r13 + 0x18]
cmp byte [rax + 1], sil
jne 0x14020c02f
call fcn.14023e03c
test al, al
jne 0x14020c02f
lea rdx, [rsp + 0x28]
mov rcx, qword [rbx]
call fcn.1401bc24c
jmp 0x14020c02f
mov edx, dword [rdi + 0x1c]
shl rdx, 0x20
mov eax, dword [rdi + 0x20]
or rdx, rax
mov rax, qword [rsp + 0x48]
mov qword [rax + 0x28], rdx
mov rax, qword [rsp + 0x48]
mov dword [rax + 0x30], r14d
cmp byte [rsp + 0x20], sil
je 0x14020c114
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
test rbx, rbx
je 0x14020c077
mov r8d, dword [rbx + 0x28]
lea rdx, [0x140350cf8]
lea rcx, [rsp + 0x40]
call fcn.14000d9c8
mov r8, qword [rsp + 0x48]
mov r8, qword [r8 + 0x20]
lea rdx, [0x140350d0c]
lea rcx, [rsp + 0x40]
call fcn.14000d638
mov rcx, qword [r13 + 0x18]
mov rdi, qword [rcx + 0xb8]
add rcx, 0xb0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xe8]
call fcn.140024df0
cmp qword [rax], rdi
jne 0x14020c0eb
mov bl, sil
mov rdi, qword [r13 + 0x18]
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0xb0]
call fcn.140053360
mov r8, rax
lea rdx, [rsp + 0x110]
lea rcx, [rdi + 0xb0]
call fcn.140018e00
jmp 0x14020c0ef
mov bl, byte [rsp + 0x20]
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14020c110
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
jne 0x14020c13a
cmp byte [rsp + 0x21], sil
jne 0x14020c13a
mov rax, qword [r13 + 0x18]
mov rcx, r13
lea rdx, [rsp + 0x48]
cmp byte [rax + 1], sil
mov rax, qword [r13]
je 0x14020c136
call qword [rax + 0x60]
jmp 0x14020c13a
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
nop
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14020c171
mov eax, r12d
lock xadd dword [rdi + 8], eax
add eax, r12d
jne 0x14020c171
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
lock xadd dword [rdi + 0xc], eax
add eax, r12d
jne 0x14020c171
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
mov rdi, qword [rsp + 0xb8]
test rdi, rdi
je 0x14020c1ab
mov eax, r12d
lock xadd dword [rdi + 8], eax
add eax, r12d
jne 0x14020c1ab
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
lock xadd dword [rdi + 0xc], eax
add eax, r12d
jne 0x14020c1ab
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14020c1e9
mov eax, r12d
lock xadd dword [rcx + 8], eax
add eax, r12d
jne 0x14020c1e9
mov rdi, qword [rsp + 0x30]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
lock xadd dword [rdi + 0xc], eax
add eax, r12d
jne 0x14020c1e9
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
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 0x14020c20a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret