Function at 0x14002d190
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 - 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x348], rbx
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
movsxd rbx, r9d
mov rsi, r8
mov qword [rsp + 0x60], r8
mov qword [rbp - 0x78], rdx
mov r14, rcx
mov qword [rsp + 0x70], rcx
mov qword [rbp - 0x28], r8
xor r8d, r8d
lea rdx, str.Tool_DeleteINFSub
lea rcx, [rbp - 0x68]
call fcn.140001190
nop
mov dword [rsp + 0x20], ebx
mov r9, qword [rsi]
lea r8, str.cstPath___s__MaxCount___d
mov edx, 1
lea rcx, [rbp - 0x68]
call fcn.140001370
lea rcx, [rbp - 0x58]
call fcn.140058a98
nop
call fcn.140056384
mov rdx, rax
xor r12d, r12d
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x14002d244
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
lea rdx, [0x1402209ac]
test rdx, 0xffffffffffff0000
jne 0x14002d287
movzx edi, dx
mov ecx, edi
call fcn.140056158
test rax, rax
je 0x14002d295
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140005730
jmp 0x14002d295
xor r8d, r8d
lea rcx, [rsp + 0x30]
call fcn.1400059f0
nop
call fcn.140059f20
mov rcx, qword [rax + 8]
mov r15d, r12d
mov dword [rsp + 0x3c], r12d
mov qword [rsp + 0x58], r12
movsxd rax, dword [rcx + 0x258]
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x78], rbx
or r13, 0xffffffffffffffff
test ebx, ebx
jle 0x14002d9ee
nop word [rax + rax]
xor eax, eax
mov dword [rsp + 0x38], eax
mov rdi, qword [rsi]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x14002d2fc
cmp rax, qword [rdi - 0x18]
jne 0x14002d2fc
lea rsi, [rdi - 0x18]
lock inc dword [rdi - 8]
jmp 0x14002d337
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x14002d9e8
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
add rsi, 0x18
mov qword [rsp + 0x40], rsi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call fcn.14019d7c0
test r12, r12
js 0x14002d9e2
cmp r12, qword [r14 + 0x40]
jge 0x14002d9e2
mov rax, qword [r14 + 0x38]
mov rdi, qword [rax + r12*8]
lea rcx, [r14 + 0xb0]
lea rdx, [rdi + 0xf0]
mov r8d, 0x230
call fcn.140198d60
mov r8, r13
xor edx, edx
lea rcx, [rbp - 0x58]
call fcn.140058c34
lea rdx, [rdi + 0x28]
lea rcx, [rbp - 0x58]
call fcn.140059054
mov dword [rsp + 0x50], 1
lea r8, [rbp - 0x20]
mov edx, r15d
mov rcx, r14
call fcn.1400557d0
call fcn.140056384
xor r14d, r14d
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
je 0x14002d9d7
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
lea rcx, [rbp - 0x20]
lea rax, [rbp - 0x20]
test rax, 0xffffffffffff0000
jne 0x14002d41f
movzx edi, cx
mov ecx, edi
call fcn.140056158
test rax, rax
je 0x14002d50a
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140005730
mov rbx, qword [rsp + 0x48]
jmp 0x14002d50a
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 0x14002d493
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14002d50a
cmp dword [rdx + 0x10], eax
jge 0x14002d463
cmp dword [rbx - 0xc], eax
jl 0x14002d93c
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x14002d50a
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002d47a
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 + 0x48], rbx
mov rsi, qword [rsp + 0x40]
jmp 0x14002d50a
mov r13d, dword [rbx - 0x10]
lea r12, [rbp - 0x20]
sub r12, rbx
sar r12, 1
test ecx, ecx
js 0x14002d9cc
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14002d4cb
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140005ae0
mov rbx, qword [rsp + 0x48]
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 0x14002d4ef
lea r8, [rbx + r12*2]
call fcn.140199418
jmp 0x14002d4f8
lea r8, [rbp - 0x20]
call fcn.140199918
cmp edi, dword [rbx - 0xc]
jg 0x14002d9c1
mov dword [rbx - 0x10], edi
mov word [r13 + rbx], r14w
movsxd rcx, dword [rbx - 0x10]
mov r15, rbx
mov r12, rbx
sub r12, rsi
sar r12, 1
mov r13d, dword [rsi - 0x10]
mov eax, r14d
test ecx, ecx
setns al
test eax, eax
je 0x14002d9b6
mov rdx, rcx
mov rcx, rbx
call fcn.140199d34
mov r14, rax
mov ecx, 0x7fffffff
sub ecx, eax
xor eax, eax
mov edx, eax
cmp ecx, r13d
setge dl
test edx, edx
je 0x14002d9ab
lea edi, [r13 + r14]
test edi, edi
js 0x14002d9a0
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x14002d584
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140005ae0
mov rsi, qword [rsp + 0x40]
cmp r12, r13
ja 0x14002d58d
lea r15, [rsi + r12*2]
movsxd rdx, r14d
add rdx, rdx
lea rcx, [rsi + r13*2]
mov r9, rdx
mov r8, r15
call fcn.140199918
cmp edi, dword [rsi - 0xc]
jg 0x14002d995
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 0x14002d5d8
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, [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.1400121e0
nop
lea r8, [0x140221538]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140012330
nop
mov r14, qword [rax]
lea rcx, [r14 - 0x18]
mov rdi, qword [rsp + 0x30]
lea rbx, [rdi - 0x18]
cmp rcx, rbx
je 0x14002d746
cmp dword [rbx + 0x10], 0
jl 0x14002d65b
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14002d65b
call fcn.140006db0
mov rdi, rax
mov ecx, r13d
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14002d64d
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 0x14002d746
movsxd r12, dword [r14 - 0x10]
test r12d, r12d
jne 0x14002d6c0
mov r12, qword [rbx]
cmp dword [rbx + 8], 0
je 0x14002d746
cmp dword [rbx + 0x10], 0
jge 0x14002d68e
cmp dword [rdi - 0xc], 0
jl 0x14002d947
mov dword [rdi - 0x10], r15d
mov word [rdi], r15w
jmp 0x14002d746
mov eax, r13d
lock xadd dword [rbx + 0x10], eax
dec eax
test eax, eax
jg 0x14002d6a8
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 0x14002d746
test r14, r14
je 0x14002d968
mov r15d, dword [rdi - 0x10]
mov r13, r14
sub r13, rdi
sar r13, 1
test r12d, r12d
js 0x14002d95d
mov ecx, 1
sub ecx, dword [rbx + 0x10]
mov eax, dword [rbx + 0xc]
sub eax, r12d
or eax, ecx
jge 0x14002d703
mov edx, r12d
lea rcx, [rsp + 0x30]
call fcn.140005ae0
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 0x14002d724
lea r8, [rdi + r13*2]
call fcn.140199418
jmp 0x14002d72c
mov r8, r14
call fcn.140199918
cmp r12d, dword [rdi - 0xc]
jg 0x14002d952
mov dword [rdi - 0x10], r12d
xor r15d, r15d
mov word [rbx + rdi], r15w
or r13, 0xffffffffffffffff
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002d766
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, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002d786
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 0x14002d845
mov r10, qword [rbp - 0x50]
mov r12, qword [rbp - 0x70]
mov rdi, r15
test r12, r12
jle 0x14002d833
nop dword [rax]
test r8, r8
js 0x14002d984
cmp r8, r9
jge 0x14002d984
test rdi, rdi
js 0x14002d97e
mov rax, qword [rbp - 0x78]
cmp rdi, qword [rax + 0x10]
jge 0x14002d97e
mov rcx, qword [rax + 8]
mov rdx, qword [r10 + r8*8]
mov eax, r15d
test rdx, rdx
setne al
test eax, eax
je 0x14002d973
mov rax, qword [rcx + rdi*8]
sub rdx, rax
nop dword [rax]
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x14002d817
add rax, 2
test cx, cx
jne 0x14002d800
mov eax, r15d
jmp 0x14002d81c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x14002d82f
inc rdi
cmp rdi, r12
jl 0x14002d7b0
jmp 0x14002d833
inc dword [rsp + 0x38]
inc r11d
inc r8
movsxd rax, r11d
cmp rax, r9
jl 0x14002d7a1
movsxd rax, dword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
cmp rax, r9
jne 0x14002d898
lea rcx, [rbp - 0x20]
call fcn.14002da90
test eax, eax
jne 0x14002d898
lea edx, [rax + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.1400166e0
cmp eax, 0xa
je 0x14002d890
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r14d, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14002d89d
mov r14d, 1
jmp 0x14002d89d
mov r14d, dword [rsp + 0x50]
lea rdx, [rdi - 0x18]
mov rbx, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14002d8ed
cmp dword [rdx + 0x10], 0
jge 0x14002d8c4
cmp dword [rsi - 0xc], 0
jl 0x14002d98a
mov dword [rsi - 0x10], r15d
mov word [rdi], r15w
jmp 0x14002d8ed
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002d8db
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 0x14002d908
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r15d, dword [rsp + 0x3c]
inc r15d
mov dword [rsp + 0x3c], r15d
mov r12, qword [rsp + 0x58]
inc r12
mov qword [rsp + 0x58], r12
mov rsi, qword [rsp + 0x60]
cmp r12, qword [rsp + 0x78]
jge 0x14002d9f3
mov r14, qword [rsp + 0x70]
jmp 0x14002d2d0
mov ecx, 0x80070057
call fcn.140004550
nop
mov ecx, 0x80070057
call fcn.140004550
int3
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
int3
call fcn.14005694c
int3
call fcn.14005694c
int3
mov ecx, 0x80070057
call fcn.140004550
nop
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, 0x80070057
call fcn.140004550
nop
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, 0x80070057
call fcn.140004550
nop
mov ecx, 0x80004005
call fcn.140004550
int3
call fcn.14005694c
nop
call fcn.140005c40
int3
mov r14d, dword [rsp + 0x3c]
mov r9d, r14d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rbp - 0x68]
call fcn.140001370
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002da2d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp - 0x58]
call fcn.140058fc0
nop
lea rcx, [rbp - 0x68]
call fcn.140001320
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x14002da5f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r14d
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140198b40
mov rbx, qword [rsp + 0x348]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret