Function at 0x401818
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.00401665
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.00404b26
mov ecx, eax
call fcn.00404a3b
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x3c]
call fcn.004016a4
push dword [ebp - 0x40]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
lea ecx, [ebp - 0x30]
call fcn.004016a4
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 0x40193d
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 0x401928
lea eax, [ebp - 0x248]
push eax
call ebx
test eax, eax
jne 0x401928
mov eax, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
cmp eax, 0x64
jge 0x401928
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4018f5
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 0x4018dc
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.00401b4a
push 0xffffffffffffffff
push str.InstallShieldengine6Intel_32
call fcn.00401665
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.004016f5
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x10]
call fcn.00404a3b
push eax
call ebx
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x144]
push 0xffffffffffffffff
push eax
call fcn.00401665
push 0xffffffffffffffff
push str.InstallShieldengine6
mov dword [ebp - 0x10], eax
call fcn.00401665
add esp, 0x10
mov dword [ebp - 4], eax
push eax
call edi
push eax
lea ecx, [ebp - 0x10]
push dword [ebp - 4]
call fcn.004016f5
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x10]
call fcn.00404a3b
push eax
call ebx
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x144]
push 0xffffffffffffffff
push eax
call fcn.00401665
push 0xffffffffffffffff
push str.InstallShieldengine
mov dword [ebp - 0x10], eax
call fcn.00401665
add esp, 0x10
mov dword [ebp - 4], eax
push eax
call edi
push eax
push dword [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.004016f5
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x10]
call fcn.00404a3b
push eax
call ebx
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x144]
push 0xffffffffffffffff
push eax
call fcn.00401665
push 0xffffffffffffffff
push str.InstallShieldiScript
mov dword [ebp - 0x10], eax
call fcn.00401665
add esp, 0x10
mov dword [ebp - 4], eax
push eax
call edi
push eax
lea ecx, [ebp - 0x10]
push dword [ebp - 4]
call fcn.004016f5
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x10]
call fcn.00404a3b
push eax
call ebx
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x144]
push 0xffffffffffffffff
push eax
call fcn.00401665
push 0xffffffffffffffff
push 0x4070d8
mov dword [ebp - 0x10], eax
call fcn.00401665
add esp, 0x10
mov dword [ebp - 4], eax
push eax
call edi
push eax
lea ecx, [ebp - 0x10]
push dword [ebp - 4]
call fcn.004016f5
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x10]
call fcn.00404a3b
push eax
call ebx
lea ecx, [ebp - 0xc]
call fcn.004016a4
push dword [ebp - 0x10]
call esi
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x401afd
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 0x401b0e
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret