Function at 0x4015a0
Capabilities:
Delete registry key
Get installed programs
Print debug messages
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x40751c
push eax
mov eax, 0x1118
mov dword fs:[0], esp
call fcn.004021e0
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x929]
mov byte [esp + 0x928], bl
mov esi, dword [esp + 0x1138]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
mov dword [esp + 0x1c], ebx
xor ebp, ebp
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x4019bc
mov ax, word [0x409084]
mov cx, word [0x409088]
lea edx, [esp + 0x14]
xor edi, edi
push edx
push esi
mov word [esp + 0x1c], ax
mov word [esp + 0x18], cx
call fcn.00401fee
add esp, 8
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
cmp esi, ebx
je 0x4019bc
mov eax, edi
dec eax
je 0x401669
dec eax
je 0x40165c
dec eax
jne 0x401676
push esi
lea ecx, [esp + 0x92c]
push 0x409128
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x401676
push esi
call fcn.00402115
add esp, 4
mov ebp, eax
jmp 0x401676
push esi
call fcn.00402115
add esp, 4
mov dword [esp + 0x18], eax
lea edx, [esp + 0x14]
inc edi
push edx
push ebx
call fcn.00401fee
add esp, 8
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
cmp esi, ebx
jne 0x401638
cmp dword [esp + 0x18], 3
jne 0x4019bc
push ebp
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x129]
mov byte [esp + 0x128], bl
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x928]
stosw word es:[edi], ax
push ecx
lea edx, [esp + 0x12c]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push edx
mov dword [esp + 0x113c], ebx
mov dword [esp + 0x30], 0x80000002
stosb byte es:[edi], al
call ebp
add esp, 0xc
mov dword [esp + 0x10], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x18]
push eax
push 0x2001f
lea ecx, [esp + 0x130]
push ebx
push ecx
push 0x80000002
mov byte [esp + 0x1144], 1
mov dword [esp + 0x2c], ebx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x4017e1
lea ecx, [esp + 0x10]
call fcn.00401a10
mov ecx, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x10], ecx
jne 0x4017e1
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push ebx
push ebx
push ebx
lea edx, [esp + 0x38]
push eax
push edx
push ebx
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
jne 0x4017bb
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
call fcn.00401a80
cmp eax, ebx
jne 0x4017e1
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea eax, [esp + 0x38]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
je 0x401783
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4017ce
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
lea edx, [esp + 0x128]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1130], bl
call fcn.00401a10
lea eax, [esp + 0x928]
lea ecx, [esp + 0x128]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallInstallShield_Uninstall_Information_s
push ecx
call ebp
add esp, 0xc
mov dword [esp + 0x10], ebx
lea edx, [esp + 0x18]
lea eax, [esp + 0x128]
push edx
push 0x2001f
push ebx
push eax
push 0x80000002
mov byte [esp + 0x1144], 2
mov dword [esp + 0x2c], ebx
call edi
cmp eax, ebx
jne 0x40184e
lea ecx, [esp + 0x10]
call fcn.00401a10
mov ecx, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x10], ecx
je 0x401868
lea ecx, [esp + 0x10]
mov byte [esp + 0x1130], bl
call fcn.00401a10
mov edi, 0x100
jmp 0x4018eb
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push ebx
push ebx
push ebx
lea edx, [esp + 0x38]
push eax
push edx
mov edi, 0x100
push ebx
push ecx
mov dword [esp + 0x34], edi
call esi
test eax, eax
jne 0x4018bf
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
call fcn.00401a80
cmp eax, ebx
jne 0x4018db
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea eax, [esp + 0x38]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x34], edi
call esi
test eax, eax
je 0x40188b
lea ecx, [esp + 0x10]
call fcn.00401a10
lea edx, [esp + 0x128]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1130], bl
call fcn.00401a10
lea eax, [esp + 0x928]
lea ecx, [esp + 0x128]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallInstallShield__s
push ecx
call ebp
add esp, 0xc
mov dword [esp + 0x10], ebx
lea edx, [esp + 0x128]
push 0x2001f
push edx
push 0x80000002
lea ecx, [esp + 0x1c]
mov byte [esp + 0x113c], 3
call fcn.00401a30
cmp eax, ebx
jne 0x4019ac
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x38]
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x34], edi
call esi
test eax, eax
jne 0x401986
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401a80
cmp eax, ebx
jne 0x4019ac
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x38]
push eax
push ecx
push ebx
push edx
mov dword [esp + 0x34], edi
call esi
test eax, eax
je 0x401952
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x401999
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x128]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1130], bl
call fcn.00401a10
push str._PostBuild__PatchHandler_Done
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x1128]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x1124
ret