Function at 0x140039de0
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x110
mov r14d, edx
mov rsi, rcx
mov rax, qword [0x140135388]
xor rax, rsp
mov qword [rsp + 0x108], rax
lea rax, str.DeleteFile.Recursive
lea r15, str.DeleteFile.NonRecursive
test dl, dl
cmovne r15, rax
mov eax, edx
xor al, 1
movzx r12d, al
lea rdx, str.DeleteFileAndRecordMetrics
lea rbp, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0xb8]
mov rcx, rbx
mov r8, rbp
mov r9d, 0x168
call fcn.140036f60
lea rcx, [rsp + 0x28]
xor edi, edi
mov rdx, rbx
xor r8d, r8d
call fcn.14004eca0
lea rdx, str.DoDeleteFile
lea rbx, [rsp + 0x90]
mov rcx, rbx
mov r8, rbp
mov r9d, 0x130
call fcn.140036f60
lea rcx, [rsp + 0xb8]
mov rdx, rbx
xor r8d, r8d
call fcn.14004eca0
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x140039e9d
mov rax, qword [rsi + 8]
test rax, rax
je 0x140039f5c
cmp rax, 0x103
ja 0x14003a16e
mov rcx, rsi
mov rdx, rbx
call fcn.140035d10
movzx eax, byte [rsp + 0xa7]
test al, al
jns 0x140039ed9
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
test rax, rax
je 0x14003a178
lea rbp, [rbx + rax*2]
add rax, rax
xor edi, edi
movzx ecx, word [rbx + rdi]
cmp cx, 0x3f
je 0x14003a05f
cmp cx, 0x2a
je 0x14003a05f
add rdi, 2
cmp rax, rdi
jne 0x140039eeb
mov rdi, rbp
lea rcx, [rsp + 0x90]
call fcn.140034ea0
cmp rdi, rbp
je 0x140039f2e
sub rdi, rbx
cmp rdi, 0xfffffffffffffffe
jne 0x14003a18a
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140039f3a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14003a025
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor edi, edi
cmp ecx, 2
cmovne edi, eax
lea rbx, [r12 + r12*2]
add rbx, 0x14
lea r14, [rsp + 0xb8]
mov rcx, r14
call fcn.14004edc0
xor ebp, ebp
test edi, edi
jne 0x14003a067
lea rax, str.Windows.PostOperationState.
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 0x1b
mov qword [rsp + 0xc8], r15
mov qword [rsp + 0xd0], rbx
lea rdx, [rsp + 0x78]
mov qword [rdx], 2
mov qword [rdx + 8], r14
lea rsi, [rsp + 0x90]
mov rcx, rsi
call fcn.140042350
mov rcx, rsi
mov edx, ebp
mov r8d, 8
call fcn.14004f010
cmp byte [rsi + 0x17], 0
jns 0x140039fec
mov rcx, qword [rsp + 0x90]
call fcn.1400d8b70
mov sil, 1
test edi, edi
jne 0x14003a0a1
lea rcx, [rsp + 0x28]
call fcn.14004edc0
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.1400d8ee0
mov eax, esi
add rsp, 0x110
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov edi, eax
test dil, 1
jne 0x14003a1d2
test dil, 0x10
jne 0x14003a110
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003a047
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 0
test eax, eax
jne 0x140039f5c
jmp 0x140039f49
add rdi, rbx
jmp 0x140039f0f
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003a073
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003a1f6
test al, 0x10
je 0x14003a21e
mov rcx, rsi
call fcn.140042810
movzx eax, al
mov ebp, 6
sub ebp, eax
jmp 0x140039f7e
lea rax, str.Windows.FilesystemError.
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 0x18
mov qword [rsp + 0xc8], r15
mov qword [rsp + 0xd0], rbx
lea rdx, [rsp + 0x78]
mov qword [rdx], 2
mov qword [rdx + 8], r14
lea rsi, [rsp + 0x90]
mov rcx, rsi
call fcn.140042350
mov rcx, rsi
mov edx, edi
call fcn.14004f050
cmp byte [rsi + 0x17], 0
jns 0x14003a109
mov rcx, qword [rsp + 0x90]
call fcn.1400d8b70
xor esi, esi
jmp 0x140039ff7
test r14b, r14b
je 0x14003a157
xorps xmm0, xmm0
lea rbx, [rsp + 0x90]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov byte [rbx + 0x17], 1
mov dword [rbx], 0x2a
mov rcx, rsi
mov rdx, rbx
mov r8b, 1
call fcn.14003acf0
mov edi, eax
cmp byte [rbx + 0x17], 0
js 0x14003a228
test edi, edi
jne 0x140039f5c
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003a163
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14003a04d
mov edi, 0xa1
jmp 0x140039f5c
lea rcx, [rsp + 0x90]
call fcn.140034ea0
jmp 0x140039f2e
lea rbx, [rsp + 0x90]
mov rcx, rsi
mov rdx, rbx
call fcn.140035d10
lea rbp, [rsp + 0x78]
mov rcx, rsi
mov rdx, rbp
call fcn.140035870
mov rcx, rbp
mov rdx, rbx
mov r8d, r14d
call fcn.14003acf0
mov edi, eax
mov rcx, rbp
call fcn.140034ea0
mov rcx, rbx
call fcn.140034ea0
jmp 0x140039f5c
mov edx, edi
and edx, 0xfffffffe
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003a1e3
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14003a031
jmp 0x140039f49
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
mov ebp, 4
cmp eax, 4
jae 0x140039f7e
cdqe
lea rcx, [0x140109bc8]
mov ebp, dword [rcx + rax*4]
jmp 0x140039f7e
mov ebp, 7
jmp 0x140039f7e
mov rcx, qword [rsp + 0x90]
call fcn.1400d8b70
jmp 0x14003a14f