Function at 0x140020f60
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x348], rbx
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov esi, r9d
mov dword [rsp + 0x48], r9d
mov r14, r8
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x70], rdx
mov r12, rcx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x30], r8
xor r8d, r8d
lea rdx, str.Tool_DeleteINFSub
lea rcx, [rsp + 0x78]
call fcn.140017fc0
nop
mov dword [rsp + 0x20], esi
mov r9, qword [r14]
lea r8, str.cstPath___s__MaxCount___d
mov edx, 1
lea rcx, [rsp + 0x78]
call fcn.140017c80
lea rcx, [rbp - 0x58]
call fcn.1400538bc
nop
call fcn.140051e58
mov rdx, rax
xor r15d, r15d
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x14002101b
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, [0x1401c6ea8]
test rdx, 0xffffffffffff0000
jne 0x14002105e
movzx edi, dx
mov ecx, edi
call fcn.140051c2c
test rax, rax
je 0x14002106c
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140001b00
jmp 0x14002106c
xor r8d, r8d
lea rcx, [rsp + 0x30]
call fcn.140001c20
nop
call fcn.140054cb8
mov rcx, qword [rax + 8]
mov ebx, r15d
mov dword [rsp + 0x58], ebx
movsxd rax, dword [rcx + 0x258]
mov qword [rbp - 0x70], rax
or r13, 0xffffffffffffffff
test esi, esi
jle 0x140021766
nop word [rax + rax]
mov dword [rsp + 0x38], r15d
mov rdi, qword [r14]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x1400210cb
cmp rax, qword [rdi - 0x18]
jne 0x1400210cb
lea rsi, [rdi - 0x18]
lock inc dword [rdi - 8]
jmp 0x140021106
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x140021760
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.140192bbc
add rsi, 0x18
mov qword [rsp + 0x40], rsi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call fcn.140192cb0
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8d, ebx
lea rdx, [rbp - 0x58]
mov rcx, r12
call fcn.14004ce40
mov dword [rsp + 0x4c], eax
mov r9d, 0x104
lea r8, [rbp - 0x20]
mov edx, ebx
mov rcx, r12
call fcn.14004d850
call fcn.140051e58
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
je 0x140021755
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
lea rcx, [rbp - 0x20]
lea rax, [rbp - 0x20]
test rax, 0xffffffffffff0000
jne 0x1400211b4
movzx edi, cx
mov ecx, edi
call fcn.140051c2c
test rax, rax
je 0x14002129f
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140001b00
mov rbx, qword [rsp + 0x50]
jmp 0x14002129f
xor eax, eax
mov rcx, r13
lea rdi, [rbp - 0x20]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140021228
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14002129f
cmp dword [rdx + 0x10], eax
jge 0x1400211f8
cmp dword [rbx - 0xc], eax
jl 0x1400216ba
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x14002129f
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002120f
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 + 0x50], rbx
mov rsi, qword [rsp + 0x40]
jmp 0x14002129f
mov r13d, dword [rbx - 0x10]
lea r12, [rbp - 0x20]
sub r12, rbx
sar r12, 1
test ecx, ecx
js 0x14002174a
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140021260
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.1400018f0
mov rbx, qword [rsp + 0x50]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x140021284
lea r8, [rbx + r12*2]
call fcn.140192c44
jmp 0x14002128d
lea r8, [rbp - 0x20]
call fcn.140192bbc
cmp edi, dword [rbx - 0xc]
jg 0x14002173f
mov dword [rbx - 0x10], edi
mov word [r13 + rbx], r15w
movsxd rcx, dword [rbx - 0x10]
mov r15, rbx
mov r12, rbx
sub r12, rsi
sar r12, 1
mov r13d, dword [rsi - 0x10]
xor eax, eax
test ecx, ecx
setns al
test eax, eax
je 0x140021734
mov rdx, rcx
mov rcx, rbx
call fcn.14019442c
mov r14, rax
mov ecx, 0x7fffffff
sub ecx, eax
xor edx, edx
cmp ecx, r13d
setge dl
test edx, edx
je 0x140021729
lea edi, [r13 + rax]
test edi, edi
js 0x14002171e
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x140021316
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.1400018f0
mov rsi, qword [rsp + 0x40]
cmp r12, r13
ja 0x14002131f
lea r15, [rsi + r12*2]
movsxd rdx, r14d
add rdx, rdx
lea rcx, [rsi + r13*2]
mov r9, rdx
mov r8, r15
call fcn.140192bbc
cmp edi, dword [rsi - 0xc]
jg 0x140021713
mov dword [rsi - 0x10], edi
movsxd rax, edi
xor r15d, r15d
mov word [rsi + rax*2], r15w
lea rdx, [rbx - 0x18]
or r13, 0xffffffffffffffff
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002136a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, dword [rsi - 0x10]
add r8d, 0xfffffffd
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x40]
call fcn.140017f20
nop
lea r8, [0x1401ce650]
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140007ed0
nop
mov r14, qword [rax]
lea rcx, [r14 - 0x18]
mov rdi, qword [rsp + 0x30]
lea rbx, [rdi - 0x18]
cmp rcx, rbx
je 0x1400214d8
cmp dword [rbx + 0x10], 0
jl 0x1400213ed
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400213ed
call fcn.140001950
mov rdi, rax
mov ecx, r13d
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400213df
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 + 0x30], rax
jmp 0x1400214d8
movsxd r12, dword [r14 - 0x10]
test r12d, r12d
jne 0x140021452
mov r12, qword [rbx]
cmp dword [rbx + 8], 0
je 0x1400214d8
cmp dword [rbx + 0x10], 0
jge 0x140021420
cmp dword [rdi - 0xc], 0
jl 0x1400216c5
mov dword [rdi - 0x10], r15d
mov word [rdi], r15w
jmp 0x1400214d8
mov eax, r13d
lock xadd dword [rbx + 0x10], eax
dec eax
test eax, eax
jg 0x14002143a
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
jmp 0x1400214d8
test r14, r14
je 0x1400216e6
mov r15d, dword [rdi - 0x10]
mov r13, r14
sub r13, rdi
sar r13, 1
test r12d, r12d
js 0x1400216db
mov ecx, 1
sub ecx, dword [rbx + 0x10]
mov eax, dword [rbx + 0xc]
sub eax, r12d
or eax, ecx
jge 0x140021495
mov edx, r12d
lea rcx, [rsp + 0x30]
call fcn.1400018f0
mov rdi, qword [rsp + 0x30]
lea rbx, [r12 + r12]
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
mov r9, rbx
add rdx, rdx
cmp r13, r15
ja 0x1400214b6
lea r8, [rdi + r13*2]
call fcn.140192c44
jmp 0x1400214be
mov r8, r14
call fcn.140192bbc
cmp r12d, dword [rdi - 0xc]
jg 0x1400216d0
mov dword [rdi - 0x10], r12d
xor r15d, r15d
mov word [rbx + rdi], r15w
or r13, 0xffffffffffffffff
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400214f9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140021518
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r11d, r15d
mov r8, r15
mov r9, qword [rbp - 0x48]
test r9, r9
jle 0x1400215d5
mov r10, qword [rbp - 0x50]
mov r12, qword [rbp - 0x70]
mov rdi, r15
test r12, r12
jle 0x1400215c3
nop
test r8, r8
js 0x140021702
cmp r8, r9
jge 0x140021702
test rdi, rdi
js 0x1400216fc
mov rax, qword [rsp + 0x70]
cmp rdi, qword [rax + 0x10]
jge 0x1400216fc
mov rcx, qword [rax + 8]
mov rdx, qword [r10 + r8*8]
mov eax, r15d
test rdx, rdx
setne al
test eax, eax
je 0x1400216f1
mov rax, qword [rcx + rdi*8]
sub rdx, rax
nop word [rax + rax]
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x1400215a7
add rax, 2
test cx, cx
jne 0x140021590
mov eax, r15d
jmp 0x1400215ac
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x1400215bf
inc rdi
cmp rdi, r12
jl 0x140021540
jmp 0x1400215c3
inc dword [rsp + 0x38]
inc r11d
inc r8
movsxd rax, r11d
cmp rax, r9
jl 0x140021533
movsxd rax, dword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
cmp rax, r9
jne 0x140021628
lea rcx, [rbp - 0x20]
call fcn.14001b160
test eax, eax
jne 0x140021628
lea edx, [rax + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.14000c310
cmp eax, 0xa
je 0x140021620
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r12d, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14002162d
mov r12d, 1
jmp 0x14002162d
mov r12d, dword [rsp + 0x4c]
lea rdx, [rdi - 0x18]
mov rbx, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14002167d
cmp dword [rdx + 0x10], 0
jge 0x140021654
cmp dword [rsi - 0xc], 0
jl 0x140021708
mov dword [rsi - 0x10], r15d
mov word [rdi], r15w
jmp 0x14002167d
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002166b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x40], rdi
lea rdx, [rdi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140021698
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ebx, dword [rsp + 0x58]
inc ebx
mov dword [rsp + 0x58], ebx
mov r14, qword [rsp + 0x60]
cmp ebx, dword [rsp + 0x48]
jge 0x14002176b
mov r12, qword [rbp - 0x78]
jmp 0x1400210a0
mov ecx, 0x80070057
call fcn.140001010
nop
mov ecx, 0x80070057
call fcn.140001010
int3
mov ecx, 0x80070057
call fcn.140001010
int3
mov ecx, 0x80070057
call fcn.140001010
int3
mov ecx, 0x80070057
call fcn.140001010
nop
mov ecx, 0x80004005
call fcn.140001010
int3
call fcn.140050fc8
int3
call fcn.140050fc8
int3
mov ecx, 0x80070057
call fcn.140001010
nop
mov ecx, 0x80070057
call fcn.140001010
int3
mov ecx, 0x80070057
call fcn.140001010
int3
mov ecx, 0x80070057
call fcn.140001010
int3
mov ecx, 0x80070057
call fcn.140001010
nop
mov ecx, 0x80070057
call fcn.140001010
int3
mov ecx, 0x80070057
call fcn.140001010
nop
mov ecx, 0x80004005
call fcn.140001010
nop
call fcn.140001590
int3
mov r12d, dword [rsp + 0x48]
mov r9d, r12d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x78]
call fcn.140017c80
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400217a6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp - 0x58]
call fcn.140053d58
nop
lea rcx, [rsp + 0x78]
call fcn.140018150
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x1400217d9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.1401945b0
mov rbx, qword [rsp + 0x348]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret