Function at 0x140003940
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8, rdx
mov eax, ecx
test ecx, ecx
je 0x14000399d
sub eax, 5
je 0x140003991
sub eax, 0xe
je 0x140003981
sub eax, 0xd
je 0x140003971
cmp eax, 0x74
je 0x140003971
lea rdx, str.Cant_remove__P.__The_filename_isnt_valid.
add rsp, 0x28
jmp fcn.140003180
lea rdx, str.Cant_delete__P.__The_file_is_in_use_by_another_process.
add rsp, 0x28
jmp fcn.140003180
lea rdx, str.Cant_delete__P.__The_drive_is_write_protected.
add rsp, 0x28
jmp fcn.140003180
lea rdx, str.Cant_delete__P.__Access_denied.
call fcn.140003180
add rsp, 0x28
ret
mov r11, rsp
push rbx
sub rsp, 0x290
mov rax, qword [0x14001ce70]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov qword [r11 + 0x20], rsi
mov qword [r11 - 0x10], rdi
mov rbx, rcx
mov qword [r11 - 0x18], r12
mov edi, r8d
mov esi, edx
test rcx, rcx
je 0x140003a6c
cmp qword [rcx], 0
jne 0x140003a85
lea rdx, [0x14001c6a8]
lea rcx, str.path__path__Path
mov r8d, 0x8ed
call fcn.14000a0c4
mov rcx, rbx
call fcn.140005730
cmp dword [0x14001e408], 0
mov r12d, eax
je 0x140003aa3
mov edx, esi
mov rcx, rbx
call fcn.140003820
lea rdx, str..
xor r8d, r8d
mov rcx, rbx
call fcn.140005a90
mov rcx, qword [rbx]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, 3
mov rcx, rbx
mov rsi, rax
call fcn.140004cc0
cmp rsi, 0xffffffffffffffff
je 0x140003bb4
mov rcx, rbx
mov qword [rsp + 0x2b0], rbp
call fcn.140005730
mov ebp, eax
nop
cmp word [rsp + 0x4c], 0x2e
jne 0x140003b10
movzx ecx, word [rsp + 0x4e]
test cx, cx
je 0x140003b62
cmp cx, 0x2e
jne 0x140003b10
cmp word [rsp + 0x50], 0
je 0x140003b62
cmp dword [0x14001e410], 0
jne 0x140003b1d
test edi, edi
je 0x140003b7a
lea rdx, [rsp + 0x4c]
xor r8d, r8d
mov rcx, rbx
call fcn.140005a90
test edi, edi
je 0x140003b46
cmp dword [0x14001e40c], 0
je 0x140003b46
mov rcx, rbx
call fcn.1400036d0
test eax, eax
je 0x140003b4e
mov rcx, rbx
call fcn.140003d30
mov rcx, rbx
call fcn.140005730
mov rcx, rbx
sub eax, ebp
mov edx, eax
call fcn.140004cc0
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140003af0
jmp 0x140003ba3
mov rcx, rbx
call fcn.140005730
mov rcx, rbx
sub eax, r12d
mov edx, eax
call fcn.140004cc0
lea rdx, str.Cant_remove_non_empty_directory__P_without__r_option.
mov r8, rbx
mov ecx, 0x91
call fcn.140003180
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbp, qword [rsp + 0x2b0]
mov rcx, rbx
call fcn.140005730
mov rcx, rbx
sub eax, r12d
mov edx, eax
call fcn.140004cc0
mov r12, qword [rsp + 0x280]
mov rsi, qword [rsp + 0x2b8]
test edi, edi
mov rdi, qword [rsp + 0x288]
jne 0x140003bed
mov rcx, rbx
call fcn.1400039b0
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14000a080
add rsp, 0x290
pop rbx
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140003d44
cmp qword [rcx], 0
jne 0x140003d5d
lea rdx, str.mv.c
lea rcx, str.file__file__Path
mov r8d, 0x94f
call fcn.14000a0c4
mov rcx, rbx
call fcn.1400059d0
cmp eax, 0xffffffff
je 0x140003e9d
test al, 1
je 0x140003d94
cmp dword [0x14001e400], 0
jne 0x140003d94
lea rdx, str.Cant_remove_read_only_file__P_without__f_option.
mov r8, rbx
mov ecx, 0x13
add rsp, 0x20
pop rbx
jmp fcn.140003180
test al, 2
je 0x140003dba
cmp dword [0x14001e414], 0
jne 0x140003dba
lea rdx, str.Cant_remove_hidden_file__P_without__H_option.
mov r8, rbx
mov ecx, 0xc
add rsp, 0x20
pop rbx
jmp fcn.140003180
test al, 4
je 0x140003de0
cmp dword [0x14001e418], 0
jne 0x140003de0
lea rdx, str.Cant_remove_system_file__P_without__S_option.
mov r8, rbx
mov ecx, 0xc
add rsp, 0x20
pop rbx
jmp fcn.140003180
test al, 0x10
je 0x140003df6
xor r8d, r8d
mov edx, eax
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140003a30
cmp dword [0x14001e408], 0
je 0x140003e09
mov edx, eax
mov rcx, rbx
call fcn.140003820
cmp dword [0x14001e41c], 0
je 0x140003e58
mov rcx, rbx
call fcn.140003c10
test eax, eax
jne 0x140003e58
mov rcx, qword [rbx]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140003e3c
mov rcx, rbx
call fcn.140003c10
test eax, eax
jne 0x140003e58
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Cant_overwrite__P_before_deleting.
mov r8, rbx
mov ecx, eax
add rsp, 0x20
pop rbx
jmp fcn.140003180
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140003f05
mov rcx, qword [rbx]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140003e88
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140003f05
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov ecx, eax
add rsp, 0x20
pop rbx
jmp 0x140003940
test rbx, rbx
je 0x140003ec8
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140003ec8
cmp word [rax + 2], 0
jne 0x140003ec8
mov edx, 0x10
mov rcx, rbx
lea r8d, [rdx - 0xf]
add rsp, 0x20
pop rbx
jmp 0x140003a30
cmp dword [0x14001e400], 0
jne 0x140003ef6
cmp dword [0x14001e404], 0
jne 0x140003ef6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.File__P_not_found.
mov r8, rbx
mov ecx, eax
add rsp, 0x20
pop rbx
jmp fcn.140003180
lea rcx, str.Attempt_to_remove_non_existent_file__P_ignored.
mov rdx, rbx
call fcn.140006ef0
add rsp, 0x20
pop rbx
ret