Function at 0x58c080
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x58c088
mov eax, 0x58a754
call fcn.00407934
xor eax, eax
push ebp
push 0x58c309
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004034e8
cmp eax, 2
je 0x58c0bf
call fcn.004034e8
cmp eax, 3
jne 0x58c158
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00403548
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.0040a8dc
call fcn.004ed324
mov dword [0x5ac724], 1
lea edx, [ebp - 0x18]
mov eax, 2
call fcn.00403548
mov eax, dword [ebp - 0x18]
call fcn.004058a4
push eax
call sub.kernel32.dll_DeleteFileA
lea edx, [ebp - 0x1c]
mov eax, 2
call fcn.00403548
mov eax, dword [ebp - 0x1c]
call fcn.0040ae9c
test al, al
je 0x58c12f
push 0x14
call sub.kernel32.dll_Sleep_2
inc dword [0x5ac724]
cmp dword [0x5ac724], 0x65
jne 0x58c0e5
call fcn.004034e8
cmp eax, 3
jne 0x58c17d
lea edx, [ebp - 0x20]
mov eax, 3
call fcn.00403548
mov eax, dword [ebp - 0x20]
call fcn.004eade8
mov edx, dword [0x5a396c]
mov byte [edx], al
jmp 0x58c17d
call fcn.004034e8
dec eax
jne 0x58c17d
lea edx, [ebp - 0x24]
mov eax, 1
call fcn.00403548
mov eax, dword [ebp - 0x24]
call fcn.004eade8
mov edx, dword [0x5a396c]
mov byte [edx], al
mov al, byte [0x58c318]
push eax
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
xor eax, eax
call fcn.00403548
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov edx, 0x58c324
call fcn.00410614
mov eax, dword [ebp - 0x28]
call fcn.004058a4
push eax
push 0
push 0
call fcn.00407c58
mov dword [0x5ac720], eax
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
jne 0x58c1ec
push 0x40
push 0x58c328
lea edx, [ebp - 0x30]
mov eax, 0x58a724
call fcn.004077b0
mov eax, dword [ebp - 0x30]
call fcn.004058a4
push eax
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x58c2ee
xor eax, eax
push ebp
push 0x58c2e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41abf8]
call fcn.00404474
mov edx, dword [0x5a40a0]
mov dword [edx], eax
mov eax, dword [0x5a40a0]
mov eax, dword [eax]
call fcn.004e9b3c
test al, al
jne 0x58c234
mov eax, dword [0x5a40a0]
mov eax, dword [eax]
call fcn.004044a4
call fcn.00404e04
jmp 0x58c2ee
mov eax, dword [0x5a3d60]
mov eax, dword [eax]
call fcn.00475888
mov eax, dword [0x5a396c]
cmp byte [eax], 0
je 0x58c262
xor ecx, ecx
mov dl, 1
mov eax, dword [0x57c39c]
call fcn.0046c22c
mov edx, dword [0x5a3b2c]
mov dword [edx], eax
jmp 0x58c2c2
mov ecx, dword [0x5a3b2c]
mov eax, dword [0x5a3d60]
mov eax, dword [eax]
mov edx, dword [0x57c39c]
call fcn.004758a0
mov ecx, dword [0x5a3fb4]
mov eax, dword [0x5a3d60]
mov eax, dword [eax]
mov edx, dword [0x58978c]
call fcn.004758a0
mov ecx, dword [0x5a3bf0]
mov eax, dword [0x5a3d60]
mov eax, dword [eax]
mov edx, dword [0x588b3c]
call fcn.004758a0
mov ecx, dword [0x5a3e38]
mov eax, dword [0x5a3d60]
mov eax, dword [eax]
mov edx, dword [0x587d74]
call fcn.004758a0
mov eax, dword [0x5a3d60]
mov eax, dword [eax]
call fcn.00475920
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58c2ee
mov eax, dword [0x5ac720]
push eax
call sub.kernel32.dll_ReleaseMutex
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58c310
lea eax, [ebp - 0x30]
mov edx, 8
call fcn.00405428
ret