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

Disassembly:
mov eax, 0x4798bc
call fcn.0045c5c4
sub esp, 0x14
xor eax, eax
push ebx
inc eax
push esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov eax, dword [0x4a94a4]
push edi
mov esi, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x30]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x3c], eax
mov dword [ebp - 0x14], ebx
jle 0x408cbe
xor edi, edi
cmp dword [ebp - 0x10], ebx
je 0x408cbe
mov eax, dword [esi + 0x2c]
test byte [edi + eax + 8], 0x10
jne 0x408cac
push dword [ebp - 0x14]
lea ecx, [esi + 0x28]
call fcn.004082ed
mov ecx, eax
call fcn.00407919
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0046c1fd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
inc dword [esi + 0x40]
mov ecx, esi
call fcn.00408d35
mov ecx, esi
call fcn.0040812c
mov ecx, esi
call fcn.00408d8f
test eax, eax
je 0x408b85
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 0x408cac
cmp eax, 0xffffffff
jne 0x408bc2
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.0046c4f6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x408cac
test al, 6
je 0x408bd1
cmp dword [esi + 0x10], ebx
jne 0x408bd1
dec dword [esi + 0x3c]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x10], ebx
je 0x408cac
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 0x408c13
cmp dword [esi + 0xc], ebx
mov dword [ebp - 0x18], ebx
jne 0x408c13
push ecx
mov dword [ebp - 0x10], ebx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.Delete_failed
call fcn.0046c4f6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x10], ebx
je 0x408cac
mov eax, dword [esi + 0x2c]
push dword [edi + eax + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
test eax, eax
mov dword [ebp - 0x20], esp
mov ecx, esp
jne 0x408c71
push str.Delete_failed
call fcn.0046c4f6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [esi + 0xc], ebx
mov dword [ebp - 0x18], ebx
jne 0x408c4f
mov dword [ebp - 0x10], ebx
lea ebx, [esi + 0x24]
push 0x49fcb0
mov ecx, ebx
call fcn.0046c818
mov eax, dword [esi + 0x2c]
mov ecx, ebx
lea eax, [edi + eax + 4]
push eax
call fcn.0046c854
xor ebx, ebx
jmp 0x408cac
push str.Delete_successful
call fcn.0046c4f6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [esi + 0x14], ebx
je 0x408cac
push dword [ebp - 0x14]
lea ecx, [esi + 0x28]
call fcn.004082ed
mov ecx, eax
call fcn.00407919
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0046c1fd
mov ecx, esi
call fcn.00408db7
inc dword [ebp - 0x14]
add edi, 0x38
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x30]
jl 0x408b27
cmp dword [esi + 0x30], ebx
mov dword [ebp - 0x14], ebx
jle 0x408d0a
xor edi, edi
cmp dword [ebp - 0x10], ebx
je 0x408d0a
mov eax, dword [esi + 0x2c]
test byte [eax + edi + 8], 0x10
je 0x408cfc
push dword [ebp - 0x14]
lea ecx, [esi + 0x28]
call fcn.004082ed
mov ecx, eax
call fcn.00407919
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0046c1fd
mov ecx, esi
call fcn.00408ead
inc dword [ebp - 0x14]
add edi, 0x38
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x30]
jl 0x408cc8
push 0x49fcb0
lea ecx, [esi + 0x24]
call fcn.00469fb5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0046c488
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret