Function at 0x14006b5a4
Capabilities:
Check if file exists
Delete file

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov rax, qword [0x140412700]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov r15, rdx
mov qword [rsp + 0x38], rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov eax, dword [r8]
mov dword [rcx], eax
lea rdx, [r8 + 8]
add rcx, 8
lea rax, [fcn.140044410]
mov qword [rsp + 0x28], rax
lea rax, [fcn.14006a180]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 3]
lea r8d, [rbx + 0x20]
call fcn.140219e40
nop
mov qword [rdi + 0x68], rbx
mov qword [rdi + 0x70], 2
lea esi, [rbx + 1]
mov dword [rsp + 0x30], esi
xorps xmm0, xmm0
movups xmmword [rsp + 0x110], xmm0
mov qword [rsp + 0x120], rbx
mov qword [rsp + 0x128], rbx
mov qword [rsp + 0x120], rbx
mov qword [rsp + 0x128], 7
mov word [rsp + 0x110], bx
xor edx, edx
mov rcx, rdi
call fcn.140179fe0
mov rcx, rax
call fcn.14006a23c
mov r14, rax
mov r12d, reloc.OLEAUT32.dll_SetErrorInfo
test rax, rax
je 0x14006ba7f
mov ecx, r12d
call fcn.1401bcc90
mov rbx, rax
mov qword [rsp + 0x60], rax
xor eax, eax
test rbx, rbx
je 0x14006b6e7
mov r8d, r12d
xor edx, edx
mov rcx, rbx
call fcn.1402bf2e0
lea rcx, [rbx + 8]
lea r13, [fcn.14000dd90]
mov qword [rsp + 0x20], r13
lea r9, [fcn.14000cc00]
lea edx, [rsi + 0x1f]
lea r8d, [rsi + 2]
call fcn.140219a78
nop
lea rcx, [rbx + 0x68]
mov qword [rsp + 0x20], r13
lea r9, [fcn.14000cc00]
lea edx, [rsi + 0x1f]
lea r8d, [rsi + 2]
call fcn.140219a78
nop
jmp 0x14006b6f1
mov rbx, rax
lea r13, [fcn.14000dd90]
mov qword [rdi + 0x68], rbx
lea rcx, [rsp + 0x90]
call fcn.1400f9164
mov rbx, rax
lea rax, [rsp + 0x110]
cmp rax, rbx
je 0x14006b746
lea rcx, [rsp + 0x110]
call fcn.14000dd24
mov r8d, 0x20
mov rdx, rbx
lea rcx, [rsp + 0x110]
call fcn.1402bec40
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 7
mov word [rbx], ax
lea rcx, [rsp + 0x90]
call fcn.14000dd24
xor eax, eax
mov ebx, eax
mov dword [rsp + 0x40], eax
cmp ebx, dword [rdi]
jge 0x14006b78b
mov edx, ebx
mov rcx, rdi
call fcn.140179fe0
movsxd rdx, ebx
shl rdx, 5
mov rcx, qword [rdi + 0x68]
add rcx, 8
add rcx, rdx
mov rdx, rax
call fcn.1400455e0
inc ebx
mov dword [rsp + 0x40], ebx
jmp 0x14006b75b
cmp dword [rdi], 2
jne 0x14006b80b
mov edx, 1
mov rcx, rdi
call fcn.140179fe0
mov r8, rax
xor edx, edx
call fcn.140179fe0
mov rcx, rax
mov rax, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 7
jbe 0x14006b7b8
mov r8, qword [r8]
mov rdx, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 7
jbe 0x14006b7c6
mov rcx, qword [rcx]
cmp rdx, rax
jne 0x14006b80b
xor r9d, r9d
test rdx, rdx
je 0x14006b7e9
movzx eax, word [rcx]
cmp ax, word [r8]
jne 0x14006b80b
dec rdx
add rcx, 2
add r8, 2
jmp 0x14006b7ce
mov edx, 1
mov rcx, rdi
call fcn.140179fe0
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x14006b803
mov rcx, qword [rax]
mov qword [rax + 0x10], r9
mov word [rcx], r9w
mov rax, qword [r14]
mov r10, qword [rax]
lea r9, [rsp + 0x110]
cmp qword [rsp + 0x128], 7
cmova r9, qword [rsp + 0x110]
xor edx, edx
mov rcx, rdi
call fcn.140179fe0
mov rbx, rax
mov r8, rax
cmp qword [rax + 0x18], 7
jbe 0x14006b845
mov r8, qword [rax]
mov rdx, r15
mov rcx, r14
mov rax, r10
call qword [case.0x14001d845.0]
test eax, eax
jns 0x14006b862
mov dword [rdi + 0x74], eax
xor ebx, ebx
jmp 0x14006ba63
lea r9, [rsp + 0x110]
cmp qword [rsp + 0x128], 7
cmova r9, qword [rsp + 0x110]
mov rdx, qword [rbx + 0x10]
mov r15, qword [rbx + 0x18]
cmp r15, 7
jbe 0x14006b88d
mov rbx, qword [rbx]
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, rbx
call fcn.14006c75c
xor ebx, ebx
test rax, rax
jne 0x14006b918
xor edx, edx
mov rcx, rdi
call fcn.140179fe0
cmp r15, 7
jbe 0x14006b8bf
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14006b8fe
xor edx, edx
mov rcx, rdi
call fcn.140179fe0
mov r8, rax
lea rdx, str.DeleteFile__s__failed
lea rcx, [rsp + 0x90]
call fcn.14006c728
nop
or esi, 2
mov dword [rsp + 0x30], esi
mov rcx, rax
call fcn.1401416e0
nop
test sil, 2
je 0x14006b918
and esi, 0xfffffffd
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0x90]
call fcn.14000dd24
mov rax, qword [r14]
mov r9, qword [rax + 0x58]
xor edx, edx
mov rcx, rdi
call fcn.140179fe0
cmp qword [rax + 0x18], 7
jbe 0x14006b933
mov rax, qword [rax]
mov r8, rax
mov rdx, qword [rsp + 0x38]
mov rcx, r14
mov rax, r9
call qword [case.0x14001d845.0]
mov r15, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbx
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x14006b963
mov rdx, r15
lea rcx, [rsp + 0x68]
call fcn.140013184
nop
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0xf0]
call fcn.1400848d8
mov rbx, rax
xor edx, edx
mov rcx, rdi
call fcn.140179fe0
mov r14, rax
cmp rax, rbx
je 0x14006b9cc
mov rcx, rax
call fcn.14000dd24
mov r8d, 0x20
mov rdx, rbx
mov rcx, r14
call fcn.1402bec40
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 7
mov word [rbx], ax
lea rcx, [rsp + 0xf0]
call fcn.14000dd24
nop
lea rcx, [rsp + 0x68]
call fcn.14000dd24
mov rcx, r15
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor edx, edx
mov rcx, rdi
call fcn.140179fe0
lea r9d, [rdx + 1]
lea r8, [0x140394f20]
mov rcx, rax
call fcn.14006c5a0
xor edx, edx
mov rcx, rdi
call fcn.140179fe0
lea r8, [rsp + 0x110]
cmp qword [rsp + 0x128], 7
cmova r8, qword [rsp + 0x110]
mov r9, qword [rsp + 0x120]
mov rcx, rax
call fcn.14006c5a0
xor edx, edx
mov rcx, rdi
call fcn.140179fe0
mov rcx, rax
call fcn.14006a23c
mov r14, rax
xor ebx, ebx
test rax, rax
mov r15, qword [rsp + 0x38]
jne 0x14006b80b
xor edx, edx
mov rcx, rdi
call fcn.140179fe0
mov rcx, rax
lea rdx, [rsp + 0x110]
call fcn.1400455e0
jmp 0x14006ba86
lea r13, [fcn.14000dd90]
mov edx, 1
mov rcx, rdi
call fcn.140179fe0
cmp qword [rax + 0x10], rbx
je 0x14006bdbd
mov rcx, rax
call fcn.14006a23c
mov r14, rax
test rax, rax
je 0x14006bdbd
cmp qword [rdi + 0x68], rbx
jne 0x14006bb5e
mov rcx, r12
call fcn.1401bcc90
mov rbx, rax
mov qword [rsp + 0x60], rax
xor eax, eax
test rbx, rbx
je 0x14006bb21
mov r8, r12
xor edx, edx
mov rcx, rbx
call fcn.1402bf2e0
lea rcx, [rbx + 8]
mov qword [rsp + 0x20], r13
lea r9, [fcn.14000cc00]
mov edx, 0x20
lea r8d, [rdx - 0x1d]
call fcn.140219a78
nop
lea rcx, [rbx + 0x68]
mov qword [rsp + 0x20], r13
lea r9, [fcn.14000cc00]
mov edx, 0x20
lea r8d, [rdx - 0x1d]
call fcn.140219a78
nop
xor eax, eax
jmp 0x14006bb24
mov rbx, rax
mov qword [rdi + 0x68], rbx
mov ebx, eax
mov dword [rsp + 0x44], eax
cmp ebx, dword [rdi]
jge 0x14006bb5e
mov edx, ebx
mov rcx, rdi
call fcn.140179fe0
movsxd rdx, ebx
shl rdx, 5
mov rcx, qword [rdi + 0x68]
add rcx, 8
add rcx, rdx
mov rdx, rax
call fcn.1400455e0
inc ebx
mov dword [rsp + 0x44], ebx
jmp 0x14006bb2e
lea rcx, [rsp + 0xb0]
call fcn.1400f9164
mov rbx, rax
lea rax, [rsp + 0x110]
cmp rax, rbx
je 0x14006bbaf
lea rcx, [rsp + 0x110]
call fcn.14000dd24
mov r8d, 0x20
mov rdx, rbx
lea rcx, [rsp + 0x110]
call fcn.1402bec40
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 7
mov word [rbx], ax
lea rcx, [rsp + 0xb0]
call fcn.14000dd24
mov rax, qword [r14]
mov r10, qword [rax]
lea r9, [rsp + 0x110]
cmp qword [rsp + 0x128], 7
cmova r9, qword [rsp + 0x110]
mov edx, 1
mov rcx, rdi
call fcn.140179fe0
mov rbx, rax
mov r8, rax
cmp qword [rax + 0x18], 7
jbe 0x14006bbf9
mov r8, qword [rax]
mov rdx, r15
mov rcx, r14
mov rax, r10
call qword [case.0x14001d845.0]
test eax, eax
jns 0x14006bc16
mov dword [rdi + 0x74], eax
xor ebx, ebx
jmp 0x14006bda0
lea r9, [rsp + 0x110]
cmp qword [rsp + 0x128], 7
cmova r9, qword [rsp + 0x110]
mov rdx, qword [rbx + 0x10]
mov r15, qword [rbx + 0x18]
cmp r15, 7
jbe 0x14006bc41
mov rbx, qword [rbx]
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, rbx
call fcn.14006c75c
test rax, rax
jne 0x14006bccc
lea edx, [rax + 1]
mov rcx, rdi
call fcn.140179fe0
cmp r15, 7
jbe 0x14006bc72
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14006bcb2
lea edx, [rax + 1]
mov rcx, rdi
call fcn.140179fe0
mov r8, rax
lea rdx, str.DeleteFile__s__failed
lea rcx, [rsp + 0xb0]
call fcn.14006c728
nop
or esi, 4
mov dword [rsp + 0x30], esi
mov rcx, rax
call fcn.1401416e0
nop
test sil, 4
je 0x14006bccc
and esi, 0xfffffffb
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0xb0]
call fcn.14000dd24
mov rax, qword [r14]
mov r9, qword [rax + 0x58]
mov edx, 1
mov rcx, rdi
call fcn.140179fe0
cmp qword [rax + 0x18], 7
jbe 0x14006bcea
mov rax, qword [rax]
mov r8, rax
mov r15, qword [rsp + 0x38]
mov rdx, r15
mov rcx, r14
mov rax, r9
call qword [case.0x14001d845.0]
mov rbx, rax
mov r14d, 1
mov edx, r14d
mov rcx, rdi
call fcn.140179fe0
mov rcx, rax
mov rdx, rbx
call fcn.140011ae8
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edx, r14d
mov rcx, rdi
call fcn.140179fe0
mov r9d, r14d
lea r8, [0x140394f20]
xor edx, edx
mov rcx, rax
call fcn.14006c5a0
mov edx, r14d
mov rcx, rdi
call fcn.140179fe0
lea r8, [rsp + 0x110]
cmp qword [rsp + 0x128], 7
cmova r8, qword [rsp + 0x110]
mov r9, qword [rsp + 0x120]
xor edx, edx
mov rcx, rax
call fcn.14006c5a0
mov edx, r14d
mov rcx, rdi
call fcn.140179fe0
mov rcx, rax
call fcn.14006a23c
mov r14, rax
xor ebx, ebx
test rax, rax
jne 0x14006bbbc
mov edx, 1
mov rcx, rdi
call fcn.140179fe0
mov rcx, rax
lea rdx, [rsp + 0x110]
call fcn.1400455e0
cmp dword [rdi], 2
jle 0x14006c0f2
mov edx, 2
mov rcx, rdi
call fcn.140179fe0
mov rcx, rax
call fcn.14006a23c
mov r14, rax
test rax, rax
je 0x14006c0f2
cmp qword [rdi + 0x68], rbx
jne 0x14006be96
mov rcx, r12
call fcn.1401bcc90
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14006be59
mov r8, r12
xor edx, edx
mov rcx, rax
call fcn.1402bf2e0
lea rcx, [rbx + 8]
mov qword [rsp + 0x20], r13
lea r9, [fcn.14000cc00]
mov r8d, 3
lea r12d, [r8 + 0x1d]
mov edx, r12d
call fcn.140219a78
nop
lea rcx, [rbx + 0x68]
mov qword [rsp + 0x20], r13
lea r9, [fcn.14000cc00]
lea r8d, [r12 - 0x1d]
mov edx, r12d
call fcn.140219a78
nop
xor r12d, r12d
jmp 0x14006be5f
xor r12d, r12d
mov ebx, r12d
mov qword [rdi + 0x68], rbx
mov ebx, r12d
mov dword [rsp + 0x48], ebx
cmp ebx, dword [rdi]
jge 0x14006be99
mov edx, ebx
mov rcx, rdi
call fcn.140179fe0
movsxd rdx, ebx
shl rdx, 5
mov rcx, qword [rdi + 0x68]
add rcx, 8
add rcx, rdx
mov rdx, rax
call fcn.1400455e0
inc ebx
jmp 0x14006be66
xor r12d, r12d
lea rcx, [rsp + 0xd0]
call fcn.1400f9164
mov rbx, rax
lea rax, [rsp + 0x110]
cmp rax, rbx
je 0x14006bee9
lea rcx, [rsp + 0x110]
call fcn.14000dd24
mov r8d, 0x20
mov rdx, rbx
lea rcx, [rsp + 0x110]
call fcn.1402bec40
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
lea rcx, [rsp + 0xd0]
call fcn.14000dd24
mov r13d, 2
mov rax, qword [r14]
mov r10, qword [rax]
lea r9, [rsp + 0x110]
cmp qword [rsp + 0x128], 7
cmova r9, qword [rsp + 0x110]
mov edx, r13d
mov rcx, rdi
call fcn.140179fe0
mov rbx, rax
mov r8, rax
cmp qword [rax + 0x18], 7
jbe 0x14006bf37
mov r8, qword [rax]
mov rdx, r15
mov rcx, r14
mov rax, r10
call qword [case.0x14001d845.0]
test eax, eax
jns 0x14006bf52
mov dword [rdi + 0x74], eax
jmp 0x14006c0d5
lea r9, [rsp + 0x110]
cmp qword [rsp + 0x128], 7
cmova r9, qword [rsp + 0x110]
mov rdx, qword [rbx + 0x10]
mov r15, qword [rbx + 0x18]
cmp r15, 7
jbe 0x14006bf7d
mov rbx, qword [rbx]
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, rbx
call fcn.14006c75c
test rax, rax
jne 0x14006c008
mov edx, r13d
mov rcx, rdi
call fcn.140179fe0
cmp r15, 7
jbe 0x14006bfae
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14006bfee
mov edx, r13d
mov rcx, rdi
call fcn.140179fe0
mov r8, rax
lea rdx, str.DeleteFile__s__failed
lea rcx, [rsp + 0xd0]
call fcn.14006c728
nop
or esi, 8
mov dword [rsp + 0x30], esi
mov rcx, rax
call fcn.1401416e0
nop
test sil, 8
je 0x14006c008
and esi, 0xfffffff7
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0xd0]
call fcn.14000dd24
mov rax, qword [r14]
mov r9, qword [rax + 0x58]
mov edx, r13d
mov rcx, rdi
call fcn.140179fe0
cmp qword [rax + 0x18], 7
jbe 0x14006c024
mov rax, qword [rax]
mov r8, rax
mov r15, qword [rsp + 0x38]
mov rdx, r15
mov rcx, r14
mov rax, r9
call qword [case.0x14001d845.0]
mov rbx, rax
mov edx, r13d
mov rcx, rdi
call fcn.140179fe0
mov rcx, rax
mov rdx, rbx
call fcn.140011ae8
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edx, r13d
mov rcx, rdi
call fcn.140179fe0
mov r9d, 1
lea r8, [0x140394f20]
xor edx, edx
mov rcx, rax
call fcn.14006c5a0
mov edx, r13d
mov rcx, rdi
call fcn.140179fe0
lea r8, [rsp + 0x110]
cmp qword [rsp + 0x128], 7
cmova r8, qword [rsp + 0x110]
mov r9, qword [rsp + 0x120]
xor edx, edx
mov rcx, rax
call fcn.14006c5a0
mov edx, r13d
mov rcx, rdi
call fcn.140179fe0
mov rcx, rax
call fcn.14006a23c
mov r14, rax
test rax, rax
jne 0x14006befc
mov edx, r13d
mov rcx, rdi
call fcn.140179fe0
mov rcx, rax
lea rdx, [rsp + 0x110]
call fcn.1400455e0
jmp 0x14006c0f5
xor r12d, r12d
mov edx, 1
mov rcx, rdi
call fcn.140179fe0
mov rbx, rax
cmp qword [rax + 0x10], r12
jne 0x14006c20e
lea rdx, [rsp + 0x110]
mov rcx, rax
call fcn.1400455e0
xor edx, edx
mov rcx, rdi
call fcn.140179fe0
mov rsi, rax
lea r14d, [rdx + 9]
mov r8d, r14d
lea rdx, [0x140397e98]
mov rcx, rax
call fcn.140011a6c
lea r8d, [r14 - 1]
lea rdx, [0x140397eb0]
mov rcx, rbx
call fcn.140011a6c
mov rcx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x14006c162
mov rcx, qword [rsi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14006c1b6
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14006c179
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14006c1b6
mov rcx, qword [rdi + 0x68]
add rcx, 8
mov r8, r14
lea rdx, [0x140397e98]
call fcn.140011a6c
mov rcx, qword [rdi + 0x68]
add rcx, 0x28
mov r8d, 8
lea rdx, [0x140397eb0]
call fcn.140011a6c
jmp 0x14006c20e
lea rdx, [rsp + 0x110]
mov rcx, rsi
call fcn.1400455e0
lea rax, [rsp + 0x110]
cmp rbx, rax
je 0x14006c20e
mov rcx, rbx
call fcn.14000dd24
mov r8d, 0x20
lea rdx, [rsp + 0x110]
mov rcx, rbx
call fcn.1402bec40
mov qword [rsp + 0x120], r12
mov qword [rsp + 0x128], 7
mov word [rsp + 0x110], r12w
lea rcx, [rsp + 0x110]
call fcn.14000dd24
nop
jmp 0x14006c223
mov rax, rdi
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1402194b0
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret