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

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x160], rbx
mov rax, qword [0x140079258]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rdi, rcx
mov qword [rbp + 8], 7
xor r15d, r15d
mov qword [rbp], r15
mov word [rbp - 0x10], r15w
add rcx, 0xfffffffffffffff0
xor r9d, r9d
mov r8, rdx
lea rdx, [rbp - 0x10]
call fcn.1400181b0
test al, al
jne 0x14001d150
movabs rax, 0xf35f747b3b21f9d8
mov qword [rsp + 0x40], rax
lea rsi, str.c:jaworkspacecommon_ati_cdp4443product_filewindowswinnt_dir.cpp
mov qword [rsp + 0x48], rsi
lea r14, str.winnt_dir::Remove
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], 0x2cf
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x60], xmm1
lea rcx, str.unknown_error
call fcn.140005930
mov r9, rax
mov r8d, 0x40008
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x80]
call fcn.140033ba0
nop
mov rcx, qword [rdi - 8]
movsxd rcx, dword [rcx + 4]
add rcx, rdi
mov rdx, rax
call fcn.1400064c0
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14001d3ba
nop dword [rax]
lock dec dword [rcx]
jne 0x14001d3ba
mov rbx, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
call qword [rax]
mov rcx, rbx
test rbx, rbx
jne 0x14001d130
jmp 0x14001d3ba
mov rax, qword [rdi - 8]
movsxd r8, dword [rax + 4]
add r8, rdi
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x70]
call fcn.14002f550
nop
mov rax, qword [rdi - 8]
movsxd rcx, dword [rax + 4]
mov rax, qword [rcx + rdi]
test rax, rax
je 0x14001d185
cmp dword [rax + 4], 0
jne 0x14001d3af
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001d397
movabs rax, 0xf35f747b3b21f9e3
mov qword [rsp + 0x40], rax
lea rsi, str.c:jaworkspacecommon_ati_cdp4443product_filewindowswinnt_dir.cpp
mov qword [rsp + 0x48], rsi
lea r14, str.winnt_dir::Remove
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], 0x2da
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x40], xmm1
lea rcx, str.unknown_error
call fcn.140005930
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x40008
lea r9, [rbp - 0x10]
lea r8, [0x14005af20]
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x78]
call fcn.1400147a0
nop
mov rcx, qword [rdi - 8]
movsxd rcx, dword [rcx + 4]
add rcx, rdi
mov rdx, rax
call fcn.1400064c0
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14001d24a
lock dec dword [rcx]
jne 0x14001d24a
mov rbx, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
call qword [rax]
mov rcx, rbx
test rbx, rbx
jne 0x14001d233
mov rax, qword [rdi - 8]
movsxd rcx, dword [rax + 4]
mov rax, qword [rcx + rdi]
test rax, rax
je 0x14001d3af
cmp dword [rax + 4], 0x40014
jne 0x14001d3af
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rcx, qword [rbp - 0x10]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x10000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14001d38c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14001d3af
movabs rax, 0xf35f747b3b21f9f2
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], 0x2e9
mov rax, qword [rdi - 8]
movsxd rcx, dword [rax + 4]
add rcx, rdi
lea rdx, [rsp + 0x68]
call fcn.14001edc0
mov rbx, rax
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x20], xmm1
lea rcx, [0x140056984]
call fcn.140005930
mov r9, rax
mov r8d, 0x40011
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x60]
call fcn.140033ba0
nop
mov rdx, rbx
mov rcx, rax
call fcn.140014580
mov rdx, rax
mov rax, qword [rdi - 8]
movsxd rcx, dword [rax + 4]
add rcx, rdi
call fcn.1400064c0
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001d369
lock dec dword [rcx]
jne 0x14001d369
mov rbx, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
call qword [rax]
mov rcx, rbx
test rbx, rbx
jne 0x14001d352
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001d3af
lock dec dword [rcx]
jne 0x14001d3af
mov rbx, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
call qword [rax]
mov rcx, rbx
test rbx, rbx
jne 0x14001d373
jmp 0x14001d3af
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001d3af
mov rax, qword [rdi - 8]
movsxd rcx, dword [rax + 4]
add rcx, rdi
lea rdx, [0x14007bf60]
call fcn.1400064c0
nop
lea rcx, [rsp + 0x70]
call fcn.14002f6c0
nop
cmp qword [rbp + 8], 8
jb 0x14001d3ca
mov rcx, qword [rbp - 0x10]
call fcn.1400376e4
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140038d80
mov rbx, qword [rsp + 0x160]
add rsp, 0x120
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret