Function at 0x580108
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x580403
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x80]
cmp ebx, 1
jle 0x5803e0
dec ebx
push ebx
mov eax, dword [ebp - 8]
add eax, 0xa0
mov ecx, 1
mov edx, dword [0x57b18c]
call fcn.004087f4
add esp, 4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
call fcn.0040862c
dec eax
test eax, eax
jl 0x58030a
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x9c]
push dword [eax + 8]
push 0x580424
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
inc eax
call fcn.004712ac
push dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00407280
mov eax, dword [ebp - 4]
call fcn.00471b68
test al, al
je 0x58026c
xor eax, eax
push ebp
push 0x580210
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa0
mov eax, dword [ebp - 4]
call fcn.00406e68
push eax
call sub.kernel32.dll_SetFileAttributesW
push 1
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x48b560]
call fcn.00492080
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xa0]
mov ecx, dword [ebp - 0x10]
mov dword [edx + ecx*4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5802fe
xor eax, eax
push ebp
push 0x5802a7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x48b560]
call fcn.00492080
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xa0]
mov ecx, dword [ebp - 0x10]
mov dword [edx + ecx*4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5802fe
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x580185
cmp byte [ebp - 9], 0
jne 0x5803e0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
call fcn.0040862c
dec eax
test eax, eax
jl 0x5803c3
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 0x10]
mov ebx, dword [eax + edx*4]
test ebx, ebx
je 0x5803b7
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xa0]
mov ecx, dword [ebp - 0x10]
mov edx, dword [edx + ecx*4]
mov edx, dword [edx + 8]
call fcn.00406e30
xor eax, eax
push ebp
push 0x580393
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404700
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov dword [eax + edx*4], ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58039d
mov eax, dword [ebp - 4]
call fcn.00471b68
test al, al
je 0x5803b7
mov eax, dword [ebp - 4]
call fcn.00406e68
push eax
call sub.kernel32.dll_DeleteFileW
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x580336
push 0
mov eax, dword [ebp - 8]
add eax, 0xa0
mov ecx, 1
mov edx, dword [0x57b18c]
call fcn.004087f4
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58040a
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00406dd4
lea eax, [ebp - 4]
call fcn.00406dcc
ret