Function at 0x452782
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x4a22d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
cmp dword [edi + 0x28], eax
jne 0x4527ee
call fcn.00409a00
cmp eax, 2
jg 0x4527d7
push 2
push 0x48
push str.c:_b_build_slavewin_build_srcchromeinstallerutil_self_cleaning_temp_dir.cc
lea ecx, [ebp - 0xf0]
inc ebx
call fcn.00409a70
add eax, 8
push str.Attempting_to_Delete_an_uninitialized_SelfCleaningTempDir.
push eax
call fcn.00408be0
pop ecx
pop ecx
test bl, 1
je 0x4527e7
lea ecx, [ebp - 0xf0]
call fcn.00409ac0
xor al, al
jmp 0x452986
push esi
lea esi, [edi + 0x18]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x3c], esi
push eax
mov ecx, esi
call fcn.00405cb0
push 1
push esi
mov byte [ebp - 0x35], bl
call fcn.0040cf40
pop ecx
pop ecx
test al, al
jne 0x45287e
call fcn.00409a00
cmp eax, 1
jg 0x452858
push 2
pop ebx
push 1
push 0x54
push str.c:_b_build_slavewin_build_srcchromeinstallerutil_self_cleaning_temp_dir.cc
lea ecx, [ebp - 0xf0]
call fcn.00409a70
push str.._Scheduling_for_deletion_at_reboot.
push esi
add eax, 8
push str.Failed_to_delete_temporary_directory
push eax
call fcn.00408be0
pop ecx
pop ecx
push eax
call fcn.0042eb9f
pop ecx
pop ecx
push eax
call fcn.00408be0
pop ecx
pop ecx
test bl, 2
je 0x45286b
lea ecx, [ebp - 0xf0]
and ebx, 0xfffffffd
call fcn.00409ac0
push esi
mov byte [ebp - 0x35], 1
call fcn.0044d794
pop ecx
test al, al
je 0x45297a
xor eax, eax
cmp dword [edi + 0x10], eax
je 0x452956
cmp byte [ebp - 0x35], 0
jne 0x452918
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x452922
call fcn.00409a00
cmp eax, 1
jg 0x452901
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
je 0x452901
or ebx, 4
lea esi, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae esi, dword [ebp - 0x1c]
call sub.KERNEL32.dll_GetLastError
push eax
push 1
push 0x61
push str.c:_b_build_slavewin_build_srcchromeinstallerutil_self_cleaning_temp_dir.cc
lea ecx, [ebp - 0xf8]
call fcn.0040a260
push esi
add eax, 0x10
push str.Error_removing_directory
push eax
call fcn.00408be0
pop ecx
pop ecx
push eax
call fcn.0040a340
pop ecx
pop ecx
test bl, 4
je 0x452914
lea ecx, [ebp - 0xf8]
and ebx, 0xfffffffb
call fcn.0040a2c0
mov byte [ebp - 0x35], 1
lea eax, [ebp - 0x1c]
push eax
call fcn.0044dab8
pop ecx
push edi
lea ecx, [ebp - 0x1c]
call fcn.004055c0
test al, al
jne 0x452951
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405cb0
push eax
lea ecx, [ebp - 0x1c]
call fcn.004055a0
lea ecx, [ebp - 0x34]
call fcn.00405570
jmp 0x452889
mov esi, dword [ebp - 0x3c]
xor eax, eax
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], eax
jb 0x452961
mov edi, dword [edi]
xor ecx, ecx
mov word [edi], cx
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], eax
jb 0x452971
mov esi, dword [esi]
xor eax, eax
mov byte [ebp - 0x40], 1
mov word [esi], ax
lea ecx, [ebp - 0x1c]
call fcn.00405570
mov al, byte [ebp - 0x40]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret