Function at 0x14004bc90
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
lea rbp, [rsp - 0x5f0]
sub rsp, 0x6f0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x740], rbx
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
mov edi, edx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
mov esi, 1
mov dword [rsp + 0x40], esi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1c0]
call fcn.140192cb0
mov r8d, 0x104
lea rdx, [rbp + 0x3d0]
mov ecx, edi
call fcn.14000d950
mov r13d, eax
mov dword [rsp + 0x48], eax
lea r8, [rbp + 0x1c0]
lea rdx, [rbp + 0x3d0]
mov rcx, rbx
call fcn.14004b5a0
test eax, eax
je 0x14004c3b8
xor eax, eax
mov r12d, eax
mov dword [rsp + 0x44], eax
mov r15d, eax
cmp qword [rbx + 0x220], rax
jle 0x14004c3b8
test r15, r15
js 0x14004c3b2
cmp r15, qword [rbx + 0x220]
jge 0x14004c3b2
mov rax, qword [rbx + 0x218]
mov rcx, qword [rax + r15*8]
sub rcx, 0x18
call fcn.140001950
lea rdi, [rax + 0x18]
mov qword [rsp + 0x30], rdi
mov edx, 0x5c
mov rcx, rdi
call fcn.140193dc0
mov r14, rax
test rax, rax
jne 0x14004bd93
or r14d, 0xffffffff
jmp 0x14004bd99
sub r14, rdi
sar r14, 1
inc r14d
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov r8d, dword [rdi - 0x10]
sub r8d, r14d
cmp word [rbp + rcx*2 + 0x1be], 0x5c
lea rcx, [rsp + 0x30]
jne 0x14004bded
lea rdx, [rbp - 0x78]
call fcn.140017e80
mov r9, qword [rax]
lea r8, [rbp + 0x1c0]
lea rdx, [0x1401c9460]
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rbp - 0x78]
jmp 0x14004be15
lea rdx, [rbp - 0x70]
call fcn.140017e80
mov r9, qword [rax]
lea r8, [rbp + 0x1c0]
lea rdx, str._s_s
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004be30
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 0x14004be5d
mov edx, 0x103
lea rcx, [rsp + 0x30]
call fcn.1400018f0
mov rsi, qword [rsp + 0x30]
mov rdx, rsi
mov rcx, rbx
call fcn.14004b720
test eax, eax
jne 0x14004c31e
lea edx, [rax + 0x20]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x14004beb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x14004beb1
cmp eax, 3
jbe 0x14004bea9
cmp eax, 5
je 0x14004bea9
cmp eax, 0x20
jne 0x14004beb1
mov dword [rsp + 0x40], 1
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov r8d, dword [rsi - 0x10]
sub r8d, r14d
cmp word [rbp + rcx*2 + 0x1be], 0x5c
lea rcx, [rsp + 0x30]
jne 0x14004bf0c
lea rdx, [rsp + 0x70]
call fcn.140017e80
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, r13d
lea r8, [rbp + 0x1c0]
lea rdx, [0x1401ce600]
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x70]
jmp 0x14004bf3e
lea rdx, [rsp + 0x58]
call fcn.140017e80
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, r13d
lea r8, [rbp + 0x1c0]
lea rdx, str._s_d_s
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004bf59
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, 0x20
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.140051e58
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
je 0x14004c396
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea rcx, [rbp - 0x50]
lea rax, [rbp - 0x50]
test rax, 0xffffffffffff0000
jne 0x14004bfdc
movzx edi, cx
mov ecx, edi
call fcn.140051c2c
test rax, rax
je 0x14004c0d0
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140001b00
mov rbx, qword [rsp + 0x38]
jmp 0x14004c0d0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x50]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14004c04d
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14004c0d0
cmp dword [rdx + 0x10], eax
jge 0x14004c01f
cmp dword [rbx - 0xc], eax
jl 0x14004c375
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x14004c0d0
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004c036
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 0x14004c0d0
mov r13d, dword [rbx - 0x10]
lea r12, [rbp - 0x50]
sub r12, rbx
sar r12, 1
test ecx, ecx
js 0x14004c38b
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14004c085
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.1400018f0
mov rbx, qword [rsp + 0x38]
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 0x14004c0a9
lea r8, [rbx + r12*2]
call fcn.140192c44
jmp 0x14004c0b2
lea r8, [rbp - 0x50]
call fcn.140192bbc
cmp edi, dword [rbx - 0xc]
jg 0x14004c380
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r13 + rbx], ax
mov r12d, dword [rsp + 0x44]
mov r13d, dword [rsp + 0x48]
mov r8d, 3
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.140017e80
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14004c13f
cmp dword [rbx + 0x10], 0
jl 0x14004c130
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004c130
call fcn.140001950
mov rdi, rax
or ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14004c125
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 0x14004c13f
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.140001c20
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004c15e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [0x1401ce5f8]
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call fcn.1401936c8
test eax, eax
je 0x14004c18d
lea rdx, [0x1401ce5f0]
mov rcx, rdi
call fcn.1401936c8
test eax, eax
jne 0x14004c2f9
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov r8d, dword [rsi - 0x10]
sub r8d, r14d
cmp word [rbp + rcx*2 + 0x1be], 0x5c
lea rcx, [rsp + 0x30]
jne 0x14004c1e6
lea rdx, [rbp - 0x68]
call fcn.140017e80
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, r13d
lea r8, [rbp + 0x1c0]
lea rdx, str._s_dCOLOR_s
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rbp - 0x68]
jmp 0x14004c218
lea rdx, [rsp + 0x60]
call fcn.140017e80
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, r13d
lea r8, [rbp + 0x1c0]
lea rdx, [0x1401d2e10]
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004c233
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov r8d, dword [rsi - 0x10]
sub r8d, r14d
cmp word [rbp + rcx*2 + 0x1be], 0x5c
lea rcx, [rsp + 0x30]
jne 0x14004c296
lea rdx, [rsp + 0x68]
call fcn.140017e80
mov r9, qword [rax]
lea r8, [rbp + 0x1c0]
lea rdx, str._sCOLOR_s
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x68]
jmp 0x14004c2c0
lea rdx, [rsp + 0x78]
call fcn.140017e80
mov r9, qword [rax]
lea r8, [rbp + 0x1c0]
lea rdx, [0x1401d2de0]
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004c2db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbp - 0x50]
call fcn.14001a2a0
mov rdi, qword [rsp + 0x38]
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004c314
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x30]
movsxd rdx, dword [rsi - 0xc]
mov rcx, rsi
call fcn.14019442c
test eax, eax
js 0x14004c3a7
cmp eax, dword [rsi - 0xc]
jg 0x14004c3a7
mov dword [rsi - 0x10], eax
cdqe
xor ecx, ecx
mov word [rsi + rax*2], cx
lea rdx, [rsi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004c359
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc r12d
mov dword [rsp + 0x44], r12d
inc r15
movsxd rax, r12d
cmp rax, qword [rbx + 0x220]
jge 0x14004c3a1
jmp 0x14004bd45
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
nop
mov esi, dword [rsp + 0x40]
jmp 0x14004c3b8
mov ecx, 0x80070057
call fcn.140001010
nop
call fcn.140050fc8
int3
mov eax, esi
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.1401945b0
mov rbx, qword [rsp + 0x740]
add rsp, 0x6f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret