Function at 0x411c60
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, 0x150
mov eax, dword [0x4f002c]
mov esi, dword [ebp + 8]
mov ebx, str.DeleteFile.NonRecursive
lea ecx, [esp + 0x10]
xor eax, ebp
cmp byte [ebp + 0xc], 0
mov dword [esp + 0x148], eax
mov eax, str.DeleteFile.Recursive
cmovne ebx, eax
push 0
call fcn.0041f330
lea ecx, [esp + 0x1c]
push 0
call fcn.0041f330
mov eax, dword [esi + 0x10]
mov edi, 0
mov dword [esp + 8], 0
test eax, eax
je 0x411edc
mov edi, 0xa1
cmp eax, 0x103
ja 0x411edc
mov ecx, dword [ebp + 8]
mov dword [esp + 4], ebx
lea ebx, [esp + 0x28]
push ebx
call fcn.00410a50
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x3c], 7
jbe 0x411cef
mov ebx, dword [esp + 0x28]
test eax, eax
je 0x411dad
xorps xmm0, xmm0
test eax, eax
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x130], xmm0
movaps xmmword [esp + 0x120], xmm0
movaps xmmword [esp + 0x110], xmm0
movaps xmmword [esp + 0x100], xmm0
movaps xmmword [esp + 0xf0], xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xd0], xmm0
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
mov byte [esp + 0x6a], 1
mov byte [esp + 0x7f], 1
jle 0x411dad
lea eax, [ebx + eax*2]
mov edi, ebx
nop word cs:[eax + eax]
nop dword [eax + eax]
movzx ecx, word [edi]
cmp ecx, 0xff
ja 0x411da6
cmp byte [esp + ecx + 0x40], 0
jne 0x4120c0
add edi, 2
cmp edi, eax
jb 0x411d90
lea ecx, [esp + 0x28]
call fcn.0040fa30
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 7
jbe 0x411dc4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411e19
mov ebx, eax
test bl, 1
je 0x411df6
mov ecx, dword [ebp + 8]
mov eax, ebx
and eax, 0xfffffffe
cmp dword [ecx + 0x14], 7
jbe 0x411dea
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x411e19
test bl, 0x10
jne 0x411e35
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 4]
cmp dword [eax + 0x14], 7
jbe 0x411e0d
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x411ec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor edi, edi
or ecx, 1
cmp ecx, 3
cmovne edi, eax
mov ebx, dword [esp + 4]
jmp 0x411edc
cmp byte [ebp + 0xc], 0
mov ebx, dword [esp + 4]
je 0x411eab
mov ecx, dword [ebp + 8]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 1
mov dword [esp + 0x40], 0x2a
lea edx, [esp + 0x40]
push 1
call fcn.00412d40
add esp, 4
mov ecx, dword [esp + 0x54]
mov edi, eax
cmp ecx, 8
jb 0x411ea7
mov eax, dword [esp + 0x40]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x411e9d
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x412115
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.0048bd31
add esp, 8
test edi, edi
jne 0x411edc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 7
jbe 0x411eb9
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov edi, 0
jne 0x411edc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor edi, edi
or ecx, 1
cmp ecx, 3
cmovne edi, eax
mov al, byte [ebp + 0xc]
lea ecx, [esp + 0x1c]
xor al, 1
movzx eax, al
lea esi, [eax + eax*2 + 0x14]
call fcn.0041f3e0
test edi, edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x2c], esi
je 0x411f63
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 7
jbe 0x411f0f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411f42
test al, 0x10
mov dword [esp + 8], 7
je 0x411f63
push dword [ebp + 8]
call fcn.0041f590
add esp, 4
movzx eax, al
mov ecx, 6
sub ecx, eax
mov dword [esp + 8], ecx
jmp 0x411f63
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 2]
mov dword [esp + 8], 4
cmp ecx, 4
jae 0x411f63
mov eax, dword [eax*4 + 0x4cd350]
mov dword [esp + 8], eax
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
sub esp, 0xc
mov al, byte [esp + 0x28]
lea esi, [esp + 0x4c]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 8], str.Windows.PostOperationState.
mov dword [esp], 0x1b
call fcn.004016b4
lea eax, [esp + 0x28]
push esi
push eax
call fcn.0041e4a0
add esp, 8
push 8
push dword [esp + 0xc]
push esi
call fcn.00420740
add esp, 0xc
mov eax, dword [esp + 0x54]
cmp eax, 0x10
jb 0x411ffc
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ebx
lea ebx, [eax + 1]
cmp ebx, 0x1000
jb 0x411fee
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x412115
add eax, 0x24
mov ecx, edx
mov ebx, eax
push ebx
push ecx
call fcn.0048bd31
add esp, 8
mov ebx, dword [esp + 4]
test edi, edi
je 0x41209d
mov ecx, dword [esp + 0xc]
mov eax, 0xf
mov dword [esp + 0x28], ebx
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], eax
mov byte [esp + 0x40], 0
mov dword [esp + 0x2c], ecx
sub esp, 0xc
mov al, byte [esp + 0x28]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 8], str.Windows.FilesystemError.
mov dword [esp], 0x18
call fcn.004016b4
push esi
lea eax, [esp + 0x2c]
push eax
call fcn.0041e4a0
add esp, 8
push edi
push esi
call fcn.00420770
add esp, 8
mov eax, dword [esp + 0x54]
cmp eax, 0x10
jb 0x412099
mov ecx, dword [esp + 0x40]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x41208f
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x412115
add eax, 0x24
mov ecx, edx
mov esi, eax
push esi
push ecx
call fcn.0048bd31
add esp, 8
xor ebx, ebx
jmp 0x41209f
mov bl, 1
lea ecx, [esp + 0x10]
call fcn.0041f3e0
mov ecx, dword [esp + 0x148]
xor ecx, ebp
call fcn.0048bd44
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
sub edi, ebx
lea ebx, [esp + 0x28]
mov ecx, ebx
call fcn.0040fa30
cmp edi, 0xfffffffe
je 0x411db6
mov esi, dword [ebp + 8]
lea edi, [esp + 0x40]
mov ecx, esi
push edi
call fcn.00410a50
mov ecx, esi
push ebx
call fcn.00410570
movzx eax, byte [ebp + 0xc]
mov ecx, ebx
mov edx, edi
mov esi, edi
push eax
call fcn.00412d40
add esp, 4
mov ecx, ebx
mov edi, eax
call fcn.0040fa30
mov ecx, esi
call fcn.0040fa30
jmp 0x411e2c
call fcn.004b5789
int3