Function at 0x40f81b
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x40
mov eax, 0x42b82c
call fcn.00429b95
mov esi, ecx
push 9
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x14], ebx
mov dword [esi + 0x28], ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0x4c]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x40f85e
xor eax, eax
jmp 0x40fabc
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x30]
cmp eax, ebx
jne 0x40f87a
cmp dword [ebp - 0x2c], ebx
je 0x40fab4
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x10], eax
or eax, dword [esi + 0x14]
push edi
jne 0x40f894
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40fabc
call fcn.0040ff6b
test eax, eax
je 0x40f857
mov dword [esi + 0x34], ebx
cmp dword [esi + 4], ebx
jbe 0x40fa14
mov eax, dword [esi]
dec eax
je 0x40f914
dec eax
je 0x40f906
dec eax
je 0x40f8f8
dec eax
je 0x40f8ea
dec eax
je 0x40f8dc
dec eax
je 0x40f8ce
dec eax
jne 0x40f928
mov dword [esi + 0x2c], 0x23
call fcn.0040fd88
jmp 0x40f925
mov dword [esi + 0x2c], 7
call fcn.0040fd3f
jmp 0x40f925
mov dword [esi + 0x2c], 7
call fcn.0040fcfc
jmp 0x40f925
mov dword [esi + 0x2c], 3
call fcn.0040fcbd
jmp 0x40f925
mov dword [esi + 0x2c], 4
call fcn.0040fc67
jmp 0x40f925
mov dword [esi + 0x2c], 3
call fcn.0040fc2a
jmp 0x40f925
mov eax, esi
mov dword [esi + 0x2c], 1
mov dword [esi + 0x30], ebx
call fcn.00410050
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 0x18]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], ebx
call edi
push dword [esi + 8]
call edi
cmp dword [ebp - 0x14], ebx
je 0x40fac4
push dword [ebp + 8]
call fcn.0040ff6b
test eax, eax
je 0x40f857
xor edi, edi
cmp dword [esi + 0x14], edi
jl 0x40fa03
jg 0x40f97c
cmp dword [esi + 0x10], edi
jbe 0x40fa03
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
sub ecx, ebx
sbb eax, edi
test eax, eax
jg 0x40f9da
jl 0x40f994
cmp ecx, 0x20000
jae 0x40f9da
mov eax, dword [esi + 0x10]
sub eax, ebx
push eax
push edi
push ebx
call fcn.00410018
test eax, eax
je 0x40fa03
and dword [ebp - 0x18], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
sub eax, ebx
sbb ecx, edi
mov dword [ebp - 0x1c], ecx
js 0x40f9ea
jg 0x40f9be
test eax, eax
jbe 0x40f9ea
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
sub ecx, ebx
sbb eax, edi
inc dword [ebp - 0x18]
xor edx, edx
cmp edx, eax
jl 0x40f9c8
jg 0x40f9ea
cmp dword [ebp - 0x18], ecx
jb 0x40f9c8
jmp 0x40f9ea
push 0x20000
push edi
push ebx
call fcn.00410018
test eax, eax
je 0x40fa03
add ebx, 0x20000
adc edi, 0
cmp edi, dword [esi + 0x14]
jl 0x40f97c
jg 0x40fa03
cmp ebx, dword [esi + 0x10]
jb 0x40f97c
inc dword [esi + 0x34]
mov eax, dword [esi + 0x34]
xor ebx, ebx
cmp eax, dword [esi + 4]
jb 0x40f8a9
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], ebx
call edi
push ebx
push ebx
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x40fa44
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [esi + 8]
call edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call sub.mfc90u.dll_CFile::CFile
push ebx
push 0x9001
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call sub.mfc90u.dll_CFile::Open
cmp eax, ebx
je 0x40faa4
push ebx
push ebx
lea ecx, [ebp - 0x28]
call sub.mfc90u.dll_CFile::SetLength
mov eax, dword [ebp - 0x28]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x28]
call dword [eax + 0x30]
push 0xe
push str.SecureWipeDone
lea ecx, [ebp - 0x28]
call sub.mfc90u.dll_CFile::Write
push ebx
push ebx
lea ecx, [ebp - 0x28]
call sub.mfc90u.dll_CFile::SetLength
lea ecx, [ebp - 0x28]
call sub.mfc90u.dll_CFile::Close
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00428d90
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
call fcn.0040fadc
call fcn.00429c01
ret 4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40f857