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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x405d4c
push eax
mov eax, 0x1118
mov dword fs:[0], esp
call fcn.004024d0
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 0x401aec
mov ax, word [0x407074]
mov cx, word [0x407078]
lea edx, [esp + 0x14]
xor edi, edi
push edx
push esi
mov word [esp + 0x1c], ax
mov word [esp + 0x18], cx
call fcn.00402250
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 0x401aec
mov eax, edi
dec eax
je 0x401799
dec eax
je 0x40178c
dec eax
jne 0x4017a6
push esi
lea ecx, [esp + 0x92c]
push 0x407118
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4017a6
push esi
call fcn.004024be
add esp, 4
mov ebp, eax
jmp 0x4017a6
push esi
call fcn.004024be
add esp, 4
mov dword [esp + 0x18], eax
lea edx, [esp + 0x14]
inc edi
push edx
push ebx
call fcn.00402250
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 0x401768
cmp dword [esp + 0x18], 3
jne 0x401aec
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 0x401911
lea ecx, [esp + 0x10]
call fcn.00401b40
mov ecx, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x10], ecx
jne 0x401911
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 0x4018eb
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
call fcn.00401bb0
cmp eax, ebx
jne 0x401911
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 0x4018b3
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4018fe
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.00401b40
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 0x40197e
lea ecx, [esp + 0x10]
call fcn.00401b40
mov ecx, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x10], ecx
je 0x401998
lea ecx, [esp + 0x10]
mov byte [esp + 0x1130], bl
call fcn.00401b40
mov edi, 0x100
jmp 0x401a1b
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 0x4019ef
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
call fcn.00401bb0
cmp eax, ebx
jne 0x401a0b
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 0x4019bb
lea ecx, [esp + 0x10]
call fcn.00401b40
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.00401b40
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.00401b60
cmp eax, ebx
jne 0x401adc
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 0x401ab6
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401bb0
cmp eax, ebx
jne 0x401adc
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 0x401a82
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x401ac9
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.00401b40
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