Function at 0x401000
Capabilities:
Delete registry value
Query or enumerate registry value
Read .ini file
Set registry value
Terminate process

Disassembly:
sub esp, 0x5d0
push ebx
push ebp
push esi
push edi
push 0x12c
lea eax, [esp + 0x2b4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
lea ecx, [esp + 0x4e8]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c0]
push eax
call fcn.00401759
push 0x40729c
push str.data
lea ecx, [esp + 0x4fc]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x2d4]
push eax
call fcn.004016c8
lea ecx, [esp + 0x2d8]
push 0
push ecx
call fcn.0040658c
add esp, 0x30
test eax, eax
je 0x40108f
push 0x10
push 0
push str.Cannot_find_DATA.TAG
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.004015d5
lea edx, [esp + 0x2b0]
push edx
push 0x64
lea eax, [esp + 0x25]
push eax
push 0x407278
push str.ProjectGUID
push str.TagInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jg 0x4010cf
push 0x10
push 0
push str.Error_reading_GUID_from_DATA.TAG
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.004015d5
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x40723c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
or ecx, 0xffffffff
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, edi
lea edx, [esp + 0x1c]
mov byte [esp + 0x1c], 0x7b
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
mov ecx, ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
and ecx, 3
push 0x80000002
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x28], 0x104
call ebp
test eax, eax
je 0x401144
push 0x10
push 0
push str.Error_reading_registry
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.004015d5
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1b0]
push edx
push 0
push 0
push str.ProgramFilesDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40118e
push 0x10
push 0
push str.Error_reading_registry
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.004015d5
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x1ac]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x80]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x4071e4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
or ecx, 0xffffffff
mov esi, edi
lea edx, [esp + 0x80]
mov edi, edx
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.InstallShield_Installation_Information
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
or ecx, 0xffffffff
mov esi, edi
lea edx, [esp + 0x80]
mov edi, edx
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x4071e4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
or ecx, 0xffffffff
mov esi, edi
lea edx, [esp + 0x80]
mov edi, edx
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x80]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x4071e4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
or ecx, 0xffffffff
mov esi, edi
lea edx, [esp + 0x80]
mov edi, edx
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.setup.ilg
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
or ecx, 0xffffffff
mov esi, edi
lea edx, [esp + 0x80]
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebx
lea eax, [esp + 0x84]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040658c
add esp, 8
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
je 0x4013fe
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x80]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x3b4]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x3b4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x3b4]
sub edx, 2
lea eax, [esp + 0x3b4]
mov byte [ecx + edx], 0x5f
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.0040157a
mov ecx, 0xd
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea edi, [esp + 0x1b4]
rep movsd dword es:[edi], dword [esi]
or ecx, 0xffffffff
movsb byte es:[edi], byte [esi]
add esp, 8
xor eax, eax
lea edi, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x1ac]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x14]
push eax
mov ecx, edx
and ecx, 3
push 0xf003f
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x1b8]
push ecx
push 0x80000002
call ebp
test eax, eax
jne 0x4013fe
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4013fe
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
push edx
push eax
push eax
push eax
push str.UninstallString
push esi
call edi
lea eax, [esp + 0x10]
push eax
push 0x40adc0
push 0
push 0
push str.UninstallString
push esi
call edi
push str.UninstallString
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x407164
push str.is_setup
lea ecx, [esp + 0x4e8]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c0]
push eax
call fcn.004016c8
mov ecx, dword [esp + 0x600]
push 0
push ecx
push str.is_setup
lea edx, [esp + 0x2d0]
push edx
push 0
call fcn.00406576
add esp, 0x28
cmp eax, 0xffffffff
jne 0x401459
push 0x10
push 0
push str.Could_not_run_IS_SETUP.EXE
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
test ebx, ebx
je 0x401534
lea eax, [esp + 0x80]
push eax
call fcn.00401550
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x3bc]
push edx
call fcn.0040157a
mov ecx, 0xd
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea edi, [esp + 0x1b8]
rep movsd dword es:[edi], dword [esi]
or ecx, 0xffffffff
movsb byte es:[edi], byte [esi]
add esp, 0xc
xor eax, eax
lea edi, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
or ecx, 0xffffffff
mov esi, edi
lea edx, [esp + 0x1ac]
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
and ecx, 3
push 0xf003f
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x1b8]
push ecx
push 0x80000002
call ebp
test eax, eax
jne 0x401534
mov esi, dword [esp + 0x14]
test esi, esi
je 0x401534
lea edx, [esp + 0x10]
push edx
push eax
push eax
push eax
push str.UninstallString
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40152d
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x40adc0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40adc0
push 1
push eax
push str.UninstallString
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5d0
ret 0x10