Function at 0x401817
Capabilities:
Delete directory
Delete file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push ebx
push esi
push edi
lea eax, [ebp - 0x450]
xor edi, edi
push 0x104
mov ebx, ecx
push eax
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x450]
push 0xffffffffffffffff
push eax
call fcn.00401664
pop ecx
mov dword [ebp - 0x34], eax
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], edi
call fcn.00404657
mov ecx, eax
call fcn.00404554
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x3c]
call fcn.004016a3
push dword [ebp - 0x40]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
lea ecx, [ebp - 0x30]
call fcn.004016a3
push dword [ebp - 0x34]
call esi
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [ebp - 0x34c]
push eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
call dword [sym.imp.ole32.dll_CoFreeAllLibraries]
cmp dword [ebx + 0xc8], edi
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x18], edi
jle 0x40193c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x248]
push 0x104
push eax
mov eax, dword [ebp - 0x20]
mov ax, word [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401927
lea eax, [ebp - 0x248]
push eax
call ebx
test eax, eax
jne 0x401927
mov eax, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
cmp eax, 0x64
jge 0x401927
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4018f4
inc dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
add dword [ebp - 0x20], 2
cmp ecx, dword [eax + 0xc8]
jl 0x4018db
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x104
push eax
lea eax, [ebp - 0x144]
push eax
push edi
push edi
push str.CommonFilesDir
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x144]
lea ecx, [ebp - 0x10]
push eax
call fcn.00401b3a
push 0xffffffffffffffff
push str.InstallShieldengine6Intel_32
call fcn.00401664
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
pop ecx
pop ecx
mov dword [ebp - 4], eax
push eax
call edi
push eax
lea ecx, [ebp - 0x10]
push dword [ebp - 4]
call fcn.004016f4
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x10]
call fcn.00404554
push eax
call ebx
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x144]
push 0xffffffffffffffff
push eax
call fcn.00401664
push 0xffffffffffffffff
push str.InstallShieldengine6
mov dword [ebp - 0x10], eax
call fcn.00401664
add esp, 0x10
mov dword [ebp - 4], eax
push eax
call edi
push eax
lea ecx, [ebp - 0x10]
push dword [ebp - 4]
call fcn.004016f4
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x10]
call fcn.00404554
push eax
call ebx
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x144]
push 0xffffffffffffffff
push eax
call fcn.00401664
push 0xffffffffffffffff
push str.InstallShieldengine
mov dword [ebp - 0x10], eax
call fcn.00401664
add esp, 0x10
mov dword [ebp - 4], eax
push eax
call edi
push eax
push dword [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.004016f4
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x10]
call fcn.00404554
push eax
call ebx
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x144]
push 0xffffffffffffffff
push eax
call fcn.00401664
push 0xffffffffffffffff
push str.InstallShieldiScript
mov dword [ebp - 0x10], eax
call fcn.00401664
add esp, 0x10
mov dword [ebp - 4], eax
push eax
call edi
push eax
lea ecx, [ebp - 0x10]
push dword [ebp - 4]
call fcn.004016f4
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x10]
call fcn.00404554
push eax
call ebx
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x144]
push 0xffffffffffffffff
push eax
call fcn.00401664
push 0xffffffffffffffff
push 0x4070d8
mov dword [ebp - 0x10], eax
call fcn.00401664
add esp, 0x10
mov dword [ebp - 4], eax
push eax
call edi
push eax
lea ecx, [ebp - 0x10]
push dword [ebp - 4]
call fcn.004016f4
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x10]
call fcn.00404554
push eax
call ebx
lea ecx, [ebp - 0x10]
call fcn.0040114d
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x401af7
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x24], esi
pop edi
pop esi
pop ebx
je 0x401b08
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret