Function at 0x464883
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x4f5470]
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 0x4648ef
call fcn.0040a000
cmp eax, 2
jg 0x4648d8
push 2
push 0x48
push str.d:webapps_b_build_slave_repo_build_srcchromeinstallerutil_self_cleaning_temp_dir.cc
lea ecx, [ebp - 0xf0]
inc ebx
call fcn.0040a070
add eax, 8
push str.Attempting_to_Delete_an_uninitialized_SelfCleaningTempDir.
push eax
call fcn.00408da0
pop ecx
pop ecx
test bl, 1
je 0x4648e8
lea ecx, [ebp - 0xf0]
call fcn.0040a0c0
xor al, al
jmp 0x464a87
push esi
lea esi, [edi + 0x18]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x3c], esi
push eax
mov ecx, esi
call fcn.00405c20
push 1
push esi
mov byte [ebp - 0x35], bl
call fcn.0040d070
pop ecx
pop ecx
test al, al
jne 0x46497f
call fcn.0040a000
cmp eax, 1
jg 0x464959
push 2
pop ebx
push 1
push 0x54
push str.d:webapps_b_build_slave_repo_build_srcchromeinstallerutil_self_cleaning_temp_dir.cc
lea ecx, [ebp - 0xf0]
call fcn.0040a070
push str.._Scheduling_for_deletion_at_reboot.
push esi
add eax, 8
push str.Failed_to_delete_temporary_directory
push eax
call fcn.00408da0
pop ecx
pop ecx
push eax
call fcn.004051b0
pop ecx
pop ecx
push eax
call fcn.00408da0
pop ecx
pop ecx
test bl, 2
je 0x46496c
lea ecx, [ebp - 0xf0]
and ebx, 0xfffffffd
call fcn.0040a0c0
push esi
mov byte [ebp - 0x35], 1
call fcn.0045d6bc
pop ecx
test al, al
je 0x464a7b
xor eax, eax
cmp dword [edi + 0x10], eax
je 0x464a57
cmp byte [ebp - 0x35], 0
jne 0x464a19
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 0x464a23
call fcn.0040a000
cmp eax, 1
jg 0x464a02
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
je 0x464a02
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.d:webapps_b_build_slave_repo_build_srcchromeinstallerutil_self_cleaning_temp_dir.cc
lea ecx, [ebp - 0xf8]
call fcn.0040a860
push esi
add eax, 0x10
push str.Error_removing_directory
push eax
call fcn.00408da0
pop ecx
pop ecx
push eax
call fcn.0040a940
pop ecx
pop ecx
test bl, 4
je 0x464a15
lea ecx, [ebp - 0xf8]
and ebx, 0xfffffffb
call fcn.0040a8c0
mov byte [ebp - 0x35], 1
lea eax, [ebp - 0x1c]
push eax
call fcn.0045d9e0
pop ecx
push edi
lea ecx, [ebp - 0x1c]
call fcn.00405660
test al, al
jne 0x464a52
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405c20
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405640
lea ecx, [ebp - 0x34]
call fcn.00405610
jmp 0x46498a
mov esi, dword [ebp - 0x3c]
xor eax, eax
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], eax
jb 0x464a62
mov edi, dword [edi]
xor ecx, ecx
mov word [edi], cx
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], eax
jb 0x464a72
mov esi, dword [esi]
xor eax, eax
mov byte [ebp - 0x40], 1
mov word [esi], ax
lea ecx, [ebp - 0x1c]
call fcn.00405610
mov al, byte [ebp - 0x40]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004a7e44
mov esp, ebp
pop ebp
ret