Function at 0x4012fc
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x24
mov eax, 0x413414
call fcn.0040c2c2
mov byte [ebp - 0xd], dl
mov esi, ecx
lea ecx, [ebp - 0x14]
call fcn.00404d06
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x40155f
push str.Setup.msi
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.0040194c
pop ecx
mov byte [ebp - 4], 1
call fcn.00404df6
mov ecx, dword [0x41d0dc]
xor edx, edx
test al, al
mov byte [ebp - 0xe], al
push 0
push dword [ebp - 0x1c]
setne dl
add edx, 0x14
call fcn.00404fd7
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ecx
pop ecx
test al, al
je 0x40151a
push str.Setup.cab
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x24]
call fcn.0040194c
pop ecx
push 0
mov byte [ebp - 4], 2
push dword [ebp - 0x24]
mov ecx, dword [0x41d0dc]
push 2
pop edx
call fcn.00404fd7
pop ecx
pop ecx
test al, al
je 0x401510
call fcn.004043b8
push eax
lea ecx, [ebp - 0x18]
call fcn.004041ce
cmp byte [ebp - 0xd], 0
mov byte [ebp - 4], 3
je 0x4013cd
mov edi, str.ALLUSERS1
push edi
call fcn.00405584
pop ecx
push eax
push edi
lea ecx, [ebp - 0x18]
call fcn.004020fa
call fcn.004043b8
push eax
lea ecx, [ebp - 0x20]
call fcn.004041ce
mov byte [ebp - 4], 4
test si, si
je 0x401446
push str.Setup.mst
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x28]
call fcn.0040194c
pop ecx
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.004018fe
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00404784
mov ecx, dword [0x41d0dc]
xor edx, edx
cmp byte [ebp - 0xe], dl
push esi
mov esi, dword [ebp - 0x20]
setne dl
push esi
add edx, 0x16
call fcn.00404fd7
pop ecx
pop ecx
test al, al
je 0x401449
push esi
lea eax, [ebp - 0x18]
push str.TRANSFORMS__s_
push eax
call fcn.00401b3e
add esp, 0xc
jmp 0x401449
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x40147f
push ecx
lea ecx, [ebp - 0x28]
call fcn.004019b1
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00402069
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00404784
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x401498
push 0
push eax
push 0x1fdf
call dword [sym.imp.msi.dll_MsiGetComponentPathW]
mov edi, dword [ebp - 0x18]
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.msi.dll_MsiOpenDatabaseW]
cmp dword [esi - 0xc], 0
mov dword [ebp - 0x28], eax
je 0x4014b4
push esi
call ebx
mov eax, dword [ebp - 0x28]
cmp eax, 0x666
jne 0x401500
push str.Another_version_of_this_product_is_already_installed._nIn_order_to_continue_installation_you_need_to_uninstall_the_existing_version.
lea ecx, [ebp - 0x28]
call fcn.0040201a
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
push 0x6e
pop edx
lea ecx, [ebp - 0x2c]
call fcn.00404b26
xor edx, edx
mov byte [ebp - 4], 8
inc edx
mov ecx, eax
call fcn.00404ba2
pop ecx
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00404784
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00404784
lea ecx, [esi - 0x10]
call fcn.00404784
lea ecx, [edi - 0x10]
call fcn.00404784
push dword [ebp - 0x24]
call ebx
mov ecx, dword [ebp - 0x24]
jmp 0x40153b
push str.Unable_to_extract_installation
lea ecx, [ebp - 0x28]
call fcn.00404830
xor edx, edx
mov byte [ebp - 4], 9
push ecx
inc edx
lea ecx, [ebp - 0x28]
call fcn.00404ba2
pop ecx
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00404784
push dword [ebp - 0x1c]
call ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00404784
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 0x10]
call fcn.00404784
xor eax, eax
call fcn.0040c290
ret