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

Disassembly:
jmp 0x1400460c0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov r13d, edx
mov rsi, rcx
mov rax, qword [0x14019e638]
xor rax, rsp
lea rcx, str.DeleteFile.Recursive
lea r12, str.DeleteFile.NonRecursive
test dl, dl
cmovne r12, rcx
mov qword [rsp + 0xb8], rax
mov eax, edx
xor al, 1
movzx eax, al
lea rax, [rax + rax*2]
add rax, 0x14
mov qword [rsp + 0x28], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], rbx
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x50], xmm6
lea rdx, str.DeleteFileAndRecordMetrics
lea rbp, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x80]
mov rcx, rdi
mov r8, rbp
mov r9d, 0x165
call fcn.14002f5d0
lea rcx, [rsp + 0x50]
xor r15d, r15d
mov rdx, rdi
xor r8d, r8d
call fcn.14003b4e0
mov qword [rsp + 0xb0], rbx
movaps xmmword [rsp + 0xa0], xmm6
lea rdx, str.DoDeleteFile
lea rdi, [rsp + 0x80]
mov rcx, rdi
mov r8, rbp
mov r9d, 0x12d
call fcn.14002f5d0
lea rcx, [rsp + 0xa0]
mov rdx, rdi
xor r8d, r8d
call fcn.14003b4e0
movzx eax, byte [rsi]
mov rdx, rax
shr rdx, 1
test al, 1
mov rcx, qword [rsi + 8]
cmovne rdx, rcx
mov ebp, 0
test rdx, rdx
je 0x1400463ae
cmp rcx, 0x104
jb 0x1400461ea
mov ebp, 0xa1
and al, 1
jne 0x1400463ae
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.14002d570
movzx eax, byte [rsp + 0x80]
test al, 1
je 0x140046218
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
jmp 0x140046223
shr rax, 1
lea rcx, [rsp + 0x82]
mov rdi, 0xffffffffffffffff
test rax, rax
je 0x140046266
add rax, rax
xor edx, edx
nop word cs:[rax + rax]
nop
movzx ebp, word [rcx + rdx]
cmp bp, 0x3f
je 0x14004625b
cmp bp, 0x2a
je 0x14004625b
add rdx, 2
cmp rax, rdx
jne 0x140046240
jmp 0x140046266
cmp rax, rdx
je 0x140046266
sar rdx, 1
mov rdi, rdx
lea rcx, [rsp + 0x80]
call fcn.14002c850
cmp rdi, 0xffffffffffffffff
je 0x1400462c1
lea r14, [rsp + 0x80]
mov rcx, rsi
mov rdx, r14
call fcn.14002d570
lea rdi, [rsp + 0x68]
mov rcx, rsi
mov rdx, rdi
call fcn.14002d3f0
mov rcx, rdi
mov rdx, r14
mov r8d, r13d
call fcn.140047c40
mov ebp, eax
mov rcx, rdi
call fcn.14002c850
mov rcx, r14
call fcn.14002c850
jmp 0x1400463ae
lea r14, [rsi + 2]
test byte [rsi], 1
mov rcx, r14
je 0x1400462d1
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004639b
mov ebp, eax
test bpl, 1
je 0x140046307
mov edx, ebp
and edx, 0xfffffffe
test byte [rsi], 1
mov rcx, r14
je 0x1400462f9
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14004639b
test bpl, 0x10
jne 0x140046321
test byte [rsi], 1
je 0x140046316
mov r14, qword [rsi + 0x10]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140046392
test r13b, r13b
je 0x140046380
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
mov byte [rsp + 0x80], 2
mov dword [rsp + 0x82], 0x2a
lea rdx, [rsp + 0x80]
mov rcx, rsi
mov r8b, 1
call fcn.140047c40
mov ebp, eax
test byte [rsp + 0x80], 1
je 0x14004637c
mov rcx, qword [rsp + 0x90]
call fcn.1401203c4
test ebp, ebp
jne 0x1400463ae
test byte [rsi], 1
je 0x140046389
mov r14, qword [rsi + 0x10]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x1400463ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
or ecx, 1
xor ebp, ebp
cmp ecx, 3
cmovne ebp, eax
lea rcx, [rsp + 0xa0]
call fcn.14003b620
mov qword [rsp + 0x40], r12
mov rdi, qword [rsp + 0x28]
mov qword [rsp + 0x48], rdi
test ebp, ebp
je 0x140046429
test byte [rsi], 1
je 0x1400463d9
mov rcx, qword [rsi + 0x10]
jmp 0x1400463dd
lea rcx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140046408
mov r15d, 7
test al, 0x10
je 0x140046429
mov rcx, rsi
call fcn.14002e8b0
movzx eax, al
mov r15d, 6
sub r15d, eax
jmp 0x140046429
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
mov r15d, 4
cmp eax, 4
jae 0x140046429
cdqe
lea rcx, [0x140159e68]
mov r15d, dword [rcx + rax*4]
mov ecx, 0x20
call fcn.140120368
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x1401543a0]
movaps xmmword [rsp + 0x80], xmm0
movups xmm0, xmmword [0x140159e1b]
movups xmmword [rax + 0xb], xmm0
movups xmm0, xmmword [str.Windows.PostOperationState.]
movups xmmword [rax], xmm0
mov byte [rax + 0x1b], 0
lea rcx, [rsp + 0x40]
lea rsi, [rsp + 0x80]
mov rdx, rsi
call fcn.140037690
mov rcx, rsi
mov edx, r15d
mov r8d, 8
call fcn.1400345d0
test byte [rsp + 0x80], 1
je 0x1400464a0
mov rcx, qword [rsp + 0x90]
call fcn.1401203c4
test ebp, ebp
je 0x140046529
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], rdi
mov ecx, 0x20
call fcn.140120368
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x140157e90]
movaps xmmword [rsp + 0x80], xmm0
movabs rcx, 0x2e726f7272456d65
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [str.Windows.FilesystemError.]
movups xmmword [rax], xmm0
mov byte [rax + 0x18], 0
lea rcx, [rsp + 0x30]
lea rsi, [rsp + 0x80]
mov rdx, rsi
call fcn.140037690
mov rcx, rsi
mov edx, ebp
call fcn.140034650
test byte [rsp + 0x80], 1
je 0x140046525
mov rcx, qword [rsp + 0x90]
call fcn.1401203c4
xor esi, esi
jmp 0x14004652c
mov sil, 1
lea rcx, [rsp + 0x50]
call fcn.14003b620
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1401207e0
mov eax, esi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret