Function at 0x414010
Capabilities:
Check for time delay via gettickcount
Delete registry key
Get common file path
Get installed programs
Get startup folder
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b768d
mov eax, dword fs:[0]
push eax
sub esp, 0x4e8
mov eax, dword [0x57aa54]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x49c], ecx
mov dword [ebp - 0x250], 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallAlbumMaker
lea ecx, [ebp - 0x240]
call fcn.004038f0
mov dword [ebp - 4], 0
push 0
push 0x25
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.__uninstall
lea ecx, [ebp - 0x460]
call fcn.004038f0
mov dword [ebp - 0x4a0], eax
mov ecx, dword [ebp - 0x4a0]
mov dword [ebp - 0x4a4], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4a4]
push edx
push 0x4c0688
lea eax, [ebp - 0x464]
push eax
call fcn.00416af0
add esp, 0xc
mov dword [ebp - 0x4a8], eax
mov ecx, dword [ebp - 0x4a8]
mov dword [ebp - 0x4ac], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x4ac]
push edx
lea eax, [ebp - 0x468]
push eax
mov ecx, dword [ebp - 0x49c]
call fcn.00413630
mov dword [ebp - 0x4b0], eax
mov ecx, dword [ebp - 0x4b0]
mov dword [ebp - 0x4b4], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x4b4]
push edx
push 0x4c0694
lea ecx, [ebp - 0x46c]
call fcn.004038f0
mov dword [ebp - 0x4b8], eax
mov eax, dword [ebp - 0x4b8]
mov dword [ebp - 0x4bc], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x4bc]
push ecx
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x470]
call fcn.004038f0
mov dword [ebp - 0x4c0], eax
mov eax, dword [ebp - 0x4c0]
mov dword [ebp - 0x4c4], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4c4]
push ecx
push 0x4c0698
lea ecx, [ebp - 0x474]
call fcn.004038f0
mov dword [ebp - 0x4c8], eax
mov edx, dword [ebp - 0x4c8]
mov dword [ebp - 0x4cc], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x4cc]
push eax
lea ecx, [ebp - 0x478]
push ecx
call fcn.004032e0
add esp, 0xc
mov dword [ebp - 0x4d0], eax
mov edx, dword [ebp - 0x4d0]
mov dword [ebp - 0x4d4], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x4d4]
push eax
lea ecx, [ebp - 0x47c]
push ecx
call fcn.004032e0
add esp, 0xc
mov dword [ebp - 0x4d8], eax
mov edx, dword [ebp - 0x4d8]
mov dword [ebp - 0x4dc], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x4dc]
push eax
lea ecx, [ebp - 0x480]
push ecx
call fcn.004032e0
add esp, 0xc
mov dword [ebp - 0x4e0], eax
mov edx, dword [ebp - 0x4e0]
mov dword [ebp - 0x4e4], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x4e4]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call fcn.004032e0
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x480]
call fcn.00403970
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x47c]
call fcn.00403970
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x478]
call fcn.00403970
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x474]
call fcn.00403970
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x470]
call fcn.00403970
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x46c]
call fcn.00403970
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x468]
call fcn.00403970
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x464]
call fcn.00403970
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x460]
call fcn.00403970
mov byte [ebp - 0x225], 1
mov dword [ebp - 0x24c], 0
lea edx, [ebp - 0x234]
push edx
lea ecx, [ebp - 0x240]
call fcn.0040ca60
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x24c], eax
je 0x414357
movzx eax, byte [ebp + 8]
test eax, eax
je 0x414324
mov byte [ebp - 0x481], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00403970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.00403970
mov al, byte [ebp - 0x481]
jmp 0x414737
mov byte [ebp - 0x482], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00403970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.00403970
mov al, byte [ebp - 0x482]
jmp 0x414737
mov dword [ebp - 0x248], 0x104
mov dword [ebp - 0x230], 1
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x414438
lea edx, [ebp - 0x248]
push edx
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x230]
push ecx
push 0
mov ecx, dword [ebp - 0x49c]
add ecx, 0x5c
call fcn.0040ca60
push eax
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x24c], eax
je 0x4143f8
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x483], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00403970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.00403970
mov al, byte [ebp - 0x483]
jmp 0x414737
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x484], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00403970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.00403970
mov al, byte [ebp - 0x484]
jmp 0x414737
lea edx, [ebp - 0x248]
push edx
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x230]
push ecx
push 0
mov ecx, dword [ebp - 0x49c]
add ecx, 0x4c
call fcn.0040ca60
push eax
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x24c], eax
je 0x414503
mov eax, dword [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x49c]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x240]
push eax
push str.Error_reading_the_uninstallation_value__s__s:__d:_the_new_setup_will_continue_anyway
mov ecx, dword [ebp - 0x49c]
add ecx, 0x20
push ecx
call fcn.004044a0
add esp, 0x14
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x240]
call fcn.0040ca60
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 0x485], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00403970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.00403970
mov al, byte [ebp - 0x485]
jmp 0x414737
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x48c]
call fcn.004038f0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x48c]
push ecx
lea edx, [ebp - 0x23c]
push edx
call fcn.0040e730
add esp, 8
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x48c]
call fcn.00403970
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x244]
call fcn.004038f0
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x927c0
push 1
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x490], esp
lea edx, [ebp - 0x23c]
push edx
call fcn.004038d0
mov dword [ebp - 0x4e8], eax
mov eax, dword [ebp - 0x4e8]
mov dword [ebp - 0x4ec], eax
mov byte [ebp - 4], 0x18
push ecx
mov ecx, esp
mov dword [ebp - 0x494], esp
lea edx, [ebp - 0x244]
push edx
call fcn.004038d0
mov dword [ebp - 0x4f0], eax
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x49c]
call fcn.004120d0
mov byte [ebp - 0x4f1], al
movzx eax, byte [ebp - 0x4f1]
test eax, eax
jne 0x414638
push str.Uninstall__old__failed_to_run:_the_new_setup_will_continue_anyway
mov ecx, dword [ebp - 0x49c]
add ecx, 0x20
push ecx
call fcn.004044a0
add esp, 8
mov byte [ebp - 0x495], 0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x244]
call fcn.00403970
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x23c]
call fcn.00403970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00403970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.00403970
mov al, byte [ebp - 0x495]
jmp 0x414737
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x238], 0x1d4c0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x254]
cmp eax, dword [ebp - 0x238]
jae 0x4146d4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
mov ecx, dword [ebp - 0x49c]
call fcn.00414010
movzx edx, al
test edx, edx
jne 0x4146cf
mov byte [ebp - 0x496], 1
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x244]
call fcn.00403970
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x23c]
call fcn.00403970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00403970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.00403970
mov al, byte [ebp - 0x496]
jmp 0x414737
jmp 0x41464e
push str.Uninstall__old__failed_to_complete_successfully:_the_new_setup_will_continue_anyway
mov eax, dword [ebp - 0x49c]
add eax, 0x20
push eax
call fcn.004044a0
add esp, 8
mov byte [ebp - 0x497], 0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x244]
call fcn.00403970
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x23c]
call fcn.00403970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00403970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.00403970
mov al, byte [ebp - 0x497]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049c63c
mov esp, ebp
pop ebp
ret 4