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

Disassembly:
jmp 0x1400fa7e0
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x14019e638]
xor rax, rsp
mov qword [rsp + 0x190], rax
lea rbx, [rcx + 2]
test byte [rcx], 1
mov rcx, rbx
je 0x1400fa810
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400fa84a
and eax, 0x410
cmp eax, 0x410
jne 0x1400fa84a
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1401207e0
mov rcx, rsi
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
jmp 0x1400fa94b
test byte [rsi], 1
mov rcx, rbx
je 0x1400fa856
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
jne 0x1400fa92d
mov ecx, 2
call fcn.1400302f0
test al, al
je 0x1400fa92b
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x94
mov r9d, 2
call fcn.140030be0
lea rcx, [rsp + 0x60]
lea rdx, str.DeleteFile
mov r8d, 0xb
call fcn.140001c63
movzx edx, byte [rsi]
mov rcx, rdx
shr rcx, 1
mov bpl, 1
test dl, bpl
cmovne rbx, qword [rsi + 0x10]
mov rdi, rax
lea rdx, [rsp + 0x28]
mov qword [rdx], rbx
cmovne rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.14003af00
movzx r8d, byte [rsi]
test r8b, bpl
je 0x1400fa900
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
jmp 0x1400fa908
shr r8, 1
lea rdx, [rsp + 0x39]
mov rcx, rdi
call fcn.140001c63
test byte [rsp + 0x38], bpl
je 0x1400fa921
mov rcx, qword [rsp + 0x48]
call fcn.1401203c4
lea rcx, [rsp + 0x50]
call fcn.140030cb0
xor edi, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1401207e0
mov eax, edi
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
ret
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x14019e638]
xor rax, rsp
mov qword [rsp + 0x190], rax
lea rbx, [rcx + 2]
test byte [rcx], 1
mov rcx, rbx
je 0x1400fa97b
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dil, 1
test eax, eax
jne 0x1400faa52
mov ecx, 2
call fcn.1400302f0
test al, al
je 0x1400faa50
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x2f
mov r9d, 2
call fcn.140030be0
lea rcx, [rsp + 0x60]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.140001c63
movzx edx, byte [rsi]
mov rcx, rdx
shr rcx, 1
mov bpl, 1
test dl, bpl
cmovne rbx, qword [rsi + 0x10]
mov rdi, rax
lea rdx, [rsp + 0x28]
mov qword [rdx], rbx
cmovne rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.14003af00
movzx r8d, byte [rsi]
test r8b, bpl
je 0x1400faa25
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
jmp 0x1400faa2d
shr r8, 1
lea rdx, [rsp + 0x39]
mov rcx, rdi
call fcn.140001c63
test byte [rsp + 0x38], bpl
je 0x1400faa46
mov rcx, qword [rsp + 0x48]
call fcn.1401203c4
lea rcx, [rsp + 0x50]
call fcn.140030cb0
xor edi, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1401207e0
mov eax, edi
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
ret