Function at 0x410470
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 0xc], edx
mov esi, ecx
mov eax, dword [0x646040]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x30]
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea edi, [esp + 0x20]
push 0x11e
push str.file_util_win.cc
push str.DoDeleteFile
push edi
call fcn.00509c60
add esp, 0x10
xor eax, eax
mov ecx, ebx
push eax
push eax
call fcn.00520c00
mov dword [esp + 0x60], 0xa
mov al, byte [0x64b456]
test al, al
jne 0x4106fa
movsx ecx, byte [esi + 0xb]
test ecx, ecx
mov eax, dword [esi + 4]
mov edx, ecx
cmovs edx, eax
test edx, edx
je 0x4105b0
test cl, cl
sets cl
cmp eax, 0x104
setae al
test cl, al
jne 0x41066e
mov dword [esp + 8], esi
mov ecx, esi
push edi
call fcn.0052a290
movsx ecx, byte [esp + 0x2b]
test ecx, ecx
mov ebx, ecx
cmovs ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov esi, edi
mov dword [esp + 0x10], eax
cmovs esi, eax
test ebx, ebx
je 0x410675
lea edi, [esi + ebx*2]
add ebx, ebx
mov edx, esi
movzx eax, word [edx]
cmp eax, 0x2a
je 0x410557
cmp eax, 0x3f
je 0x410557
add edx, 2
add ebx, 0xfffffffe
jne 0x410540
mov edx, edi
cmp edx, edi
sete al
sub edx, esi
cmp edx, 0xfffffffe
sete bl
or bl, al
test cl, cl
jns 0x410576
push dword [esp + 0x10]
call fcn.00564050
add esp, 4
test bl, bl
mov esi, dword [esp + 8]
lea edi, [esp + 0x20]
je 0x410692
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x410590
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4105e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x4106df
lea ecx, [esp + 0x30]
call fcn.00540880
mov bl, 1
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00567335
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [esi + 0xb], 0
jns 0x4105d8
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4105b0
jmp 0x41059c
mov ebx, eax
test bl, 1
jne 0x410728
test bl, 0x10
je 0x4105d0
cmp byte [esp + 0xc], 0
je 0x41065a
lea eax, [esp + 0x22]
mov byte [eax + 9], 1
mov ecx, 0x6304be
cmp edi, ecx
seta dl
cmp eax, ecx
setbe al
or al, dl
je 0x4106f7
lea ebx, [esp + 0x20]
mov dword [ebx], 0x2a
mov ecx, esi
mov edx, ebx
push 1
call fcn.00410770
add esp, 4
mov edi, eax
cmp byte [ebx + 0xb], 0
js 0x410756
test edi, edi
je 0x41065a
lea ecx, [esp + 0x30]
call fcn.00540880
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x4105bb
cmp byte [esi + 0xb], 0
jns 0x410662
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4105df
mov edi, 0xa1
jmp 0x410643
test cl, cl
jns 0x410685
push dword [esp + 0x10]
call fcn.00564050
add esp, 4
mov esi, dword [esp + 8]
lea edi, [esp + 0x20]
jmp 0x410586
mov ecx, esi
push edi
call fcn.0052a290
lea ebx, [esp + 0x14]
mov ecx, esi
push ebx
call fcn.00544580
movzx eax, byte [esp + 0xc]
mov ecx, ebx
mov edx, edi
push eax
call fcn.00410770
add esp, 4
mov edi, eax
cmp byte [ebx + 0xb], 0
jns 0x4106cc
push dword [esp + 0x14]
call fcn.00564050
add esp, 4
cmp byte [esp + 0x2b], 0
jns 0x4106df
push dword [esp + 0x20]
call fcn.00564050
add esp, 4
lea ecx, [esp + 0x30]
call fcn.00540880
mov bl, 1
test edi, edi
jne 0x41064c
jmp 0x4105bb
int3
movzx ecx, al
lea eax, [esp + 0x14]
mov dword [eax], edi
mov ebx, edi
mov edi, esi
lea esi, [esp + 0x64]
mov dword [esi], str.ScopedBlockingCall
lea edx, [esp + 0x60]
push eax
push esi
mov esi, edi
mov edi, ebx
call fcn.005b7340
add esp, 8
jmp 0x4104df
mov eax, ebx
and eax, 0xfffffffe
cmp byte [esi + 0xb], 0
jns 0x410739
mov ecx, dword [esp + 8]
mov esi, dword [ecx]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
mov esi, dword [esp + 8]
lea edi, [esp + 0x20]
jne 0x4105f0
jmp 0x41059c
push dword [esp + 0x20]
call fcn.00564050
add esp, 4
jmp 0x41063f