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

Disassembly:
push 0xffffffffffffffff
push 0x42de18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x30]
call fcn.0041c224
xor ebx, ebx
push 0xffffffffffffffff
push 0xa
lea ecx, [esp + 0x38]
mov dword [esp + 0x270], ebx
call fcn.0041c2b7
mov eax, dword [0x43ab24]
lea edi, [esi + 0xa04]
mov dword [esp + 0x14], eax
add esi, 0x9bc
lea ecx, [esp + 0x20]
push esi
mov byte [esp + 0x26c], 1
mov dword [esp + 0x30], esi
call fcn.0041e2a3
push 0x43a488
push edi
mov byte [esp + 0x270], 2
call fcn.0040e0e0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4062ef
mov esi, ebp
lea ecx, [esp + 0x15c]
sub esi, edi
push esi
push edi
push ecx
call fcn.0040daa0
add esp, 0xc
lea edx, [esp + 0x15c]
lea ecx, [esp + 0x14]
mov byte [esp + esi + 0x15c], 0
push edx
call fcn.0041e66b
mov edi, 0x43a488
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x20]
add ecx, ebp
push eax
mov edi, ecx
lea ecx, [esp + 0x14]
call fcn.0041e2a3
lea ecx, [esp + 0x1c]
push 4
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x270], 3
call fcn.0041b77b
mov edx, dword [esp + 0x1c]
push str._d_:
push edx
mov byte [esp + 0x270], 4
call fcn.0040ded2
add esp, 8
test eax, eax
jne 0x406229
lea eax, [esp + 0x24]
push 4
push eax
lea ecx, [esp + 0x1c]
call fcn.0041b646
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x26c], 5
call fcn.0041e8fa
lea ecx, [esp + 0x24]
mov byte [esp + 0x268], 4
call fcn.0041e52e
lea ecx, [esp + 0x10]
push ecx
push ebx
lea ecx, [esp + 0x38]
call fcn.0041c42c
inc ebx
jmp 0x4062b1
mov edx, dword [esp + 0x1c]
push str._f_:
push edx
call fcn.0040ded2
add esp, 8
test eax, eax
jne 0x406276
lea eax, [esp + 0x28]
push 4
push eax
lea ecx, [esp + 0x1c]
call fcn.0041b646
push eax
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x270], 6
call fcn.0041c42c
lea ecx, [esp + 0x28]
mov byte [esp + 0x268], 4
call fcn.0041e52e
inc ebx
jmp 0x4062b1
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041e8fa
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4062b1
test al, 1
je 0x4062a6
and al, 0xfe
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x43a488
push edi
call fcn.0040e0e0
add esp, 8
lea ecx, [esp + 0x1c]
mov ebp, eax
mov byte [esp + 0x268], 3
call fcn.0041e52e
lea ecx, [esp + 0x10]
mov byte [esp + 0x268], 2
call fcn.0041e52e
test ebp, ebp
jne 0x40615b
mov esi, dword [esp + 0x2c]
push esi
lea ecx, [esp + 0x1c]
call fcn.0041e2a3
push str.setupf.cfn
lea ecx, [esp + 0x1c]
mov byte [esp + 0x26c], 7
call fcn.0041e8be
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x44]
push edx
push eax
call fcn.00421b19
test eax, eax
je 0x40634a
mov al, byte [esp + 0x54]
test al, 1
je 0x40633f
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x44]
and al, 0xfe
push ecx
push edx
mov byte [esp + 0x5c], al
call fcn.00421c7e
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebx, ebx
je 0x40639a
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
dec ebx
lea ecx, [esp + 0x10]
push ebx
push ecx
lea ecx, [esp + 0x38]
call fcn.00401720
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40638d
test al, 1
je 0x406386
and al, 0xfe
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x10]
push ecx
call esi
lea ecx, [esp + 0x10]
call fcn.0041e52e
test ebx, ebx
jne 0x406354
lea ecx, [esp + 0x18]
mov byte [esp + 0x268], 2
call fcn.0041e52e
lea ecx, [esp + 0x20]
mov byte [esp + 0x268], 1
call fcn.0041e52e
lea ecx, [esp + 0x14]
mov byte [esp + 0x268], 0
call fcn.0041e52e
lea ecx, [esp + 0x30]
mov dword [esp + 0x268], 0xffffffff
call fcn.0041c257
mov ecx, dword [esp + 0x260]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x25c
ret