Function at 0x404ea0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5978cd
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6031c0]
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 0x5aadd4
mov ecx, dword [ebp + 0xc]
call fcn.0040a7f0
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 0x5ab00c
lea eax, [ebp - 0x10]
push eax
call fcn.00402670
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x404f54
push str..msi
lea edx, [ebp - 0x10]
push edx
call fcn.00402670
add esp, 8
movzx eax, al
test eax, eax
je 0x404fbb
push 0
push 0x5ab120
lea ecx, [ebp + 8]
call fcn.00405470
cmp eax, 0xffffffff
jne 0x404fbb
push 0
push 0x5aafe8
lea ecx, [ebp + 8]
call fcn.00405470
cmp eax, 0xffffffff
jne 0x404fbb
lea ecx, [ebp - 0x20]
push ecx
push 0x5aadd4
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 0x40504b
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.00406430
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x40504b
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 0x5ab00c
lea ecx, [ebp - 0x10]
push ecx
call fcn.00402670
add esp, 8
movzx edx, al
test edx, edx
jne 0x405027
push str..msi
lea eax, [ebp - 0x10]
push eax
call fcn.00402670
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40503e
mov edx, dword [ebp - 0x10]
push edx
push 0x5ab124
mov eax, dword [ebp + 0xc]
push eax
call fcn.00403ea0
add esp, 0xc
jmp 0x40504b
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.00406030
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x18], 0x11170
jae 0x4050f5
lea ecx, [ebp - 0x14]
call fcn.00407980
movzx edx, al
test edx, edx
jne 0x4050f5
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.00406030
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