Function at 0x411380
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.0050b300
add esp, 0x10
xor eax, eax
mov ecx, ebx
push eax
push eax
call fcn.00522210
mov dword [esp + 0x60], 0xa
mov al, byte [0x649456]
test al, al
jne 0x41160a
movsx ecx, byte [esi + 0xb]
test ecx, ecx
mov eax, dword [esi + 4]
mov edx, ecx
cmovs edx, eax
test edx, edx
je 0x4114c0
test cl, cl
sets cl
cmp eax, 0x104
setae al
test cl, al
jne 0x41157e
mov dword [esp + 8], esi
mov ecx, esi
push edi
call fcn.00526f00
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 0x411585
lea edi, [esi + ebx*2]
add ebx, ebx
mov edx, esi
movzx eax, word [edx]
cmp eax, 0x2a
je 0x411467
cmp eax, 0x3f
je 0x411467
add edx, 2
add ebx, 0xfffffffe
jne 0x411450
mov edx, edi
cmp edx, edi
sete al
sub edx, esi
cmp edx, 0xfffffffe
sete bl
or bl, al
test cl, cl
jns 0x411486
push dword [esp + 0x10]
call fcn.00562bc0
add esp, 4
test bl, bl
mov esi, dword [esp + 8]
lea edi, [esp + 0x20]
je 0x4115a2
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x4114a0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4114f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x4115ef
lea ecx, [esp + 0x30]
call fcn.00540b60
mov bl, 1
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00565ea5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [esi + 0xb], 0
jns 0x4114e8
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4114c0
jmp 0x4114ac
mov ebx, eax
test bl, 1
jne 0x411638
test bl, 0x10
je 0x4114e0
cmp byte [esp + 0xc], 0
je 0x41156a
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 0x411607
lea ebx, [esp + 0x20]
mov dword [ebx], 0x2a
mov ecx, esi
mov edx, ebx
push 1
call fcn.00411680
add esp, 4
mov edi, eax
cmp byte [ebx + 0xb], 0
js 0x411666
test edi, edi
je 0x41156a
lea ecx, [esp + 0x30]
call fcn.00540b60
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x4114cb
cmp byte [esi + 0xb], 0
jns 0x411572
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4114ef
mov edi, 0xa1
jmp 0x411553
test cl, cl
jns 0x411595
push dword [esp + 0x10]
call fcn.00562bc0
add esp, 4
mov esi, dword [esp + 8]
lea edi, [esp + 0x20]
jmp 0x411496
mov ecx, esi
push edi
call fcn.00526f00
lea ebx, [esp + 0x14]
mov ecx, esi
push ebx
call fcn.00541ae0
movzx eax, byte [esp + 0xc]
mov ecx, ebx
mov edx, edi
push eax
call fcn.00411680
add esp, 4
mov edi, eax
cmp byte [ebx + 0xb], 0
jns 0x4115dc
push dword [esp + 0x14]
call fcn.00562bc0
add esp, 4
cmp byte [esp + 0x2b], 0
jns 0x4115ef
push dword [esp + 0x20]
call fcn.00562bc0
add esp, 4
lea ecx, [esp + 0x30]
call fcn.00540b60
mov bl, 1
test edi, edi
je 0x4114cb
jmp 0x41155c
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.005b5b90
add esp, 8
jmp 0x4113ef
mov eax, ebx
and eax, 0xfffffffe
cmp byte [esi + 0xb], 0
jns 0x411649
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 0x411500
jmp 0x4114ac
push dword [esp + 0x20]
call fcn.00562bc0
add esp, 4
jmp 0x41154f