Function at 0x140065574
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x1400d33c0]
xor rax, rsp
mov qword [rbp + 0x360], rax
xor edi, edi
mov rbx, rcx
mov dword [rsp + 0x30], edi
call fcn.140064eb0
test al, al
jne 0x140065615
call fcn.1400096a0
cmp eax, 2
jg 0x1400655fe
mov edi, 1
lea rdx, str.c:_b_build_slavewin64_build_srcchromeinstallerutildelete_after_reboot_helper.cc
lea rcx, [rsp + 0x38]
lea r9d, [rdi + 1]
lea r8d, [rdi + 0x62]
call fcn.1400097c0
lea rdx, str.Unsafe_directory_name_for_deletion:
lea rcx, [rax + 8]
call fcn.140008810
cmp qword [rbx + 0x18], 8
jb 0x1400655f3
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14000a0a0
test dil, 1
je 0x14006560e
lea rcx, [rsp + 0x38]
call fcn.140009830
xor al, al
jmp 0x1400658dd
cmp qword [rbx + 0x18], 8
jb 0x140065621
mov rcx, qword [rbx]
jmp 0x140065624
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400656ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400658db
call fcn.1400096a0
cmp eax, 2
jg 0x140065693
mov edi, 2
call sub.KERNEL32.dll_GetLastError
lea r8d, [rdi + 0x6b]
lea rdx, str.c:_b_build_slavewin64_build_srcchromeinstallerutildelete_after_reboot_helper.cc
lea rcx, [rsp + 0x38]
mov r9d, edi
mov dword [rsp + 0x20], eax
call fcn.140009f90
lea rdx, str.Could_not_GetFileAttributes_for
lea rcx, [rax + 0x10]
call fcn.140008810
cmp qword [rbx + 0x18], 8
jb 0x140065688
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14000a0a0
test dil, 2
je 0x14006560e
lea rcx, [rsp + 0x38]
call fcn.14000a010
jmp 0x14006560e
test al, 0x10
jne 0x140065706
call fcn.1400096a0
cmp eax, 2
jg 0x1400656fd
mov edi, 4
lea rdx, str.c:_b_build_slavewin64_build_srcchromeinstallerutildelete_after_reboot_helper.cc
lea rcx, [rsp + 0x38]
lea r9d, [rdi - 2]
lea r8d, [rdi + 0x6f]
call fcn.1400097c0
lea rdx, str.Scheduled_directory_is_not_a_directory:
lea rcx, [rax + 8]
call fcn.140008810
cmp qword [rbx + 0x18], 8
jb 0x1400656f2
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14000a0a0
test dil, 4
jmp 0x140065602
lea rcx, [rbp + 0x90]
mov r9d, 1
xor r8d, r8d
mov rdx, rbx
call fcn.140020900
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x90]
call fcn.140020cf0
jmp 0x140065762
lea rcx, [rbp + 0x48]
call fcn.14006595c
test al, al
je 0x1400657aa
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x90]
call fcn.140020cf0
lea rcx, [rbp + 0x48]
mov rdx, rax
call fcn.1400045d0
lea rcx, [rbp + 0x68]
call fcn.1400045a0
cmp qword [rbp + 0x58], rdi
jne 0x140065730
lea rcx, [rbp + 0x48]
call fcn.1400045a0
lea rcx, [rbp + 0x90]
call fcn.140020ad0
lea rcx, [rbp + 0x90]
mov r9d, 2
xor r8d, r8d
mov rdx, rbx
call fcn.140020900
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x90]
call fcn.140020cf0
jmp 0x140065857
call fcn.1400096a0
cmp eax, 2
jg 0x1400657f7
mov edi, 8
lea rdx, str.c:_b_build_slavewin64_build_srcchromeinstallerutildelete_after_reboot_helper.cc
lea rcx, [rsp + 0x38]
lea r9d, [rdi - 6]
lea r8d, [rdi + 0x79]
call fcn.1400097c0
lea rdx, str.Failed_to_schedule_file_for_deletion:
lea rcx, [rax + 8]
call fcn.140008810
cmp qword [rbp + 0x60], rdi
lea rdx, [rbp + 0x48]
cmovae rdx, qword [rbp + 0x48]
mov rcx, rax
call fcn.14000a0a0
test dil, 8
je 0x140065807
lea rcx, [rsp + 0x38]
call fcn.140009830
lea rcx, [rbp + 0x48]
call fcn.1400045a0
lea rcx, [rbp + 0x90]
call fcn.140020ad0
jmp 0x14006560e
lea rcx, [rbp + 0x48]
call fcn.140065574
test al, al
je 0x140065901
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x90]
call fcn.140020cf0
lea rcx, [rbp + 0x48]
mov rdx, rax
call fcn.1400045d0
lea rcx, [rbp + 0x68]
call fcn.1400045a0
cmp qword [rbp + 0x58], rdi
jne 0x140065821
lea rcx, [rbp + 0x48]
call fcn.1400045a0
lea rcx, [rbp + 0x90]
call fcn.140020ad0
mov rcx, rbx
call fcn.14006595c
test al, al
jne 0x1400658db
call fcn.1400096a0
cmp eax, 2
jg 0x1400658cb
mov edi, 0x20
lea rdx, str.c:_b_build_slavewin64_build_srcchromeinstallerutildelete_after_reboot_helper.cc
lea rcx, [rsp + 0x38]
lea r9d, [rdi - 0x1e]
lea r8d, [rdi + 0x79]
call fcn.1400097c0
lea rdx, str.Failed_to_schedule_directory_for_deletion:
lea rcx, [rax + 8]
call fcn.140008810
cmp qword [rbx + 0x18], 8
jb 0x1400658c0
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14000a0a0
test dil, 0x20
je 0x1400658db
lea rcx, [rsp + 0x38]
call fcn.140009830
mov al, 1
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140091a70
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1400096a0
cmp eax, 2
jg 0x140065951
mov edi, 0x10
lea rdx, str.c:_b_build_slavewin64_build_srcchromeinstallerutildelete_after_reboot_helper.cc
lea rcx, [rsp + 0x38]
lea r9d, [rdi - 0xe]
mov r8d, 0x90
call fcn.1400097c0
lea rdx, str.Failed_to_schedule_subdirectory_for_deletion:
lea rcx, [rax + 8]
call fcn.140008810
cmp qword [rbp + 0x60], 8
lea rdx, [rbp + 0x48]
cmovae rdx, qword [rbp + 0x48]
mov rcx, rax
call fcn.14000a0a0
test dil, 0x10
jmp 0x1400657fb