Function at 0x4058e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584bd5
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5eb1c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebx + 0xc]
mov dword [ebx + 0x10], 0
call fcn.00404020
lea ecx, [ebx + 8]
call fcn.00404020
mov dword [ebp - 4], 1
call fcn.0042613a
mov ecx, eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x405b45
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 2
mov eax, dword [edi + 0xc]
sub eax, 1
je 0x405a53
sub eax, 1
je 0x405a31
sub eax, 4
jne 0x405a86
mov esi, dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.00405b60
mov byte [ebp - 4], 4
call fcn.0042613a
mov ecx, eax
mov byte [ebp - 4], 3
test ecx, ecx
je 0x405b4f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
push esi
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 5
push str.ca_d
push eax
call fcn.00404240
mov eax, dword [ebp + 0xc]
add esp, 8
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp + 8], esi
mov dword [ebp + 8], eax
push eax
call fcn.004039d0
add esp, 4
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.00408e70
mov esi, eax
test esi, esi
je 0x4059fe
push 0
push ecx
mov ecx, esp
push str.ignoreFailure
call fcn.00401f10
mov ecx, edi
call fcn.0041c450
test al, al
jne 0x4059fe
mov dword [0x5efb90], 1
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov byte [ebp - 4], 2
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405a1a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
lea esi, [ebx + 0xc]
je 0x405a89
push 0xd
push str.Action_failed
mov ecx, esi
call fcn.00409540
jmp 0x405a89
mov esi, dword [ebp + 0xc]
mov ecx, ebx
push esi
push edi
call fcn.004036b0
test eax, eax
je 0x405a63
push esi
mov ecx, ebx
call fcn.00405b60
push edi
mov ecx, ebx
call fcn.00402eb0
jmp 0x405a86
mov esi, dword [ebp + 0xc]
mov ecx, ebx
push esi
push edi
call fcn.004036b0
test eax, eax
jne 0x405a76
push 0x10
lea esi, [ebx + 0xc]
push str.Condition_failed
mov ecx, esi
call fcn.00409540
jmp 0x405a89
push esi
mov ecx, ebx
call fcn.00405b60
push edi
mov ecx, ebx
call fcn.004026e0
lea esi, [ebx + 0xc]
push dword [ebx + 0x10]
lea eax, [ebp - 0x10]
push 0x595dc8
push eax
call fcn.00404240
add esp, 0xc
mov ecx, 0x5efb98
push dword [esi]
mov esi, dword [ebp - 0x10]
push dword [ebx + 8]
push esi
push dword [edi + 4]
push str.AddActionResult
call fcn.0040a6a0
mov eax, dword [ebx + 0x1c]
xor edi, edi
test eax, eax
jle 0x405b08
test edi, edi
js 0x405b40
cmp edi, eax
jge 0x405b40
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + edi*4]
sub eax, 0x10
push eax
call fcn.004039d0
add esp, 4
mov dword [ebp + 0xc], eax
lea ecx, [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x405b00
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x1c]
inc edi
cmp edi, eax
jl 0x405ac1
push 0xffffffffffffffff
push 0
lea ecx, [ebx + 0x14]
call fcn.004285b9
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405b2c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004250b5
push 0x80004005
call fcn.00403690
push 0x80004005
call fcn.00403690
int3