Function at 0x402bbc
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x455a82
call fcn.0042794e
mov ebx, dword [ebp + 0xc]
xor esi, esi
push 0x4598b4
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.00405e3f
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401534
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.00401534
lea ecx, [ebp - 0x14]
call fcn.004015de
push str..exe
push dword [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00405c8e
pop ecx
pop ecx
test eax, eax
je 0x402c3c
push str..msi
push dword [ebp - 0x10]
call fcn.00405c8e
pop ecx
pop ecx
test eax, eax
jne 0x402d77
push esi
push 0x459bd0
lea ecx, [ebp + 8]
call fcn.00402f1b
cmp eax, 0xffffffff
jne 0x402d77
push esi
push 0x459a98
lea ecx, [ebp + 8]
call fcn.00402f1b
cmp eax, 0xffffffff
jne 0x402d77
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push 0x4598b4
push eax
call fcn.00401851
add esp, 0xc
mov eax, dword [eax]
mov ecx, ebx
mov byte [ebp - 4], 4
push dword [eax - 0xc]
push eax
call fcn.004026a5
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.0040538e
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.004029da
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.004029da
add eax, 0x10
mov dword [edi], eax
pop ecx
mov byte [ebp - 4], 3
call fcn.004034ee
add esp, 0xc
mov edi, eax
cmp dword [ebp - 0x18], 0x11170
jae 0x402d46
cmp dword [esi - 0xc], 0
je 0x402d46
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.004029da
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.004029da
add eax, 0x10
mov dword [edi], eax
pop ecx
mov byte [ebp - 4], 3
call fcn.004034ee
add esp, 0xc
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.0040538e
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040538e
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040538e
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040538e
mov eax, edi
call fcn.0042791c
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.004029da
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.0040376c
pop ecx
pop ecx
test eax, eax
jne 0x402c9f
mov esi, dword [ebp - 0x14]
push esi
call edi
push eax
lea ecx, [ebp - 0x10]
call fcn.00405b9c
push str..exe
push dword [ebp - 0x10]
call fcn.00405c8e
pop ecx
pop ecx
test eax, eax
je 0x402de8
push str..msi
push dword [ebp - 0x10]
call fcn.00405c8e
pop ecx
pop ecx
test eax, eax
je 0x402de8
push str.Setup.exe
mov ecx, ebx
call fcn.00402670
jmp 0x402ca2
push dword [ebp - 0x10]
push 0x459bd4
push ebx
call fcn.00402734
add esp, 0xc
jmp 0x402ca2