Function at 0x410ed0
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 [0x644040]
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.0050b5e0
add esp, 0x10
xor eax, eax
mov ecx, ebx
push eax
push eax
call fcn.005224f0
mov dword [esp + 0x60], 0xa
mov al, byte [0x649456]
test al, al
jne 0x41115a
movsx ecx, byte [esi + 0xb]
test ecx, ecx
mov eax, dword [esi + 4]
mov edx, ecx
cmovs edx, eax
test edx, edx
je 0x411010
test cl, cl
sets cl
cmp eax, 0x104
setae al
test cl, al
jne 0x4110ce
mov dword [esp + 8], esi
mov ecx, esi
push edi
call fcn.005271e0
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 0x4110d5
lea edi, [esi + ebx*2]
add ebx, ebx
mov edx, esi
movzx eax, word [edx]
cmp eax, 0x2a
je 0x410fb7
cmp eax, 0x3f
je 0x410fb7
add edx, 2
add ebx, 0xfffffffe
jne 0x410fa0
mov edx, edi
cmp edx, edi
sete al
sub edx, esi
cmp edx, 0xfffffffe
sete bl
or bl, al
test cl, cl
jns 0x410fd6
push dword [esp + 0x10]
call fcn.00562f60
add esp, 4
test bl, bl
mov esi, dword [esp + 8]
lea edi, [esp + 0x20]
je 0x4110f2
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x410ff0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x411045
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x41113f
lea ecx, [esp + 0x30]
call fcn.005403a0
mov bl, 1
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00566245
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [esi + 0xb], 0
jns 0x411038
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x411010
jmp 0x410ffc
mov ebx, eax
test bl, 1
jne 0x411188
test bl, 0x10
je 0x411030
cmp byte [esp + 0xc], 0
je 0x4110ba
lea eax, [esp + 0x22]
mov byte [eax + 9], 1
mov ecx, 0x62e4be
cmp edi, ecx
seta dl
cmp eax, ecx
setbe al
or al, dl
je 0x411157
lea ebx, [esp + 0x20]
mov dword [ebx], 0x2a
mov ecx, esi
mov edx, ebx
push 1
call fcn.004111d0
add esp, 4
mov edi, eax
cmp byte [ebx + 0xb], 0
js 0x4111b6
test edi, edi
je 0x4110ba
lea ecx, [esp + 0x30]
call fcn.005403a0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x41101b
cmp byte [esi + 0xb], 0
jns 0x4110c2
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x41103f
mov edi, 0xa1
jmp 0x4110a3
test cl, cl
jns 0x4110e5
push dword [esp + 0x10]
call fcn.00562f60
add esp, 4
mov esi, dword [esp + 8]
lea edi, [esp + 0x20]
jmp 0x410fe6
mov ecx, esi
push edi
call fcn.005271e0
lea ebx, [esp + 0x14]
mov ecx, esi
push ebx
call fcn.00541320
movzx eax, byte [esp + 0xc]
mov ecx, ebx
mov edx, edi
push eax
call fcn.004111d0
add esp, 4
mov edi, eax
cmp byte [ebx + 0xb], 0
jns 0x41112c
push dword [esp + 0x14]
call fcn.00562f60
add esp, 4
cmp byte [esp + 0x2b], 0
jns 0x41113f
push dword [esp + 0x20]
call fcn.00562f60
add esp, 4
lea ecx, [esp + 0x30]
call fcn.005403a0
mov bl, 1
test edi, edi
je 0x41101b
jmp 0x4110ac
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.005b5f10
add esp, 8
jmp 0x410f3f
mov eax, ebx
and eax, 0xfffffffe
cmp byte [esi + 0xb], 0
jns 0x411199
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 0x411050
jmp 0x410ffc
push dword [esp + 0x20]
call fcn.00562f60
add esp, 4
jmp 0x41109f