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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d7bc
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x5fc150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x274], ebx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x60fafc
mov dword [ebp - 0x270], edi
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x290], 0x60fafc
call fcn.005168d0
add esp, 4
test eax, eax
je 0x41c74f
push eax
call fcn.00516a24
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push 0
push eax
push 0x104
push esi
mov byte [ebp - 0x249], 0
mov dword [ebp - 0x26c], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.0054422d
add esp, 8
test eax, eax
je 0x41c7a4
push 0x104
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c7e8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
je 0x41c7e8
mov ecx, eax
and ecx, 6
setne byte [ebp - 0x249]
test ecx, ecx
je 0x41c7e8
and eax, 0xfffffff9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [edi + 0x34]
lea ecx, [ebp - 0x28c]
lea esi, [eax - 4]
neg esi
sbb esi, esi
and esi, eax
call fcn.005013c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28c]
push esi
call fcn.00501c50
mov eax, dword [edi + 0x38]
lea ecx, [ebp - 0x28c]
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x218]
push 0x588fe4
push eax
call fcn.00501a90
test eax, eax
je 0x41c9cd
push dword [edi + 0x10]
mov ecx, dword [ebx + 4]
push 0
push 0x936
call fcn.0040d9f0
mov ecx, dword [ebx + 4]
push 0
push 0
push 0x7d6
call fcn.0040d9f0
mov ecx, dword [ebx + 4]
mov esi, eax
push 0
push 0
push 0x9d8
mov dword [ebp - 0x264], esi
call fcn.0040d9f0
cmp dword [ebp - 0x254], 0xffffffff
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x250], 0
jne 0x41c8a4
push esi
push eax
lea ecx, [ebp - 0x28c]
call fcn.00501ab0
mov dword [ebp - 0x250], eax
jmp 0x41c971
call fcn.0040b9e0
mov ecx, eax
mov dword [ebp - 0x260], ecx
test esi, esi
jle 0x41c973
mov edi, dword [ebp - 0x264]
xor ebx, ebx
mov esi, edi
sub esi, ebx
cmp esi, 0x20004
jle 0x41c8d2
mov esi, 0x20004
lea eax, [ebp - 0x258]
mov dword [ebp - 0x25c], 0
push eax
lea eax, [ebp - 0x250]
mov dword [ebp - 0x258], 0
push eax
mov eax, dword [ebp - 0x268]
push esi
push 0xfde9
add eax, ebx
mov dword [ebp - 0x250], 0
push eax
call fcn.00424360
lea ecx, [ebp - 0x25c]
push ecx
push dword [ebp - 0x250]
mov ecx, dword [ebp - 0x260]
push dword [ebp - 0x254]
push eax
call fcn.00427d90
push dword [ebp - 0x25c]
sub esi, dword [ebp - 0x258]
lea ecx, [ebp - 0x28c]
push eax
call fcn.00501ab0
mov ecx, dword [ebp - 0x260]
add ebx, esi
mov dword [ebp - 0x250], eax
cmp ebx, edi
jl 0x41c8c1
mov edi, dword [ebp - 0x270]
mov ebx, dword [ebp - 0x274]
mov esi, dword [ebp - 0x264]
test esi, esi
jne 0x41c97f
mov dword [ebp - 0x250], 1
push esi
push dword [ebp - 0x268]
mov ecx, ebx
call fcn.0041a7f0
lea ecx, [ebp - 0x28c]
mov esi, eax
call fcn.00501a60
cmp dword [ebp - 0x250], 1
je 0x41ca1f
push dword [ebx + 8]
mov ecx, dword [ebx + 4]
push 0
push 0x936
call fcn.0040d9f0
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x41c9cd
push 0x3b
push str.Failed_to_save_file._nNot_enough_space_on_disk_to_save_file_
mov ecx, eax
call fcn.00406c80
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28c]
call fcn.00501420
mov dword [ebp - 4], 0xffffffff
push 0x60fafc
call fcn.0051692d
add esp, 4
test eax, eax
je 0x41c9ff
push eax
call fcn.00516a24
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp - 0x249], 0
je 0x41ca3b
push dword [ebp - 0x26c]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp + 0x10], 0
je 0x41ca5a
push dword [ebx + 8]
mov ecx, dword [ebx + 4]
push 0
push 0x936
call fcn.0040d9f0
mov bl, 1
jmp 0x41c9cf
push esi
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.0041cbe0
cmp byte [edi + 4], 0
mov byte [edi + 0x30], 0
je 0x41ca7f
mov ecx, dword [edi]
push 2
push edi
mov ecx, dword [ecx]
call fcn.00476f10
cmp byte [edi + 4], 0
mov dword [edi + 0x64], 1
je 0x41ca98
mov ecx, dword [edi]
push 0x20
push edi
mov ecx, dword [ecx]
call fcn.00476f10
mov ecx, edi
call fcn.00419f50
mov ecx, dword [ebx + 4]
push 0
push 0
push 0x7de
call fcn.0040d9f0
push dword [ebx + 8]
mov ecx, dword [ebx + 4]
push 0
push 0x936
call fcn.0040d9f0
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.0041b050
mov byte [ebp - 4], 2
cmp dword [ebp - 0x220], 0
je 0x41cb57
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
mov byte [ebp - 4], 3
lea ecx, [edi + 0x98]
lea eax, [ebp - 0x248]
cmp ecx, eax
je 0x41cb2c
push 0xffffffffffffffff
push 0
push eax
call fcn.00406ac0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.004038c0
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x41cb50
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x41cb79
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov bl, 1
mov word [ebp - 0x230], ax
jmp 0x41c9cf