Function at 0x10007fe7
Capabilities:
Delete file

Disassembly:
push ebp
push ebx
push edi
mov edx, 0x10
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x10007fef
call fcn.10018130
push 1
push dword [0x1002a1ac]
call fcn.10015314
mov ebx, eax
and ebx, ebx
jne 0x1000801c
jmp 0x1000837d
push 0
push 0
push 0
call sub.KERNEL32.dll_HeapCreate
mov dword [esp + 0x10], eax
push 4
push 8
push dword [esp + 0x18]
call sub.KERNEL32.dll_HeapAlloc
mov dword [esp + 0x14], eax
lea eax, str.Debug
push eax
call fcn.100156a4
and eax, eax
je 0x10008071
push 0
lea eax, str.Cleanup
push eax
call fcn.10015798
mov dword [0x1002a7a4], eax
lea eax, str.Portable
push eax
call fcn.100156a4
and eax, eax
je 0x100080c8
push edx
call fcn.10017f90
pop edx
push eax
push 0x10020028
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
lea eax, [0x10020028]
push eax
lea eax, str.CleanupDirectory
push eax
call fcn.1001596f
call fcn.10012202
add dword [esp], edx
call fcn.1000d16a
lea eax, [esp + 0x1c]
push eax
call fcn.10018030
push dword [esp + 0x18]
lea edx, [0x10020028]
pop ecx
call fcn.100121b0
je 0x100080f8
mov edx, dword [0x10029dec]
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017fd0
lea eax, [esp + 0x1c]
push eax
call fcn.10018030
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
lea edx, str.CleanupDirectory:
push edx
call fcn.10017fd0
mov edx, dword [esp + 0x20]
push edx
call fcn.10017fd0
call fcn.10012202
add dword [esp], edx
call fcn.10008d34
call fcn.10012220
push dword [esp + 0x18]
call fcn.10015f9a
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
mov edx, dword [esp + 0x20]
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017fd0
lea edx, [0x100203e0]
push edx
call fcn.10017fd0
call fcn.10012202
add dword [esp], edx
call fcn.10014460
lea eax, [esp + 0x1c]
push eax
call fcn.10018030
push dword [esp + 0x18]
call fcn.10014370
mov dword [esp + 0x1c], eax
lea eax, str.Cleanup
push eax
call fcn.100156a4
and eax, eax
je 0x10008376
call fcn.100157cd
call fcn.100157f7
and eax, eax
je 0x10008376
push edx
call fcn.10017f90
pop edx
push eax
push 0x10020028
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
call fcn.10015847
call fcn.10012202
add dword [esp], edx
call fcn.1000d16a
lea eax, [esp + 0xc]
push eax
call fcn.10018030
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
lea edx, str.Cleanup:
push edx
call fcn.10017fd0
mov edx, dword [esp + 0x10]
push edx
call fcn.10017fd0
call fcn.10012202
add dword [esp], edx
call fcn.10008d34
call fcn.10012220
push 0
push dword [esp + 0x1c]
push dword [esp + 0x10]
call fcn.1000320a
and eax, eax
je 0x1000823c
xor eax, eax
jmp 0x10008241
mov eax, 1
and eax, eax
je 0x10008271
push 0
push dword [0x1002a10c]
push dword [esp + 0x10]
call fcn.1000320a
and eax, eax
je 0x10008261
xor eax, eax
jmp 0x10008266
mov eax, 1
and eax, eax
je 0x10008271
mov eax, 1
jmp 0x10008273
xor eax, eax
and eax, eax
je 0x100082b4
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
lea edx, str.Cleanup:_Wrong_path_
push edx
call fcn.10017fd0
mov edx, dword [esp + 0x10]
push edx
call fcn.10017fd0
call fcn.10012202
add dword [esp], edx
call fcn.10008d34
call fcn.10012220
jmp 0x100081a4
mov edx, dword [esp + 8]
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017fd0
lea edx, [0x10020196]
push edx
call fcn.10017fd0
lea eax, [esp + 8]
push eax
call fcn.10018030
push 0
mov eax, dword [esp + 8]
mov ebx, eax
push dword [esp + 8]
call fcn.10014370
mov edi, eax
add edi, edi
add ebx, edi
add ebx, 0xfffffffe
mov eax, ebx
call fcn.10012180
lea ebp, [esp + 0x20]
mov dword [ebp + 4], 3
mov word [ebp + 0x10], 0x414
mov eax, dword [esp + 4]
mov dword [ebp + 8], eax
lea eax, [esp + 0x20]
push eax
call sub.SHELL32.dll_SHFileOperationW
mov dword [esp + 0xc], eax
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
lea edx, str.Cleanup:
push edx
call fcn.10017fd0
push edx
call fcn.10017f90
pop edx
push eax
push edx
call fcn.10017f90
pop edx
push eax
mov eax, dword [esp + 0x1c]
cdq
push edx
push eax
call fcn.10014210
pop eax
call fcn.10012202
add dword [esp], edx
call fcn.10008d34
call fcn.10012220
jmp 0x100081a4
call fcn.10015a63
xor eax, eax
push dword [esp + 0x18]
call fcn.10018190
push dword [esp]
call fcn.10018190
push dword [esp + 8]
call fcn.10018190
push dword [esp + 4]
call fcn.10018190
add esp, 0x40
pop edi
pop ebx
pop ebp
ret 0x10