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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov esi, ecx
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [esp + 0xa8], eax
mov eax, str.DeleteFile.Recursive
mov ecx, str.DeleteFile.NonRecursive
test edx, edx
cmovne ecx, eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, edx
xor al, 1
movzx eax, al
mov dword [esp + 0xc], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
lea edi, [esp + 0x70]
push 0x168
push str..._.._base_files_file_util_win.cc
push str.DeleteFileAndRecordMetrics
push edi
call fcn.004994e0
add esp, 0x10
lea ecx, [esp + 0x10]
push 0
push edi
call fcn.004ab280
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
mov dword [esp + 0xa4], 0xffffffff
mov dword [esp + 0xa0], 0xffffffff
lea ebx, [esp + 0x60]
push 0x130
push str..._.._base_files_file_util_win.cc
push str.DoDeleteFile
push ebx
call fcn.004994e0
add esp, 0x10
lea ecx, [esp + 0x70]
push 0
push ebx
call fcn.004ab280
movzx ecx, byte [esi + 0xb]
test cl, cl
mov eax, dword [esi + 4]
mov edx, ecx
cmovs edx, eax
mov dword [esp], 0
mov edi, 0
test edx, edx
je 0x4b4d47
test cl, cl
jns 0x4b4bdf
mov edi, 0xa1
cmp eax, 0x103
ja 0x4b4d47
mov ecx, esi
push ebx
call fcn.004961c0
movzx eax, byte [esp + 0x6b]
test al, al
jns 0x4b4bf8
mov eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
mov edi, 0xffffffff
test eax, eax
je 0x4b4c31
add eax, eax
xor ecx, ecx
nop word cs:[eax + eax]
nop
movzx edx, word [ebx + ecx]
cmp dx, 0x3f
je 0x4b4c29
cmp dx, 0x2a
je 0x4b4c29
add ecx, 2
cmp eax, ecx
jne 0x4b4c10
jmp 0x4b4c31
cmp eax, ecx
je 0x4b4c31
sar ecx, 1
mov edi, ecx
lea ebx, [esp + 0x60]
mov ecx, ebx
call fcn.00495790
cmp edi, 0xffffffff
je 0x4b4c7e
mov ecx, esi
push ebx
call fcn.004961c0
lea edi, [esp + 0x54]
mov ecx, esi
push edi
call fcn.00496060
movzx eax, byte [esp + 4]
mov ecx, edi
mov edx, ebx
push eax
call fcn.004b6ca0
add esp, 4
mov edi, eax
lea ecx, [esp + 0x54]
call fcn.00495790
mov ecx, ebx
call fcn.00495790
jmp 0x4b4d47
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x4b4c88
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b4d34
mov ebx, eax
test bl, 1
je 0x4b4cba
mov eax, ebx
and eax, 0xfffffffe
cmp byte [esi + 0xb], 0
mov ecx, esi
jns 0x4b4cae
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4b4d34
test bl, 0x10
jne 0x4b4cd2
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x4b4cc9
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4b4d2b
cmp byte [esp + 4], 0
je 0x4b4d1a
mov dword [esp + 0x68], 0x1000000
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0x2a
lea edx, [esp + 0x60]
mov ecx, esi
push 1
call fcn.004b6ca0
add esp, 4
mov edi, eax
cmp byte [esp + 0x6b], 0
jns 0x4b4d16
push dword [esp + 0x60]
call fcn.006417be
add esp, 4
test edi, edi
jne 0x4b4d47
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x4b4d24
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, 0
test eax, eax
jne 0x4b4d47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor edi, edi
cmp ecx, 2
cmovne edi, eax
mov eax, dword [esp + 0xc]
lea ebx, [eax + eax*2]
add ebx, 0x14
lea ecx, [esp + 0x70]
call fcn.004ab2f0
test edi, edi
je 0x4b4db6
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x4b4d68
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b4d97
mov dword [esp], 7
test al, 0x10
je 0x4b4db6
push esi
call fcn.00498050
add esp, 4
movzx eax, al
mov ecx, 6
sub ecx, eax
mov dword [esp], ecx
jmp 0x4b4db6
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 2]
mov dword [esp], 4
cmp ecx, 4
jae 0x4b4db6
mov eax, dword [eax*4 + 0x68a184]
mov dword [esp], eax
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x70], str.Windows.PostOperationState.
mov dword [esp + 0x74], 0x1b
mov eax, dword [esp + 8]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ebx
lea esi, [esp + 0x60]
lea eax, [esp + 0x70]
push eax
push 2
push esi
call fcn.004a2e10
add esp, 0xc
push 8
push dword [esp + 4]
push esi
call fcn.0049e500
add esp, 0xc
cmp byte [esp + 0x6b], 0
jns 0x4b4e20
push dword [esp + 0x60]
call fcn.006417be
add esp, 4
test edi, edi
je 0x4b4e85
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x70], str.Windows.FilesystemError.
mov dword [esp + 0x74], 0x18
mov eax, dword [esp + 8]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ebx
lea eax, [esp + 0x70]
push eax
push 2
push esi
call fcn.004a2e10
add esp, 0xc
push edi
push esi
call fcn.0049e5a0
add esp, 8
cmp byte [esp + 0x6b], 0
jns 0x4b4e85
push dword [esp + 0x60]
call fcn.006417be
add esp, 4
test edi, edi
sete bl
lea ecx, [esp + 0x10]
call fcn.004ab2f0
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret