Function at 0x405560
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462575
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x47e700]
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.00403ca0
lea ecx, [ebx + 8]
call fcn.00403ca0
mov dword [ebp - 4], 1
call fcn.0042a268
mov ecx, eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x4057c5
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 0x4056d3
sub eax, 1
je 0x4056b1
sub eax, 4
jne 0x405706
mov esi, dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.004057e0
mov byte [ebp - 4], 4
call fcn.0042a268
mov ecx, eax
mov byte [ebp - 4], 3
test ecx, ecx
je 0x4057cf
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.00403ec0
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.00403650
add esp, 4
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.00408f10
mov esi, eax
test esi, esi
je 0x40567e
push 0
push ecx
mov ecx, esp
push str.ignoreFailure
call fcn.004015b0
mov ecx, edi
call fcn.0041de90
test al, al
jne 0x40567e
mov dword [0x480148], 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 0x40569a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
lea esi, [ebx + 0xc]
je 0x405709
push 0xd
push str.Action_failed
mov ecx, esi
call fcn.004095e0
jmp 0x405709
mov esi, dword [ebp + 0xc]
mov ecx, ebx
push esi
push edi
call fcn.00403330
test eax, eax
je 0x4056e3
push esi
mov ecx, ebx
call fcn.004057e0
push edi
mov ecx, ebx
call fcn.00402870
jmp 0x405706
mov esi, dword [ebp + 0xc]
mov ecx, ebx
push esi
push edi
call fcn.00403330
test eax, eax
jne 0x4056f6
push 0x10
lea esi, [ebx + 0xc]
push str.Condition_failed
mov ecx, esi
call fcn.004095e0
jmp 0x405709
push esi
mov ecx, ebx
call fcn.004057e0
push edi
mov ecx, ebx
call fcn.00401d80
lea esi, [ebx + 0xc]
push dword [ebx + 0x10]
lea eax, [ebp - 0x10]
push 0x4668c4
push eax
call fcn.00403ec0
add esp, 0xc
mov ecx, 0x480150
push dword [esi]
mov esi, dword [ebp - 0x10]
push dword [ebx + 8]
push esi
push dword [edi + 4]
push str.AddActionResult
call fcn.0040a740
mov eax, dword [ebx + 0x1c]
xor edi, edi
test eax, eax
jle 0x405788
test edi, edi
js 0x4057c0
cmp edi, eax
jge 0x4057c0
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + edi*4]
sub eax, 0x10
push eax
call fcn.00403650
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 0x405780
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 0x405741
push 0xffffffffffffffff
push 0
lea ecx, [ebx + 0x14]
call fcn.0042c082
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4057ac
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.00429c0d
push 0x80004005
call fcn.00403310
push 0x80004005
call fcn.00403310
int3