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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [0x5a05c4]
mov esi, ecx
mov ecx, str.DeleteFile.NonRecursive
lea ebx, [ebp - 0x2c]
xor eax, ebp
test edx, edx
mov dword [ebp - 0x10], eax
mov eax, str.DeleteFile.Recursive
mov dword [ebp - 0x4c], edx
cmovne ecx, eax
mov eax, edx
xor al, 1
mov dword [ebp - 0x54], ecx
movzx eax, al
lea eax, [eax + eax*2 + 0x14]
mov dword [ebp - 0x50], eax
push 0x165
push str..._.._base_files_file_util_win.cc
push str.DeleteFileAndRecordMetrics
push ebx
call fcn.0043e1b0
add esp, 0x10
lea ecx, [ebp - 0x44]
push 0
push ebx
call fcn.00449640
push 0x12d
push str..._.._base_files_file_util_win.cc
push str.DoDeleteFile
push ebx
call fcn.0043e1b0
add esp, 0x10
lea ecx, [ebp - 0x1c]
push 0
push ebx
call fcn.00449640
movzx ecx, byte [esi + 0xb]
mov eax, dword [esi + 4]
mov edi, 0
mov dword [ebp - 0x48], 0
test cl, cl
mov edx, ecx
cmovs edx, eax
test edx, edx
je 0x45296e
test cl, cl
jns 0x452817
mov edi, 0xa1
cmp eax, 0x103
ja 0x45296e
mov ecx, esi
push ebx
call fcn.0043ae40
movzx eax, byte [ebp - 0x21]
test al, al
jns 0x45282d
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
mov edi, 0xffffffff
test eax, eax
je 0x452863
add eax, eax
mov ecx, ebx
nop word [eax + eax]
movzx edx, word [ecx]
cmp dx, 0x3f
je 0x452859
cmp dx, 0x2a
je 0x452859
add ecx, 2
add eax, 0xfffffffe
jne 0x452840
jmp 0x452863
test eax, eax
je 0x452863
sub ecx, ebx
sar ecx, 1
mov edi, ecx
lea ebx, [ebp - 0x2c]
mov ecx, ebx
call fcn.0043a4c0
cmp edi, 0xffffffff
je 0x4528ac
mov ecx, esi
push ebx
call fcn.0043ae40
lea edi, [ebp - 0x38]
mov ecx, esi
push edi
call fcn.0043ad30
movzx eax, byte [ebp - 0x4c]
mov ecx, edi
mov edx, ebx
push eax
call fcn.004543f0
add esp, 4
lea ecx, [ebp - 0x38]
mov edi, eax
call fcn.0043a4c0
mov ecx, ebx
call fcn.0043a4c0
jmp 0x45296e
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x4528b6
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45295b
mov ebx, eax
test bl, 1
je 0x4528e8
mov eax, ebx
mov ecx, esi
and eax, 0xfffffffe
cmp byte [esi + 0xb], 0
jns 0x4528dc
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x45295b
test bl, 0x10
jne 0x452900
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x4528f7
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x452952
cmp byte [ebp - 0x4c], 0
je 0x452941
mov dword [ebp - 0x24], 0x1000000
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0x2a
lea edx, [ebp - 0x2c]
mov ecx, esi
push 1
call fcn.004543f0
add esp, 4
cmp byte [ebp - 0x21], 0
mov edi, eax
jns 0x45293d
push dword [ebp - 0x2c]
call fcn.005272d6
add esp, 4
test edi, edi
jne 0x45296e
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x45294b
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov edi, 0
jne 0x45296e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor edi, edi
or ecx, 1
cmp ecx, 3
cmovne edi, eax
lea ebx, [ebp - 0x1c]
mov ecx, ebx
call fcn.00449730
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
test edi, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
je 0x4529e0
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x452992
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4529c1
test al, 0x10
mov dword [ebp - 0x48], 7
je 0x4529e0
push esi
call fcn.0043ca10
add esp, 4
movzx eax, al
mov ecx, 6
sub ecx, eax
mov dword [ebp - 0x48], ecx
jmp 0x4529e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 2]
mov dword [ebp - 0x48], 4
cmp ecx, 4
jae 0x4529e0
mov eax, dword [eax*4 + 0x55e580]
mov dword [ebp - 0x48], eax
push 0x20
call fcn.00527256
add esp, 4
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x80000020
mov dword [eax + 0x17], 0x2e657461
mov dword [ebp - 0x28], 0x1b
mov dword [eax + 0x14], 0x6174536e
mov dword [eax + 0x10], 0x6f697461
mov dword [eax + 0xc], 0x7265704f
mov dword [eax + 8], 0x74736f50
mov dword [eax + 4], 0x2e73776f
mov dword [eax], 0x646e6957
mov byte [eax + 0x1b], 0
push esi
push ebx
call fcn.00445660
add esp, 8
push 8
push dword [ebp - 0x48]
push esi
call fcn.00442900
add esp, 0xc
cmp byte [ebp - 0x21], 0
js 0x452ad9
test edi, edi
je 0x452aec
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x18], eax
push 0x20
call fcn.00527256
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x80000020
mov dword [ebp - 0x28], 0x18
mov dword [eax + 0x14], 0x2e726f72
mov dword [eax + 0x10], 0x72456d65
mov dword [eax + 0xc], 0x74737973
mov dword [eax + 8], 0x656c6946
mov dword [eax + 4], 0x2e73776f
mov dword [eax], 0x646e6957
mov byte [eax + 0x18], 0
push esi
push ebx
call fcn.00445660
add esp, 8
push edi
push esi
call fcn.00442990
add esp, 8
cmp byte [ebp - 0x21], 0
jns 0x452ad5
push dword [ebp - 0x2c]
call fcn.005272d6
add esp, 4
xor ebx, ebx
jmp 0x452aee
push dword [ebp - 0x2c]
call fcn.005272d6
add esp, 4
test edi, edi
jne 0x452a5c
mov bl, 1
lea ecx, [ebp - 0x44]
call fcn.00449730
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527311
mov eax, ebx
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret