Function at 0x406700
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59878d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6041c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00404f20
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.00404f20
lea ecx, [ebp - 0x1c]
call fcn.00402220
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 1
je 0x40677b
cmp dword [ebp - 0x18], 2
je 0x4067be
cmp dword [ebp - 0x18], 6
je 0x4067fe
jmp 0x40682e
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004041b0
test eax, eax
jne 0x4067a4
push 0x5ab108
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00402650
jmp 0x40682e
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00406920
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00402af0
jmp 0x40682e
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004041b0
test eax, eax
jne 0x4067e4
push str.Condition_failed
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00402650
jmp 0x40682e
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00406920
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00403630
jmp 0x40682e
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00406920
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00403550
test eax, eax
jne 0x40682e
push str.Action_failed
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00402650
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10]
push eax
push 0x5ab16c
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00405320
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00402790
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.00402790
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x1c]
call fcn.00402790
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00402790
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
push str.AddActionResult
mov ecx, 0x608ba0
call fcn.0040b6a0
mov dword [ebp - 0x14], 0
jmp 0x4068ac
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.00405ab0
cmp dword [ebp - 0x14], eax
jge 0x4068f3
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x34]
call fcn.00404e50
push eax
lea ecx, [ebp - 0x20]
call fcn.00401fd0
lea ecx, [ebp - 0x20]
call fcn.00402790
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x20]
call fcn.004023e0
jmp 0x4068a3
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.00408f50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004023e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8