Function at 0x14003e7a0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
movaps xmmword [rsp + 0x110], xmm6
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0x108], rax
lea rax, str.DeleteFile.Recursive
lea r12, str.DeleteFile.NonRecursive
test dl, dl
cmovne r12, rax
mov eax, edx
xor al, 1
movzx r13d, al
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
lea rdx, str.DeleteFileAndRecordMetrics
lea rbp, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8, rbp
mov r9d, 0x168
call fcn.14002c260
lea rcx, [rsp + 0x20]
xor r15d, r15d
mov rdx, rdi
xor r8d, r8d
call fcn.14003a130
movaps xmmword [rsp + 0xf0], xmm6
movaps xmmword [rsp + 0xe0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
lea rdx, str.DoDeleteFile
lea rdi, [rsp + 0x90]
mov rcx, rdi
mov r8, rbp
mov r9d, 0x130
call fcn.14002c260
lea rcx, [rsp + 0xb0]
mov rdx, rdi
xor r8d, r8d
call fcn.14003a130
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 0x14003e5bd
cmp rcx, 0x104
jb 0x14003e3fa
mov ebp, 0xa1
and al, 1
jne 0x14003e5bd
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.14002a2f0
movzx eax, byte [rsp + 0x90]
test al, 1
je 0x14003e428
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
jmp 0x14003e433
shr rax, 1
lea rcx, [rsp + 0x92]
mov rdi, 0xffffffffffffffff
test rax, rax
je 0x14003e476
add rax, rax
xor edx, edx
nop word cs:[rax + rax]
nop
movzx ebp, word [rcx + rdx]
cmp bp, 0x3f
je 0x14003e46b
cmp bp, 0x2a
je 0x14003e46b
add rdx, 2
cmp rax, rdx
jne 0x14003e450
jmp 0x14003e476
cmp rax, rdx
je 0x14003e476
sar rdx, 1
mov rdi, rdx
lea rcx, [rsp + 0x90]
call fcn.1400295c0
cmp rdi, 0xffffffffffffffff
je 0x14003e4d1
lea r14, [rsp + 0x90]
mov rcx, rsi
mov rdx, r14
call fcn.14002a2f0
lea rdi, [rsp + 0x78]
mov rcx, rsi
mov rdx, rdi
call fcn.14002a160
mov rcx, rdi
mov rdx, r14
mov r8d, ebx
call fcn.14003f360
mov ebp, eax
mov rcx, rdi
call fcn.1400295c0
mov rcx, r14
call fcn.1400295c0
jmp 0x14003e5bd
lea r14, [rsi + 2]
test byte [rsi], 1
mov rcx, r14
je 0x14003e4e1
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003e5aa
mov ebp, eax
test bpl, 1
je 0x14003e517
mov edx, ebp
and edx, 0xfffffffe
test byte [rsi], 1
mov rcx, r14
je 0x14003e509
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14003e5aa
test bpl, 0x10
jne 0x14003e531
test byte [rsi], 1
je 0x14003e526
mov r14, qword [rsi + 0x10]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14003e5a1
test bl, bl
je 0x14003e58f
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], 0
mov byte [rsp + 0x90], 2
mov dword [rsp + 0x92], 0x2a
lea rdx, [rsp + 0x90]
mov rcx, rsi
mov r8b, 1
call fcn.14003f360
mov ebp, eax
test byte [rsp + 0x90], 1
je 0x14003e58b
mov rcx, qword [rsp + 0xa0]
call fcn.14012d304
test ebp, ebp
jne 0x14003e5bd
test byte [rsi], 1
je 0x14003e598
mov r14, qword [rsi + 0x10]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x14003e5bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
lea rdi, [r13*2 + 0x14]
add rdi, r13
lea r14, [rsp + 0xb0]
mov rcx, r14
call fcn.14003a270
test ebp, ebp
je 0x14003e637
test byte [rsi], 1
je 0x14003e5e7
mov rcx, qword [rsi + 0x10]
jmp 0x14003e5eb
lea rcx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003e616
mov r15d, 7
test al, 0x10
je 0x14003e637
mov rcx, rsi
call fcn.14002b2f0
movzx eax, al
mov r15d, 6
sub r15d, eax
jmp 0x14003e637
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
mov r15d, 4
cmp eax, 4
jae 0x14003e637
cdqe
lea rcx, [0x140166c78]
mov r15d, dword [rcx + rax*4]
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rbx
movaps xmmword [rsp + 0x90], xmm6
lea rax, str.Windows.PostOperationState.
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], 0x1b
mov qword [rsp + 0xc0], r12
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0x78], 2
mov qword [rsp + 0x80], r14
lea rsi, [rsp + 0x90]
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.140035050
mov rcx, rsi
mov edx, r15d
mov r8d, 8
call fcn.140031ab0
test byte [rsp + 0x90], 1
je 0x14003e6ca
mov rcx, qword [rsp + 0xa0]
call fcn.14012d304
test ebp, ebp
je 0x14003e758
mov qword [rsp + 0xa0], rbx
movaps xmmword [rsp + 0x90], xmm6
lea rax, str.Windows.FilesystemError.
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], 0x18
mov qword [rsp + 0xc0], r12
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0x78], 2
mov qword [rsp + 0x80], r14
lea rsi, [rsp + 0x90]
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.140035050
mov rcx, rsi
mov edx, ebp
call fcn.140031b30
test byte [rsp + 0x90], 1
je 0x14003e754
mov rcx, qword [rsp + 0xa0]
call fcn.14012d304
xor esi, esi
jmp 0x14003e75b
mov sil, 1
lea rcx, [rsp + 0x20]
call fcn.14003a270
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.14012d670
mov eax, esi
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x14003e2c0