Function at 0x40899c
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x478658
call fcn.0045c348
sub esp, 0x14
push ebx
push esi
push edi
push 1
pop eax
mov esi, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov eax, dword [0x4a84c4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x30]
xor ebx, ebx
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x30]
cmp eax, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
jle 0x408b74
xor edi, edi
cmp dword [ebp - 0x10], ebx
je 0x408b74
mov eax, dword [esi + 0x2c]
test byte [edi + eax + 8], 0x10
jne 0x408b62
push dword [ebp - 0x14]
lea ecx, [esi + 0x28]
call fcn.00408193
mov ecx, eax
call fcn.00407a25
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0046afbe
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
inc dword [esi + 0x40]
mov ecx, esi
call fcn.00408beb
mov ecx, esi
call fcn.00408c45
mov ecx, esi
call fcn.00408ca3
test eax, eax
je 0x408a38
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [esi + 0x2c]
push dword [edi + eax + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp dword [ebp - 0x10], ebx
je 0x408b62
cmp eax, 0xffffffff
jne 0x408a75
push ecx
mov dword [ebp - 0x18], ebx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.Delete_failed
mov dword [ebp - 0x10], ebx
call fcn.0046b2b7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x408b62
test al, 6
je 0x408a84
cmp dword [esi + 0x10], ebx
jne 0x408a84
dec dword [esi + 0x3c]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x10], ebx
je 0x408b62
mov eax, dword [esi + 0x2c]
push 0x80
mov eax, dword [edi + eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x408ac6
cmp dword [esi + 0xc], ebx
mov dword [ebp - 0x18], ebx
jne 0x408ac6
push ecx
mov dword [ebp - 0x10], ebx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.Delete_failed
call fcn.0046b2b7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x10], ebx
je 0x408b62
mov eax, dword [esi + 0x2c]
push dword [edi + eax + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
test eax, eax
mov ecx, esp
jne 0x408b24
mov dword [ebp - 0x20], esp
push str.Delete_failed
call fcn.0046b2b7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [esi + 0xc], ebx
mov dword [ebp - 0x18], ebx
jne 0x408b02
mov dword [ebp - 0x10], ebx
lea ebx, [esi + 0x24]
push 0x49ecdc
mov ecx, ebx
call fcn.0046b5d9
mov eax, dword [esi + 0x2c]
mov ecx, ebx
lea eax, [edi + eax + 4]
push eax
call fcn.0046b615
xor ebx, ebx
jmp 0x408b62
mov dword [ebp - 0x20], esp
push str.Delete_successful
call fcn.0046b2b7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [esi + 0x14], ebx
je 0x408b62
push dword [ebp - 0x14]
lea ecx, [esi + 0x28]
call fcn.00408193
mov ecx, eax
call fcn.00407a25
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0046afbe
mov ecx, esi
call fcn.00408ccd
inc dword [ebp - 0x14]
add edi, 0x38
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x30]
jl 0x4089da
cmp dword [esi + 0x30], ebx
mov dword [ebp - 0x14], ebx
jle 0x408bc0
xor edi, edi
cmp dword [ebp - 0x10], ebx
je 0x408bc0
mov eax, dword [esi + 0x2c]
test byte [eax + edi + 8], 0x10
je 0x408bb2
push dword [ebp - 0x14]
lea ecx, [esi + 0x28]
call fcn.00408193
mov ecx, eax
call fcn.00407a25
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0046afbe
mov ecx, esi
call fcn.00408dc3
inc dword [ebp - 0x14]
add edi, 0x38
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x30]
jl 0x408b7e
push 0x49ecdc
lea ecx, [esi + 0x24]
call fcn.00468d83
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0046b249
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret