Function at 0x14006c744
Capabilities:
Delete directory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0xa8]
sub rsp, 0x190
mov rax, qword [0x1400d33c0]
xor rax, rsp
mov qword [rbp + 0x88], rax
xor edi, edi
mov r12, rcx
mov esi, edi
mov dword [rsp + 0x30], edi
cmp qword [rcx + 0x30], rdi
jne 0x14006c7d5
call fcn.1400096a0
cmp eax, 2
jg 0x14006c7be
lea r9d, [rdi + 2]
lea r8d, [rdi + 0x48]
lea rdx, str.c:_b_build_slavewin64_build_srcchromeinstallerutil_self_cleaning_temp_dir.cc
lea rcx, [rsp + 0x38]
lea esi, [rdi + 1]
call fcn.1400097c0
lea rdx, str.Attempting_to_Delete_an_uninitialized_SelfCleaningTempDir.
lea rcx, [rax + 8]
call fcn.140008810
test sil, 1
je 0x14006c7ce
lea rcx, [rsp + 0x38]
call fcn.140009830
xor al, al
jmp 0x14006c99f
lea r14, [rcx + 0x20]
lea rdx, [rbp + 0x48]
mov rcx, r14
call fcn.1400052d0
mov dl, 1
mov rcx, r14
mov bl, dil
call fcn.14000d1e0
test al, al
jne 0x14006c87d
call fcn.1400096a0
cmp eax, 1
jg 0x14006c858
mov esi, 2
lea rdx, str.c:_b_build_slavewin64_build_srcchromeinstallerutil_self_cleaning_temp_dir.cc
lea rcx, [rsp + 0x38]
lea r9d, [rsi - 1]
lea r8d, [rsi + 0x52]
call fcn.1400097c0
lea rdx, str.Failed_to_delete_temporary_directory
lea rcx, [rax + 8]
call fcn.140008810
cmp qword [r14 + 0x18], 8
jb 0x14006c83e
mov rdx, qword [r14]
jmp 0x14006c841
mov rdx, r14
mov rcx, rax
call fcn.14000a0a0
lea rdx, str.._Scheduling_for_deletion_at_reboot.
mov rcx, rax
call fcn.140008810
test sil, 2
je 0x14006c86b
lea rcx, [rsp + 0x38]
and esi, 0xfffffffd
call fcn.140009830
mov rcx, r14
mov bl, 1
call fcn.140065574
test al, al
je 0x14006c993
cmp qword [r12 + 0x10], rdi
je 0x14006c968
test bl, bl
jne 0x14006c928
cmp qword [rbp + 0x60], 8
lea rcx, [rbp + 0x48]
cmovae rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14006c931
call fcn.1400096a0
cmp eax, 1
jg 0x14006c913
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
je 0x14006c913
or esi, 4
cmp qword [rbp + 0x60], 8
lea rbx, [rbp + 0x48]
cmovae rbx, qword [rbp + 0x48]
call sub.KERNEL32.dll_GetLastError
mov r9d, 1
lea rdx, str.c:_b_build_slavewin64_build_srcchromeinstallerutil_self_cleaning_temp_dir.cc
lea rcx, [rsp + 0x38]
lea r8d, [r9 + 0x60]
mov dword [rsp + 0x20], eax
call fcn.140009f90
lea rdx, str.Error_removing_directory
lea rcx, [rax + 0x10]
call fcn.140008810
mov rdx, rbx
mov rcx, rax
call fcn.14000a0a0
test sil, 4
je 0x14006c926
lea rcx, [rsp + 0x38]
and esi, 0xfffffffb
call fcn.14000a010
mov bl, 1
lea rcx, [rbp + 0x48]
call fcn.14006595c
lea rcx, [rbp + 0x48]
mov rdx, r12
call fcn.140004600
test al, al
jne 0x14006c968
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x48]
call fcn.1400052d0
lea rcx, [rbp + 0x48]
mov rdx, rax
call fcn.1400045d0
lea rcx, [rbp + 0x68]
call fcn.1400045a0
jmp 0x14006c888
cmp qword [r12 + 0x18], 8
mov qword [r12 + 0x10], rdi
jb 0x14006c979
mov r12, qword [r12]
mov word [r12], di
cmp qword [r14 + 0x18], 8
mov qword [r14 + 0x10], rdi
jb 0x14006c98c
mov r14, qword [r14]
mov word [r14], di
mov dil, 1
lea rcx, [rbp + 0x48]
call fcn.1400045a0
mov al, dil
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.140091a70
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret