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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x6e0
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [rsp + 0x730], rbx
mov rax, qword [0x1400e71f0]
xor rax, rsp
mov qword [rsp + 0x6d0], rax
mov edi, edx
mov r15, rcx
mov ebx, 1
mov dword [rsp + 0x40], ebx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x2b0]
call fcn.140080d50
mov r8d, 0x104
lea rdx, [rsp + 0x4c0]
mov ecx, edi
call fcn.140016dd0
mov r12d, eax
mov dword [rsp + 0x48], eax
lea r8, [rsp + 0x2b0]
lea rdx, [rsp + 0x4c0]
mov rcx, r15
call fcn.140061920
test eax, eax
jne 0x140061e6b
mov eax, ebx
jmp 0x14006270c
xor ebp, ebp
mov dword [rsp + 0x44], ebp
xor r14d, r14d
cmp qword [r15 + 0x220], rbp
jle 0x14006270a
test r14, r14
js 0x140062704
cmp r14, qword [r15 + 0x220]
jge 0x140062704
mov rax, qword [r15 + 0x218]
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 0x140061ec6
cmp rax, qword [rdi - 0x18]
jne 0x140061ec6
lea rbx, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x140061f02
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
je 0x1400626fe
mov ecx, dword [rdi - 0x10]
mov dword [rax + 8], ecx
mov ecx, dword [rdi - 0x10]
add ecx, 1
movsxd rdx, ecx
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rax + 0x18]
call fcn.140080540
lea rdi, [rbx + 0x18]
mov qword [rsp + 0x30], rdi
mov dx, 0x5c
mov rcx, rdi
call fcn.140080890
mov r13, rax
test rax, rax
jne 0x140061f25
or r13d, 0xffffffff
jmp 0x140061f2b
sub r13, rdi
sar r13, 1
add r13d, 1
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x2ae], 0x5c
jne 0x140061faa
mov r8d, dword [rdi - 0x10]
sub r8d, r13d
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call fcn.140003710
mov r9, qword [rax]
lea r8, [rsp + 0x2b0]
lea rdx, [0x1400a3e50]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140062007
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140062007
mov r8d, dword [rdi - 0x10]
sub r8d, r13d
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x30]
call fcn.140003710
mov r9, qword [rax]
lea r8, [rsp + 0x2b0]
lea rdx, [0x1400a3e08]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140062007
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x30]
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, 0x103
or eax, ecx
jge 0x140062034
mov edx, 0x103
lea rcx, [rsp + 0x30]
call fcn.140003180
mov rsi, qword [rsp + 0x30]
mov rdx, rsi
mov rcx, r15
call fcn.140061b30
test eax, eax
jne 0x14006265d
lea edx, [rax + 0x20]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x140062090
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x140062090
cmp eax, 3
jbe 0x140062088
cmp eax, 5
je 0x140062088
cmp eax, 0x20
jne 0x140062090
mov dword [rsp + 0x40], 1
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x2ae], 0x5c
jne 0x14006210d
mov r8d, dword [rsi - 0x10]
sub r8d, r13d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.140003710
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, r12d
lea r8, [rsp + 0x2b0]
lea rdx, [0x1400a8de8]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14006216c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14006216c
mov r8d, dword [rsi - 0x10]
sub r8d, r13d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140003710
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, r12d
lea r8, [rsp + 0x2b0]
lea rdx, str._s_d_s
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14006216c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, 0x20
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x1400e9420], 0xd2
jne 0x1400621b3
lea rdx, [rsp + 0xa0]
lea rcx, [0x1400e9440]
call fcn.1400075b0
call fcn.1400696cc
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
je 0x1400626e2
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0xa0]
lea rax, [rsp + 0xa0]
test rax, 0xffffffffffff0000
jne 0x14006221f
movzx edi, cx
mov ecx, edi
call fcn.1400696b8
test rax, rax
je 0x140062325
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140003a40
mov rbx, qword [rsp + 0x38]
jmp 0x140062325
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xa0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140062296
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140062325
cmp dword [rdx + 0x10], eax
jge 0x140062267
cmp dword [rbx - 0xc], eax
jl 0x1400626c6
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x140062325
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14006227f
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 0x140062325
mov ebp, dword [rbx - 0x10]
lea r12, [rsp + 0xa0]
sub r12, rbx
sar r12, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400622c9
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140003180
mov rbx, qword [rsp + 0x38]
cmp r12, rbp
ja 0x1400622e9
movsxd rax, edi
lea rbp, [rax + rax]
lea r8, [rbx + r12*2]
mov r9, rbp
mov rdx, rbp
mov rcx, rbx
call fcn.140081c40
jmp 0x140062306
movsxd rax, edi
lea rbp, [rax + rax]
mov r9, rbp
lea r8, [rsp + 0xa0]
mov rdx, rbp
mov rcx, rbx
call fcn.140080540
test edi, edi
js 0x1400626d7
cmp edi, dword [rbx - 0xc]
jg 0x1400626d7
mov dword [rbx - 0x10], edi
mov word [rbx + rbp], 0
mov r12d, dword [rsp + 0x48]
mov r8d, 3
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.140003710
nop
mov rdx, qword [rax]
lea rdi, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rdi, rbx
je 0x1400623f5
cmp dword [rbx + 0x10], 0
jl 0x1400623e6
mov rcx, qword [rdi]
cmp rcx, qword [rbx]
jne 0x1400623e6
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi + 0x10], 0
jl 0x140062383
cmp rax, qword [rdi]
jne 0x140062383
mov rbp, rdi
lock add dword [rdi + 0x10], 1
jmp 0x1400623c0
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi + 8]
call qword [rax]
mov rbp, rax
test rax, rax
je 0x1400626d1
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 8]
add ecx, 1
movsxd rdx, ecx
lea r9, [rdx + rdx]
lea r8, [rdi + 0x18]
add rdx, rdx
lea rcx, [rax + 0x18]
call fcn.140080540
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400623db
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x1400623f5
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.140003c40
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140062416
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [0x1400a8de0]
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call fcn.1400807e0
test eax, eax
je 0x140062445
lea rdx, [0x1400a8dd8]
mov rcx, rdi
call fcn.1400807e0
test eax, eax
jne 0x14006262d
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x2ae], 0x5c
jne 0x1400624c8
mov r8d, dword [rsi - 0x10]
sub r8d, r13d
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.140003710
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, r12d
lea r8, [rsp + 0x2b0]
lea rdx, str._s_dCOLOR_s
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140062527
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140062527
mov r8d, dword [rsi - 0x10]
sub r8d, r13d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140003710
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, r12d
lea r8, [rsp + 0x2b0]
lea rdx, [0x1400aa860]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140062527
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x2ae], 0x5c
jne 0x1400625b0
mov r8d, dword [rsi - 0x10]
sub r8d, r13d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140003710
mov r9, qword [rax]
lea r8, [rsp + 0x2b0]
lea rdx, [0x1400a8da8]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140062607
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140062607
mov r8d, dword [rsi - 0x10]
sub r8d, r13d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140003710
mov r9, qword [rax]
lea r8, [rsp + 0x2b0]
lea rdx, str._sCOLOR_s
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140062607
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0xa0]
call fcn.1400344b0
mov rdi, qword [rsp + 0x38]
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140062654
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x30]
mov ebp, dword [rsp + 0x44]
jmp 0x14006265d
mov rsi, qword [rsp + 0x30]
mov ebp, dword [rsp + 0x44]
test rsi, rsi
jne 0x140062666
xor ecx, ecx
jmp 0x14006267d
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x1400626f3
cmp ecx, dword [rsi - 0xc]
jg 0x1400626f3
mov dword [rsi - 0x10], ecx
movsxd rax, ecx
mov word [rsi + rax*2], 0
lea rdx, [rsi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400626aa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add ebp, 1
mov dword [rsp + 0x44], ebp
add r14, 1
movsxd rax, ebp
cmp rax, qword [r15 + 0x220]
jge 0x1400626ed
jmp 0x140061e81
mov ecx, 0x80070057
call fcn.140001000
nop
call fcn.1400019f0
nop
mov ecx, 0x80070057
call fcn.140001000
nop
mov ecx, 0x80004005
call fcn.140001000
nop
mov ebx, dword [rsp + 0x40]
jmp 0x14006270a
mov ecx, 0x80070057
call fcn.140001000
nop
call fcn.1400019f0
int3
call fcn.14006766c
int3
mov eax, ebx
mov rcx, qword [rsp + 0x6d0]
xor rcx, rsp
call fcn.140081050
mov rbx, qword [rsp + 0x730]
add rsp, 0x6e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret