Function at 0x495bb0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 8
push 0
push 0
dec ecx
jne 0x495bb9
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x495fd4
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
push 0x495ff0
push dword [ebp - 0xc]
push 0x496010
push esi
push 0x496024
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.0040504c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00494240
xor edx, edx
push ebp
push 0x495faa
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 4]
call fcn.00404cb8
mov eax, dword [ebp - 8]
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov eax, dword [ebp - 8]
mov byte [eax + 0x28], 0
mov eax, dword [ebp - 8]
add eax, 0x14
call fcn.00404cb8
mov eax, dword [ebp - 8]
add eax, 0x18
call fcn.00404cb8
mov eax, dword [ebp - 8]
add eax, 8
call fcn.00404cb8
mov eax, dword [ebp - 8]
add eax, 0xc
call fcn.00404cb8
mov eax, dword [ebp - 8]
mov byte [eax + 0x10], 0
mov eax, dword [ebp - 8]
add eax, 0x38
xor ecx, ecx
mov edx, 8
call fcn.00403768
xor edx, edx
push ebp
push 0x495e1d
push dword fs:[edx]
mov dword fs:[edx], esp
test bl, bl
je 0x495ca4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x7c]
lea eax, [ebp - 4]
mov edx, esi
call fcn.00404fd0
mov eax, esi
call fcn.00409c58
test al, al
je 0x495deb
push 0x11
mov ecx, esi
mov dl, 1
mov eax, dword [0x417808]
call fcn.0041bda0
mov dword [ebp - 0x14], eax
test bl, bl
je 0x495e13
mov eax, dword [ebp - 4]
call fcn.00409c58
test al, al
je 0x495e13
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x496030
mov edx, 0x496048
mov eax, dword [ebp - 4]
call fcn.00494024
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00409180
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
add eax, 8
call fcn.00404d0c
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x496058
mov edx, 0x496048
mov eax, dword [ebp - 4]
call fcn.00494024
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00409180
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
add eax, 0xc
call fcn.00404d0c
mov eax, dword [ebp - 8]
cmp dword [eax + 0x24], 0
jne 0x495d61
cmp dword [eax + 0x20], 0
jbe 0x495d75
jmp 0x495d63
jle 0x495d75
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0
je 0x495d75
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
jne 0x495d79
xor eax, eax
jmp 0x495d7b
mov al, 1
mov edx, dword [ebp - 8]
mov byte [edx + 0x28], al
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x28]
mov dl, 1
call fcn.004098d8
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x496070
call fcn.00404fd0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
call fcn.004941e4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
lea eax, [ebp - 0x34]
mov edx, 0x49608c
call fcn.00404fd0
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.004941e4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0x38]
mov edx, 0x4960a8
call fcn.00404fd0
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
call fcn.004941e4
jmp 0x495e13
lea edx, [ebp - 0x3c]
mov eax, esi
call fcn.00409fbc
mov eax, dword [ebp - 0x3c]
call fcn.00409cc4
push 0xffff
mov ecx, esi
mov dl, 1
mov eax, dword [0x417808]
call fcn.0041bda0
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x495e4d
xor eax, eax
push ebp
push 0x495f6c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov dl, 2
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx eax, byte [0x4960bc]
push eax
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x4960c8
mov edx, 0x4960d4
mov eax, dword [ebp - 0xc]
call fcn.0040e924
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00495954
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x495ece
test bl, bl
je 0x495f0d
mov eax, dword [ebp - 4]
call fcn.00409c58
test al, al
je 0x495f0d
push 0
mov eax, dword [ebp - 4]
call fcn.00405148
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 4]
call fcn.00405148
push eax
call sub.kernel32.dll_DeleteFileA
jmp 0x495f0d
test bl, bl
je 0x495f0d
mov eax, dword [ebp - 8]
cmp byte [eax + 0x10], 0
je 0x495f0d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
mov ecx, 0x496030
mov edx, 0x496048
mov eax, dword [ebp - 4]
call fcn.00494084
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
push eax
mov ecx, 0x496058
mov edx, 0x496048
mov eax, dword [ebp - 4]
call fcn.00494084
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x495f56
mov eax, dword [ebp - 8]
cmp dword [eax + 0x3c], 0
je 0x495f56
mov eax, dword [ebp - 8]
add eax, 0x38
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SetFileTime
test eax, eax
je 0x495f49
mov edx, 0x4960e0
mov eax, dword [ebp - 8]
call fcn.004941e4
jmp 0x495f56
mov edx, 0x4960fc
mov eax, dword [ebp - 8]
call fcn.004941e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495f73
mov eax, dword [ebp - 0x14]
call fcn.00403e6c
ret