Function at 0x1000294e
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x1004af6a
call fcn.10026ad1
mov ebx, dword [ebp + 0xc]
xor esi, esi
push 0x1004e874
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.10005bd1
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10001434
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov byte [ebp - 4], 1
call edi
push eax
lea ecx, [ebp - 0x10]
call fcn.10001434
lea ecx, [ebp - 0x14]
call fcn.100014de
push str..exe
push dword [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.10005a20
pop ecx
pop ecx
test eax, eax
je 0x100029ce
push str..msi
push dword [ebp - 0x10]
call fcn.10005a20
pop ecx
pop ecx
test eax, eax
jne 0x10002b09
push esi
push 0x1004eb90
lea ecx, [ebp + 8]
call fcn.10002cad
cmp eax, 0xffffffff
jne 0x10002b09
push esi
push 0x1004ea58
lea ecx, [ebp + 8]
call fcn.10002cad
cmp eax, 0xffffffff
jne 0x10002b09
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push 0x1004e874
push eax
call fcn.10001751
add esp, 0xc
mov eax, dword [eax]
mov ecx, ebx
mov byte [ebp - 4], 4
push dword [eax - 0xc]
push eax
call fcn.10002437
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.10005120
mov esi, dword [ebp - 0x14]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push ecx
mov edi, esp
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x24], edi
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.1000276c
add eax, 0x10
mov dword [edi], eax
mov edi, esp
mov byte [ebp - 4], 5
mov dword [ebp - 0x24], edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.1000276c
add eax, 0x10
mov dword [edi], eax
pop ecx
mov byte [ebp - 4], 3
call fcn.10003280
add esp, 0xc
mov edi, eax
cmp dword [ebp - 0x18], 0x11170
jae 0x10002ad8
cmp dword [esi - 0xc], 0
je 0x10002ad8
lea eax, [ebp - 0x18]
push eax
push ecx
mov edi, esp
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x20], edi
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.1000276c
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 6
mov edi, esp
push eax
mov dword [ebp - 0x20], edi
call fcn.1000276c
add eax, 0x10
mov dword [edi], eax
pop ecx
mov byte [ebp - 4], 3
call fcn.10003280
add esp, 0xc
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.10005120
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.10005120
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.10005120
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10005120
mov eax, edi
call fcn.10026a9f
ret
lea eax, [ebp - 0x14]
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.1000276c
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.100034fe
pop ecx
pop ecx
test eax, eax
jne 0x10002a31
mov esi, dword [ebp - 0x14]
push esi
call edi
push eax
lea ecx, [ebp - 0x10]
call fcn.1000592e
push str..exe
push dword [ebp - 0x10]
call fcn.10005a20
pop ecx
pop ecx
test eax, eax
je 0x10002b7a
push str..msi
push dword [ebp - 0x10]
call fcn.10005a20
pop ecx
pop ecx
test eax, eax
je 0x10002b7a
push str.Setup.exe
mov ecx, ebx
call fcn.10002402
jmp 0x10002a34
push dword [ebp - 0x10]
push 0x1004eb94
push ebx
call fcn.100024c6
add esp, 0xc
jmp 0x10002a34