Function at 0x404af0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59858d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6041c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
push 0x5abcec
mov ecx, dword [ebp + 0xc]
call fcn.0040a300
lea ecx, [ebp + 8]
call fcn.00402790
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x20]
call fcn.004020c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00402790
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x10]
call fcn.004020c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402220
mov byte [ebp - 4], 3
push 0x5abf24
lea eax, [ebp - 0x10]
push eax
call fcn.00402670
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x404ba4
push str..msi
lea edx, [ebp - 0x10]
push edx
call fcn.00402670
add esp, 8
movzx eax, al
test eax, eax
je 0x404c0b
push 0
push 0x5ac038
lea ecx, [ebp + 8]
call fcn.004050c0
cmp eax, 0xffffffff
jne 0x404c0b
push 0
push 0x5abf00
lea ecx, [ebp + 8]
call fcn.004050c0
cmp eax, 0xffffffff
jne 0x404c0b
lea ecx, [ebp - 0x20]
push ecx
push 0x5abcec
lea edx, [ebp - 0x2c]
push edx
call fcn.00402930
add esp, 0xc
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00402a30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004023e0
jmp 0x404c9b
lea edx, [ebp - 0x14]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
lea eax, [ebp + 8]
push eax
call fcn.00401fd0
call fcn.00406080
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x404c9b
lea ecx, [ebp - 0x14]
call fcn.00402790
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402650
push 0x5abf24
lea ecx, [ebp - 0x10]
push ecx
call fcn.00402670
add esp, 8
movzx edx, al
test edx, edx
jne 0x404c77
push str..msi
lea eax, [ebp - 0x10]
push eax
call fcn.00402670
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x404c8e
mov edx, dword [ebp - 0x10]
push edx
push 0x5ac03c
mov eax, dword [ebp + 0xc]
push eax
call fcn.00403f70
add esp, 0xc
jmp 0x404c9b
push str.Setup.exe
mov ecx, dword [ebp + 0xc]
call fcn.00402a50
mov ecx, dword [ebp + 0xc]
call fcn.00402790
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
mov edx, dword [ebp + 0xc]
push edx
call fcn.00401fd0
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
lea eax, [ebp + 8]
push eax
call fcn.00401fd0
mov byte [ebp - 4], 3
call fcn.00405c80
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x18], 0x11170
jae 0x404d45
lea ecx, [ebp - 0x14]
call fcn.00407360
movzx edx, al
test edx, edx
jne 0x404d45
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
mov edx, dword [ebp + 0xc]
push edx
call fcn.00401fd0
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
lea eax, [ebp - 0x14]
push eax
call fcn.00401fd0
mov byte [ebp - 4], 3
call fcn.00405c80
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004023e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004023e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004023e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004023e0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret