Function at 0x58051c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x58079a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x71cc0c], 0
jne 0x580777
mov dword [0x71cc0c], 1
xor edx, edx
push ebp
push 0x580770
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
call fcn.0040862c
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x9c]
test ebx, ebx
je 0x58073e
xor edx, edx
push ebp
push 0x580737
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 4]
mov edx, dword [ebx + 8]
call fcn.00406e30
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
call fcn.0040862c
dec eax
test eax, eax
jl 0x580710
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 0xc]
cmp dword [eax + edx*4], 0
je 0x580704
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x68]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4 + 4]
mov edx, dword [eax + 0x3c0]
add edx, dword [eax + 0x3a8]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x9c]
xor ecx, ecx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x68]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4 + 4]
mov edx, dword [eax + 0x3a8]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx*4]
xor ecx, ecx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x68]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax + edx*4 + 4]
mov eax, dword [ecx + 0x3b0]
mov edx, dword [ecx + 0x3b4]
sub eax, dword [ecx + 0x3a8]
sbb edx, dword [ecx + 0x3ac]
push edx
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 0xc]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x9c]
call fcn.00491e04
xor edx, edx
push ebp
push 0x5806e7
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
call fcn.00404700
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 0xc]
xor ecx, ecx
mov dword [eax + edx*4], ecx
push dword [ebp - 4]
push 0x5807b4
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
inc eax
call fcn.004712ac
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00407280
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x1c]
call fcn.00406e68
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5806f1
push 0xa
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x733a48]
mov eax, dword [eax]
call fcn.004fc390
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x5805c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58073e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x9c]
call fcn.00404700
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x9c], edx
ret
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 0x580777
xor eax, eax
mov dword [0x71cc0c], eax
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5807a1
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00406dd4
lea eax, [ebp - 4]
call fcn.00406dcc
ret