Function at 0x41a500
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 dword [esp], ecx
mov eax, dword [0x5c4738]
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 + 0xc], ecx
mov dword [esp + 4], edx
mov eax, edx
xor al, 1
mov byte [esp + 8], al
xor edi, edi
dec edi
lea ebx, [esp + 0x10]
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x30], edi
pcmpeqd xmm0, xmm0
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
mov eax, str..._.._base_files_file_util_win.cc
lea esi, [esp + 0x70]
push 0x17d
push eax
push str.DeleteFileAndRecordMetrics
push esi
call fcn.004c10c0
add esp, 0x10
xor eax, eax
mov ecx, ebx
push eax
xor ebx, ebx
push esi
call fcn.004c7be0
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov edi, dword [esp]
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea esi, [esp + 0x60]
push 0x142
mov eax, str..._.._base_files_file_util_win.cc
push eax
push str.DoDeleteFile
push esi
call fcn.004c10c0
add esp, 0x10
lea ecx, [esp + 0x70]
push ebx
push esi
call fcn.004c7be0
movzx eax, byte [edi + 0xb]
test al, al
jns 0x41a5d6
mov eax, dword [edi + 4]
movzx ebx, byte [esp + 8]
test eax, eax
mov dword [esp + 8], ebx
je 0x41a733
cmp eax, 0x103
ja 0x41a73a
mov ecx, edi
push esi
call fcn.004c95c0
movzx eax, byte [esp + 0x6b]
test al, al
jns 0x41a60b
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
test eax, eax
je 0x41a744
lea ebx, [esi + eax*2]
add eax, eax
mov edi, esi
movzx ecx, word [edi]
cmp cx, 0x3f
je 0x41a633
cmp cx, 0x2a
je 0x41a633
add edi, 2
add eax, 0xfffffffe
jne 0x41a61a
mov edi, ebx
lea ecx, [esp + 0x60]
call fcn.004c5e70
cmp edi, ebx
je 0x41a64b
sub edi, esi
cmp edi, 0xfffffffe
jne 0x41a834
mov esi, dword [esp]
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x41a658
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41a752
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
cmovne esi, eax
mov eax, dword [esp + 8]
lea ebx, [eax + eax*2]
add ebx, 0x14
lea edi, [esp + 0x70]
mov ecx, edi
call fcn.004c7b60
mov dword [esp + 4], 0
mov dword [esp + 8], esi
test esi, esi
jne 0x41a780
lea esi, [esp + 0x60]
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esp + 0x70], str.Windows.PostOperationState.
mov dword [esp + 0x74], 0x1b
mov eax, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov dword [esp], ebx
mov dword [esp + 0x7c], ebx
push edi
push 2
push esi
call fcn.004c5d30
add esp, 0xc
push 8
push dword [esp + 8]
push esi
call fcn.0041a940
add esp, 0xc
cmp byte [esi + 0xb], 0
mov ebx, edi
jns 0x41a701
push dword [esp + 0x60]
call fcn.004cf0d6
add esp, 4
mov edi, dword [esp + 8]
test edi, edi
jne 0x41a7cd
test edi, edi
sete bl
lea ecx, [esp + 0x10]
call fcn.004c7b60
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.004d25a3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x41a67b
mov esi, 0xa1
jmp 0x41a67b
lea ecx, [esp + 0x60]
call fcn.004c5e70
jmp 0x41a64b
mov ebx, eax
test bl, 1
jne 0x41a876
test bl, 0x10
jne 0x41a89e
mov eax, dword [esp]
cmp byte [eax + 0xb], 0
jns 0x41a774
mov eax, dword [esp]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41a8ba
mov eax, dword [esp]
cmp byte [eax + 0xb], 0
jns 0x41a78e
mov eax, dword [esp]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a8cc
mov dword [esp + 4], 7
test al, 0x10
mov eax, dword [esp]
je 0x41a6a4
push eax
call fcn.0051a1c0
add esp, 4
movzx eax, al
mov ecx, 6
sub ecx, eax
mov dword [esp + 4], ecx
jmp 0x41a6a4
xor eax, eax
dec eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], str.Windows.FilesystemError.
mov dword [esp + 0x74], 0x18
mov eax, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov eax, dword [esp]
mov dword [esp + 0x7c], eax
push ebx
push 2
push esi
call fcn.004c5d30
add esp, 0xc
push edi
push esi
call fcn.00500b60
add esp, 8
cmp byte [esp + 0x6b], 0
jns 0x41a824
push dword [esp + 0x60]
call fcn.004cf0d6
add esp, 4
mov edi, dword [esp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41a70d
mov esi, dword [esp]
mov ecx, esi
lea edi, [esp + 0x60]
push edi
call fcn.004c95c0
lea ebx, [esp + 0x54]
mov ecx, esi
push ebx
call fcn.0040ed40
movzx eax, byte [esp + 4]
mov ecx, ebx
mov edx, edi
push eax
call fcn.0051f980
add esp, 4
mov esi, eax
mov ecx, ebx
call fcn.004c5e70
mov ecx, edi
call fcn.004c5e70
jmp 0x41a67b
mov eax, ebx
and eax, 0xfffffffe
mov ecx, dword [esp]
cmp byte [ecx + 0xb], 0
jns 0x41a889
mov ecx, dword [esp]
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x41a75d
jmp 0x41a668
cmp byte [esp + 4], 0
jne 0x41a8f6
mov eax, dword [esp]
cmp byte [eax + 0xb], 0
jns 0x41a8b3
mov eax, dword [esp]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, 0
test eax, eax
jne 0x41a67b
jmp 0x41a668
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 2]
mov dword [esp + 4], 4
cmp ecx, 4
jae 0x41a6a4
mov eax, dword [eax*4 + 0x57e1d0]
mov dword [esp + 4], eax
jmp 0x41a6a4
xor eax, eax
lea ebx, [esp + 0x60]
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
mov byte [ebx + 0xb], 1
mov dword [ebx], 0x2a
mov ecx, dword [esp]
mov edx, ebx
push 1
call fcn.0051f980
add esp, 4
mov esi, eax
cmp byte [ebx + 0xb], 0
jns 0x41a92f
push dword [esp + 0x60]
call fcn.004cf0d6
add esp, 4
test esi, esi
jne 0x41a67b
jmp 0x41a8a5