Function at 0x40fa06
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453c81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
and dword [ebp - 0x10], 0
push dword [ebp + 8]
call fcn.0040f559
pop ecx
test eax, eax
je 0x40fa3c
mov al, 1
jmp 0x4103ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 2
jb 0x40fac1
cmp dword [ebp - 0x30], 3
jbe 0x40fa5f
cmp dword [ebp - 0x30], 5
je 0x40fa66
jmp 0x40fac1
mov al, 1
jmp 0x4103ac
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x40fac1
mov ecx, dword [ebp + 8]
call fcn.00406b07
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
and eax, 1
je 0x40faa3
mov eax, dword [ebp - 0x28]
and eax, 0xfffffffe
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
call fcn.00406b07
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
push 0x64
call dword [sym.imp.KERNEL32.dll_SleepEx]
push dword [ebp + 8]
call fcn.0040f559
pop ecx
test eax, eax
je 0x40fac1
mov al, 1
jmp 0x4103ac
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x4102af
lea ecx, [ebp - 0x24]
call fcn.0040661b
and dword [ebp - 4], 0
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1ac]
push eax
call fcn.004156b2
add esp, 0xc
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x98]
lea ecx, [ebp - 0x24]
call fcn.0040676c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1ac]
call fcn.004066e8
lea ecx, [ebp - 0x3c]
call fcn.0040661b
mov byte [ebp - 4], 2
push str..del
lea eax, [ebp - 0x1be]
push eax
push 0
lea eax, [ebp - 0x176]
push eax
call fcn.00415050
pop ecx
pop ecx
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 3
push dword [ebp - 0xa8]
lea eax, [ebp - 0x164]
push eax
push 0x4580a8
lea eax, [ebp - 0x1f4]
push eax
lea ecx, [ebp - 0x24]
call fcn.00406c9e
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x64]
call fcn.00406b8d
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x6c]
call fcn.00406c9e
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 6
push dword [ebp - 0x74]
lea ecx, [ebp - 0x3c]
call fcn.0040676c
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1be]
call fcn.004066e8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x164]
call fcn.004066e8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1f4]
call fcn.004066e8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x176]
call fcn.004066e8
mov byte [ebp - 0x11], 0
push str.Marcotte
lea ecx, [ebp - 0x125]
call fcn.0040650c
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x24]
call fcn.00406b07
push eax
push str.FilesToDelete.dat
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x125]
push eax
push 1
lea eax, [ebp - 0x188]
push eax
call fcn.00415d47
add esp, 0xc
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x7c]
call fcn.00406c9e
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x84]
call fcn.00406b07
push eax
call fcn.0043f94f
pop ecx
pop ecx
test eax, eax
jne 0x40fca5
mov dword [ebp - 0x48], 1
jmp 0x40fca9
and dword [ebp - 0x48], 0
mov al, byte [ebp - 0x48]
mov byte [ebp - 0x16], al
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1d0]
call fcn.004066e8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x188]
call fcn.004066e8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x125]
call fcn.004066e8
movzx eax, byte [ebp - 0x16]
test eax, eax
je 0x40fce8
mov byte [ebp - 0x11], 1
push 0
push 0
push str.._.del
lea ecx, [ebp - 0x24]
call fcn.00406b07
push eax
call fcn.00407c7b
add esp, 0x10
test eax, eax
jne 0x40fd5a
push 3
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004103ed
add esp, 0xc
test eax, eax
je 0x40fd5a
lea eax, [ebp - 0x3c]
push eax
call fcn.0040f559
pop ecx
test eax, eax
je 0x40fd4e
mov byte [ebp - 0x15], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004066e8
mov al, byte [ebp - 0x15]
jmp 0x4103ac
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040676c
push 0
push str.._Will_delete_at_next_reboot.
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x19a]
push eax
push 0x458554
lea eax, [ebp - 0x1e2]
push eax
push 0
push 0
push dword [ebp - 0x2c]
lea eax, [ebp - 0x206]
push eax
call fcn.00407857
add esp, 0x10
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 0xa
push dword [ebp - 0x8c]
push str.Cant_delete_file__le
lea eax, [ebp - 0x149]
push eax
call fcn.00406b1f
add esp, 0xc
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x94]
call fcn.00406c9e
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x9c]
call fcn.00406b8d
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0xa4]
call fcn.00406c9e
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0xac]
call fcn.00406b07
push eax
push 0x458578
push 0x961
push str.D:projectsutil_srcgdir.cpp
call fcn.00405060
add esp, 0x14
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x218]
call fcn.004066e8
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x19a]
call fcn.004066e8
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1e2]
call fcn.004066e8
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x149]
call fcn.004066e8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x206]
call fcn.004066e8
push 0
lea ecx, [ebp - 0x137]
call fcn.0040650c
mov byte [ebp - 4], 0xf
push 4
lea eax, [ebp - 0x137]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004103ed
add esp, 0xc
test eax, eax
jne 0x40fedf
mov dword [ebp - 0x44], 1
jmp 0x40fee3
and dword [ebp - 0x44], 0
mov al, byte [ebp - 0x44]
mov byte [ebp - 0x12], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x137]
call fcn.004066e8
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x410058
push str.._Cant_delete_at_next_reboot_Need_to_be_admin_.
lea eax, [ebp - 0x152]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x15b]
push eax
push 0x458554
lea eax, [ebp - 0x16d]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x191]
push eax
call fcn.00407857
add esp, 0x10
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0xe8], eax
mov byte [ebp - 4], 0x10
push dword [ebp - 0xe8]
push str.Cant_delete_file__le
lea eax, [ebp - 0x17f]
push eax
call fcn.00406b1f
add esp, 0xc
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x110], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x110]
call fcn.00406c9e
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0xf0]
call fcn.00406b8d
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x108]
call fcn.00406c9e
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xf8], eax
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0xf8]
call fcn.00406b07
push eax
push 0x458578
push 0x963
push str.D:projectsutil_srcgdir.cpp
call fcn.00405613
add esp, 0x10
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x152]
call fcn.004066e8
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x15b]
call fcn.004066e8
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x16d]
call fcn.004066e8
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x17f]
call fcn.004066e8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x191]
call fcn.004066e8
lea ecx, [ebp - 0x54]
call fcn.0040d36e
mov byte [ebp - 4], 0x15
push str.Marcotte
lea ecx, [ebp - 0x12e]
call fcn.0040650c
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x12e]
push eax
push 1
lea eax, [ebp - 0x1a3]
push eax
call fcn.00415d47
add esp, 0xc
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 0x17
push dword [ebp - 0x118]
call fcn.0040f704
pop ecx
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x1a3]
call fcn.004066e8
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x12e]
call fcn.004066e8
movzx eax, byte [ebp - 0x11]
test eax, eax
jne 0x410183
push str.Marcotte
lea ecx, [ebp - 0x140]
call fcn.0040650c
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 1
push str.FilesToDelete.dat
lea eax, [ebp - 0x1b5]
push eax
lea eax, [ebp - 0x140]
push eax
push 1
lea eax, [ebp - 0x1c7]
push eax
call fcn.00415d47
add esp, 0xc
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x100], eax
mov dword [ebp - 4], 0x19
mov eax, dword [ebp - 0x10]
or eax, 2
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x100]
call fcn.00406c9e
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 4], 0x1a
mov eax, dword [ebp - 0x10]
or eax, 4
mov dword [ebp - 0x10], eax
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x54]
call fcn.0040e68d
test eax, eax
je 0x410183
mov dword [ebp - 0x40], 1
jmp 0x410187
and dword [ebp - 0x40], 0
mov al, byte [ebp - 0x40]
mov byte [ebp - 0x14], al
mov dword [ebp - 4], 0x19
mov eax, dword [ebp - 0x10]
and eax, 4
je 0x4101ab
and dword [ebp - 0x10], 0xfffffffb
lea ecx, [ebp - 0x1b5]
call fcn.004066e8
mov dword [ebp - 4], 0x18
mov eax, dword [ebp - 0x10]
and eax, 2
je 0x4101c9
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x1c7]
call fcn.004066e8
mov dword [ebp - 4], 0x15
mov eax, dword [ebp - 0x10]
and eax, 1
je 0x4101e7
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x140]
call fcn.004066e8
movzx eax, byte [ebp - 0x14]
test eax, eax
je 0x410215
push 0
lea ecx, [ebp - 0x54]
call fcn.0040df25
lea ecx, [ebp - 0x24]
call fcn.00406b07
push eax
push 0x45646c
lea eax, [ebp - 0x54]
push eax
call fcn.00421b00
add esp, 0xc
jmp 0x41027a
lea ecx, [ebp - 0x24]
call fcn.00406b07
push eax
push str.Cant_delete_file__s
lea eax, [ebp - 0x1d9]
push eax
call fcn.004077a2
add esp, 0xc
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0xc4]
call fcn.00406b07
push eax
push 0x458578
push 0x96d
push str.D:projectsutil_srcgdir.cpp
call fcn.00405307
add esp, 0x10
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x1d9]
call fcn.004066e8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.0040d4ce
mov byte [ebp - 0x13], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004066e8
mov al, byte [ebp - 0x13]
jmp 0x4103ac
push dword [ebp + 8]
lea eax, [ebp - 0x1eb]
push eax
push 0x458554
lea eax, [ebp - 0x1fd]
push eax
push 0
push 0
push dword [ebp - 0x2c]
lea eax, [ebp - 0x221]
push eax
call fcn.00407857
add esp, 0x10
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 0x1c
push dword [ebp - 0x60]
push str.Cant_delete_file__le
lea eax, [ebp - 0x20f]
push eax
call fcn.00406b1f
add esp, 0xc
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 0x1d
mov ecx, dword [ebp - 0x70]
call fcn.00406c9e
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebp - 0x80]
call fcn.00406b8d
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 0x1f
mov ecx, dword [ebp - 0x90]
call fcn.00406b07
push eax
push 0x458578
push 0x973
push str.D:projectsutil_srcgdir.cpp
call fcn.00405307
add esp, 0x10
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x1eb]
call fcn.004066e8
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x1fd]
call fcn.004066e8
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x20f]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x221]
call fcn.004066e8
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret