Function at 0x405ed0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ece5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5fb1a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea edi, [esi + 0xc]
mov dword [esi + 0x10], 0
mov ecx, edi
call fcn.00404610
lea ecx, [esi + 8]
call fcn.00404610
mov dword [ebp - 4], 1
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x406154
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 2
mov eax, dword [ebx + 0xc]
sub eax, 1
je 0x406062
sub eax, 1
je 0x40603f
sub eax, 4
jne 0x406093
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00406170
mov byte [ebp - 4], 4
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 3
test ecx, ecx
je 0x40615e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push dword [ebp + 0xc]
lea eax, [ebp + 8]
mov byte [ebp - 4], 5
push str.ca_d
push eax
call fcn.00404830
mov eax, dword [ebp + 8]
add esp, 8
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x18], eax
push eax
call fcn.00404000
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.00409870
mov dword [ebp + 0xc], eax
test eax, eax
je 0x406000
push 0
push ecx
mov ecx, esp
push str.ignoreFailure
call fcn.00401f40
mov ecx, ebx
call fcn.0041e2a0
mov ecx, dword [0x5ffc38]
test al, al
mov edx, 1
cmove ecx, edx
mov dword [0x5ffc38], ecx
mov edx, dword [ebp - 0x18]
xor eax, eax
cmp dword [ebp + 0xc], eax
mov byte [ebp - 4], 2
sete al
mov dword [ebp + 0xc], eax
mov eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406029
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0xc], 0
jne 0x406093
push 0xd
push str.Action_failed
mov ecx, edi
call fcn.00409f20
jmp 0x406093
push dword [ebp + 0xc]
mov ecx, esi
push ebx
call fcn.00403ce0
test eax, eax
je 0x406071
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00406170
push ebx
mov ecx, esi
call fcn.00403220
jmp 0x406093
push dword [ebp + 0xc]
mov ecx, esi
push ebx
call fcn.00403ce0
test eax, eax
jne 0x406081
push 0x10
push str.Condition_failed
mov ecx, edi
call fcn.00409f20
jmp 0x406093
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00406170
push ebx
mov ecx, esi
call fcn.00402710
push dword [esi + 0x10]
lea eax, [ebp - 0x10]
push 0x5a0fd4
push eax
call fcn.00404830
add esp, 0xc
mov ecx, 0x5ffc40
push dword [edi]
mov edi, dword [ebp - 0x10]
push dword [esi + 8]
push edi
push dword [ebx + 4]
push str.AddActionResult
call fcn.0040b080
mov eax, dword [esi + 0x1c]
xor ebx, ebx
test eax, eax
jle 0x406117
nop dword [eax + eax]
test ebx, ebx
js 0x40614f
cmp ebx, eax
jge 0x40614f
mov eax, dword [esi + 0x18]
mov eax, dword [eax + ebx*4]
sub eax, 0x10
push eax
call fcn.00404000
add esp, 4
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40610c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
inc ebx
mov eax, dword [esi + 0x1c]
cmp ebx, eax
jl 0x4060d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x14]
call fcn.0042dbad
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40613b
mov ecx, dword [edi]
push edi
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.0042a6ab
push 0x80004005
call fcn.00403cc0
push 0x80004005
call fcn.00403cc0
int3