Function at 0x14002a2a0
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 [0x14026fdb0]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov r15, rcx
xor r8d, r8d
lea rdx, str.DeleteDriverFileStd
lea rcx, [rbp - 0x80]
call fcn.140001190
nop
mov ebx, 1
mov dword [rsp + 0x40], ebx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call fcn.14019d7c0
test r15, r15
jne 0x14002a33c
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rbx + 1]
lea rcx, [rbp - 0x80]
call fcn.140001370
nop
lea rcx, [rbp - 0x80]
call fcn.140001320
xor eax, eax
jmp 0x14002abd0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.14019d7c0
lea rdx, [rbp + 0x1f0]
mov rcx, qword [r15 + 0x10]
call fcn.14002ac00
lea rcx, [rsp + 0x58]
call fcn.140058a98
nop
or r12, 0xffffffffffffffff
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.140058c34
mov rdi, qword [r15 + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x14002a3c0
nop
mov r8, rdi
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.14005920c
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 0x14002a390
call fcn.140056384
mov rdx, rax
xor esi, esi
mov ecx, esi
test rax, rax
setne cl
test ecx, ecx
jne 0x14002a3e1
mov ecx, 0x80004005
call fcn.140004550
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 0x14002a400
mov ecx, esi
jmp 0x14002a411
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.1400059f0
mov edx, 0x5c
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.14019a074
test rax, rax
jne 0x14002a43a
mov eax, r12d
jmp 0x14002a440
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.140012140
nop
mov r8, rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.140059134
nop
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002a48a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [r15 + 0x20]
test rdx, rdx
jne 0x14002a497
mov ecx, esi
jmp 0x14002a4a8
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.1400059f0
mov edx, 0x5c
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.14019a074
test rax, rax
jne 0x14002a4d1
mov eax, r12d
jmp 0x14002a4d7
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.140012140
nop
mov r8, rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.140059134
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002a521
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [r15 + 0x30]
test rdx, rdx
jne 0x14002a52e
mov ecx, esi
jmp 0x14002a53f
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.1400059f0
mov edx, 0x5c
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.14019a074
test rax, rax
jne 0x14002a568
mov eax, r12d
jmp 0x14002a56e
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.140012140
nop
mov r8, rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.140059134
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002a5b8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [r15 + 0x18]
test rdx, rdx
jne 0x14002a5c5
mov ecx, esi
jmp 0x14002a5d6
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.1400059f0
mov edx, 0x5c
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.14019a074
test rax, rax
jne 0x14002a5ff
mov eax, r12d
jmp 0x14002a605
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.140012140
nop
mov r8, rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.140059134
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002a64f
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 0x14002ab80
test r14, r14
js 0x14002ab7a
cmp r14, rcx
jge 0x14002ab7a
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 0x14002a6a5
cmp rax, qword [rdi - 0x18]
jne 0x14002a6a5
lea rbx, [rdi - 0x18]
lock inc dword [rdi - 8]
jmp 0x14002a6e0
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
je 0x14002ab74
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.140199918
lea rdi, [rbx + 0x18]
mov qword [rsp + 0x48], rdi
mov edx, 0x5c
mov rcx, rdi
call fcn.14019a074
mov rsi, rax
test rax, rax
jne 0x14002a703
mov esi, r12d
jmp 0x14002a709
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 0x14002a75c
lea rdx, [rbp - 0x70]
call fcn.140012140
mov r9, qword [rax]
lea r8, [rbp + 0x1f0]
lea rdx, [0x14021c280]
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rbp - 0x70]
jmp 0x14002a784
lea rdx, [rbp - 0x40]
call fcn.140012140
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 0x14002a79f
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.14002ad60
test eax, eax
jne 0x14002ab05
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 0x14002a7f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x14002a7f5
cmp eax, 3
jbe 0x14002a7ed
cmp eax, 5
je 0x14002a7ed
cmp eax, 0x20
jne 0x14002a7f5
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 0x14002a85f
cmp ebx, 0x400
cmove ebx, eax
sub r8d, esi
lea rdx, [rbp - 0x48]
call fcn.140012140
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, [rbp + 0x1f0]
lea rdx, [0x140221320]
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rbp - 0x48]
jmp 0x14002a89b
cmp ebx, 0x400
cmove ebx, eax
sub r8d, esi
lea rdx, [rbp - 0x58]
call fcn.140012140
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 0x14002a8b6
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.140056384
xor esi, esi
mov ecx, esi
test rax, rax
setne cl
test ecx, ecx
je 0x14002ab63
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 0x14002a93b
movzx edi, cx
mov ecx, edi
call fcn.140056158
test rax, rax
je 0x14002aa26
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140005730
mov rbx, qword [rsp + 0x38]
jmp 0x14002aa26
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 0x14002a9a8
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14002aa26
cmp dword [rdx + 0x10], eax
jge 0x14002a97d
cmp dword [rbx - 0xc], eax
jl 0x14002ab42
mov dword [rbx - 0x10], esi
mov word [rbx], si
jmp 0x14002aa26
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002a994
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 0x14002aa26
mov r13d, dword [rbx - 0x10]
lea rsi, [rbp - 0x20]
sub rsi, rbx
sar rsi, 1
test ecx, ecx
js 0x14002ab58
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14002a9e0
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140005ae0
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 0x14002aa04
lea r8, [rbx + rsi*2]
call fcn.140199418
jmp 0x14002aa0d
lea r8, [rbp - 0x20]
call fcn.140199918
cmp edi, dword [rbx - 0xc]
jg 0x14002ab4d
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.140012140
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14002aa95
cmp dword [rbx + 0x10], 0
jl 0x14002aa86
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14002aa86
call fcn.140006db0
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14002aa7b
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 0x14002aa95
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.1400059f0
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002aab4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [0x140220678]
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call fcn.140199570
test eax, eax
je 0x14002aadf
lea rdx, [0x140220680]
mov rcx, rdi
call fcn.140199570
test eax, eax
jne 0x14002aae9
lea rcx, [rbp - 0x20]
call fcn.1400249d0
nop
lea rdx, [rdi - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002ab05
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 0x14002ab25
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 0x14002ab6e
jmp 0x14002a667
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, 0x80070057
call fcn.140004550
nop
mov ecx, 0x80004005
call fcn.140004550
nop
mov ebx, dword [rsp + 0x40]
jmp 0x14002ab80
call fcn.140005c40
int3
call fcn.14005694c
int3
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rbp - 0x80]
call fcn.140001370
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x14002abba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x58]
call fcn.140058fc0
nop
lea rcx, [rbp - 0x80]
call fcn.140001320
mov eax, ebx
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.140198b40
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