Function at 0x5aa584
Capabilities:
Delete file

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 0x5aa87f
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 0x5aa85c
dec ebx
push ebx
mov eax, dword [ebp - 8]
add eax, 0xa0
mov ecx, 1
mov edx, dword [0x5a529c]
call fcn.00408498
add esp, 4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
call fcn.004082d0
dec eax
test eax, eax
jl 0x5aa786
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 0x5aa8a0
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
inc eax
call fcn.00470c58
push dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00406fc0
mov eax, dword [ebp - 4]
call fcn.004713d4
test al, al
je 0x5aa6e8
xor eax, eax
push ebp
push 0x5aa68c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa0
mov eax, dword [ebp - 4]
call fcn.00406a94
push eax
call sub.kernel32.dll_SetFileAttributesW
push 1
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x487694]
call fcn.0048d958
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 0x5aa77a
xor eax, eax
push ebp
push 0x5aa723
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x487694]
call fcn.0048d958
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 0x5aa77a
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x5aa601
cmp byte [ebp - 9], 0
jne 0x5aa85c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
call fcn.004082d0
dec eax
test eax, eax
jl 0x5aa83f
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 0x5aa833
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.00406a5c
xor eax, eax
push ebp
push 0x5aa80f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040437c
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 0x5aa819
mov eax, dword [ebp - 4]
call fcn.004713d4
test al, al
je 0x5aa833
mov eax, dword [ebp - 4]
call fcn.00406a94
push eax
call sub.kernel32.dll_DeleteFileW
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x5aa7b2
push 0
mov eax, dword [ebp - 8]
add eax, 0xa0
mov ecx, 1
mov edx, dword [0x5a529c]
call fcn.00408498
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5aa886
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00406a00
lea eax, [ebp - 4]
call fcn.004069f8
ret