Function at 0x140020210
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x438]
sub rsp, 0x510
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov r15, rcx
xor r8d, r8d
lea rdx, str.DeleteDriverFileStd
lea rcx, [rbp - 0x80]
call fcn.14000b870
nop
mov ebx, 1
mov dword [rsp + 0x40], ebx
call fcn.14000cc50
test r15, r15
jne 0x1400202a0
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rbx + 1]
lea rcx, [rbp - 0x80]
call fcn.14000ba50
nop
lea rcx, [rbp - 0x80]
call fcn.14000ba00
xor eax, eax
jmp 0x140020b39
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.140193010
lea rdx, [rbp + 0x1f0]
mov rcx, qword [r15 + 0x10]
call fcn.140020b70
lea rcx, [rsp + 0x58]
call fcn.14004f524
nop
or r12, 0xffffffffffffffff
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.14004f634
mov rdi, qword [r15 + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x140020323
mov r8, rdi
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.14004fc0c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
lea rdi, [rdi + rax*2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x1400202f3
call fcn.14004cde4
mov rdx, rax
xor esi, esi
mov ecx, esi
test rax, rax
setne cl
test ecx, ecx
jne 0x140020344
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rdx, qword [r15 + 0x28]
test rdx, rdx
jne 0x140020363
mov ecx, esi
jmp 0x140020374
xor eax, eax
mov rcx, r12
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
lea rcx, [rsp + 0x30]
call fcn.1400014d0
mov edx, 0x5c
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.14018f7cc
test rax, rax
jne 0x14002039d
mov eax, r12d
jmp 0x1400203a3
sub rax, rdi
sar rax, 1
inc eax
mov r8d, dword [rdi - 0x10]
sub r8d, eax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x30]
call fcn.1400166b0
nop
mov r8, rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.14004fb34
nop
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400203ed
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [r15 + 0x20]
test rdx, rdx
jne 0x1400203fa
mov ecx, esi
jmp 0x14002040b
xor eax, eax
mov rcx, r12
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
lea rcx, [rsp + 0x30]
call fcn.1400014d0
mov edx, 0x5c
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.14018f7cc
test rax, rax
jne 0x140020434
mov eax, r12d
jmp 0x14002043a
sub rax, rdi
sar rax, 1
inc eax
mov r8d, dword [rdi - 0x10]
sub r8d, eax
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x30]
call fcn.1400166b0
nop
mov r8, rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.14004fb34
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140020484
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [r15 + 0x30]
test rdx, rdx
jne 0x140020491
mov ecx, esi
jmp 0x1400204a2
xor eax, eax
mov rcx, r12
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
lea rcx, [rsp + 0x30]
call fcn.1400014d0
mov edx, 0x5c
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.14018f7cc
test rax, rax
jne 0x1400204cb
mov eax, r12d
jmp 0x1400204d1
sub rax, rdi
sar rax, 1
inc eax
mov r8d, dword [rdi - 0x10]
sub r8d, eax
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400166b0
nop
mov r8, rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.14004fb34
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002051b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [r15 + 0x18]
test rdx, rdx
jne 0x140020528
mov ecx, esi
jmp 0x140020539
xor eax, eax
mov rcx, r12
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
lea rcx, [rsp + 0x30]
call fcn.1400014d0
mov edx, 0x5c
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.14018f7cc
test rax, rax
jne 0x140020562
mov eax, r12d
jmp 0x140020568
sub rax, rdi
sar rax, 1
inc eax
mov r8d, dword [rdi - 0x10]
sub r8d, eax
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x30]
call fcn.1400166b0
nop
mov r8, rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.14004fb34
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400205b2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r13d, esi
mov dword [rsp + 0x50], esi
mov r14, rsi
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jle 0x140020ae9
nop word [rax + rax]
test r14, r14
js 0x140020ae3
cmp r14, rcx
jge 0x140020ae3
mov rax, qword [rsp + 0x60]
mov rdi, qword [rax + r14*8]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x14002060e
cmp rax, qword [rdi - 0x18]
jne 0x14002060e
lea rbx, [rdi - 0x18]
lock inc dword [rdi - 8]
jmp 0x140020649
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
je 0x140020add
mov ecx, dword [rdi - 0x10]
mov dword [rax + 8], ecx
mov ecx, dword [rdi - 0x10]
inc ecx
movsxd rdx, ecx
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rax + 0x18]
call fcn.14018e7d0
lea rdi, [rbx + 0x18]
mov qword [rsp + 0x48], rdi
mov edx, 0x5c
mov rcx, rdi
call fcn.14018f7cc
mov rsi, rax
test rax, rax
jne 0x14002066c
mov esi, r12d
jmp 0x140020672
sub rsi, rdi
sar rsi, 1
inc esi
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov r8d, dword [rdi - 0x10]
sub r8d, esi
cmp word [rbp + rcx*2 + 0x1ee], 0x5c
lea rcx, [rsp + 0x48]
jne 0x1400206c5
lea rdx, [rbp - 0x70]
call fcn.1400166b0
mov r9, qword [rax]
lea r8, [rbp + 0x1f0]
lea rdx, [0x140212328]
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rbp - 0x70]
jmp 0x1400206ed
lea rdx, [rbp - 0x40]
call fcn.1400166b0
mov r9, qword [rax]
lea r8, [rbp + 0x1f0]
lea rdx, str._s_s
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140020708
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, r15
mov rcx, qword [rsp + 0x48]
call fcn.140020cd0
test eax, eax
jne 0x140020a6e
lea edx, [rax + 0x20]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x14002075e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x14002075e
cmp eax, 3
jbe 0x140020756
cmp eax, 5
je 0x140020756
cmp eax, 0x20
jne 0x14002075e
mov dword [rsp + 0x40], 1
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov ebx, dword [r15]
mov eax, 0
mov r8d, dword [rdi - 0x10]
cmp word [rbp + rcx*2 + 0x1ee], 0x5c
lea rcx, [rsp + 0x48]
je 0x1400207c8
cmp ebx, 0x400
cmove ebx, eax
sub r8d, esi
lea rdx, [rbp - 0x48]
call fcn.1400166b0
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, [rbp + 0x1f0]
lea rdx, [0x140214f50]
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rbp - 0x48]
jmp 0x140020804
cmp ebx, 0x400
cmove ebx, eax
sub r8d, esi
lea rdx, [rbp - 0x58]
call fcn.1400166b0
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, [rbp + 0x1f0]
lea rdx, str._s_d_s
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002081f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, 0x20
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.14004cde4
xor esi, esi
mov ecx, esi
test rax, rax
setne cl
test ecx, ecx
je 0x140020acc
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea rcx, [rbp - 0x20]
lea rax, [rbp - 0x20]
test rax, 0xffffffffffff0000
jne 0x1400208a4
movzx edi, cx
mov ecx, edi
call fcn.14004cbb8
test rax, rax
je 0x14002098f
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400012a0
mov rbx, qword [rsp + 0x38]
jmp 0x14002098f
xor eax, eax
mov rcx, r12
lea rdi, [rbp - 0x20]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140020911
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14002098f
cmp dword [rdx + 0x10], eax
jge 0x1400208e6
cmp dword [rbx - 0xc], eax
jl 0x140020aab
mov dword [rbx - 0x10], esi
mov word [rbx], si
jmp 0x14002098f
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400208fd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
jmp 0x14002098f
mov r13d, dword [rbx - 0x10]
lea rsi, [rbp - 0x20]
sub rsi, rbx
sar rsi, 1
test ecx, ecx
js 0x140020ac1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140020949
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.1400015c0
mov rbx, qword [rsp + 0x38]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x14002096d
lea r8, [rbx + rsi*2]
call fcn.14018e5f0
jmp 0x140020976
lea r8, [rbp - 0x20]
call fcn.14018e7d0
cmp edi, dword [rbx - 0xc]
jg 0x140020ab6
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r13 + rbx], ax
mov r13d, dword [rsp + 0x50]
mov r8d, 3
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x38]
call fcn.1400166b0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400209fe
cmp dword [rbx + 0x10], 0
jl 0x1400209ef
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400209ef
call fcn.140001620
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400209e4
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x1400209fe
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.1400014d0
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140020a1d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [0x1402142b8]
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call fcn.14018ea5c
test eax, eax
je 0x140020a48
lea rdx, [0x1402142c0]
mov rcx, rdi
call fcn.14018ea5c
test eax, eax
jne 0x140020a52
lea rcx, [rbp - 0x20]
call fcn.14001ab00
nop
lea rdx, [rdi - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140020a6e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140020a8e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc r13d
mov dword [rsp + 0x50], r13d
inc r14
movsxd rax, r13d
mov rcx, qword [rsp + 0x68]
cmp rax, rcx
jge 0x140020ad7
jmp 0x1400205d0
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
nop
mov ecx, 0x80004005
call fcn.140001000
nop
mov ebx, dword [rsp + 0x40]
jmp 0x140020ae9
call fcn.1400016b0
int3
call fcn.14004d690
int3
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rbp - 0x80]
call fcn.14000ba50
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x140020b23
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x58]
call fcn.14004f9c0
nop
lea rcx, [rbp - 0x80]
call fcn.14000ba00
mov eax, ebx
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.14018e5d0
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret