Function at 0x40ada2
Capabilities:
Check if file exists
Delete registry key
Delete registry value
Get file attributes
Get installed programs
Set registry value

Disassembly:
mov eax, 0x4114b8
call fcn.00410d60
push ecx
mov eax, 0x120c
call fcn.00410ea0
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
mov dword [ebp - 4], edi
call sub.MSVCRT.dll_wcslen
lea esi, [eax + eax]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x2c], eax
pop ecx
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
inc dword [ebp - 0x24]
push 0x4170d0
push dword [ebp - 0x24]
mov ebx, 0x41a008
lea eax, [ebp - 0x9c]
push ebx
push str._s_i_s
push eax
call esi
lea eax, [ebp - 0x9c]
push 0x4150b8
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.0040c207
add esp, 0x28
test eax, eax
jne 0x40afe7
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push str.HKCR
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x40ae4f
mov dword [ebp - 0x18], 0x80000000
jmp 0x40aea0
push str.HKCU
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x40ae99
push str.HKLM
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x40ae74
mov dword [ebp - 0x18], 0x80000002
jmp 0x40aea0
push str.HKCC
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x40ae8b
mov dword [ebp - 0x18], 0x80000005
jmp 0x40aea0
push 0x419fd0
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x40aea0
mov dword [ebp - 0x18], 0x80000001
push dword [ebp - 0x14]
lea eax, [ebp - 0x9c]
push dword [ebp - 0x24]
push ebx
push str._s_i__s_
push eax
call esi
lea eax, [ebp - 0x9c]
push 0x4170b0
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.0040c207
add esp, 0x28
lea eax, [ebp - 0x20]
mov ebx, 0xf003f
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 0
push eax
push 0
xor eax, eax
push ebx
push eax
push eax
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call edi
xor ecx, ecx
cmp eax, ecx
je 0x40af45
cmp eax, 5
jne 0x40af0e
cmp dword [ebp - 0x18], 0x80000002
jne 0x40af0e
mov dword [ebp - 0x18], 0x80000001
lea eax, [ebp - 0x20]
push ecx
push eax
push ecx
push ebx
push ecx
push ecx
push ecx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x40af43
push 0x4150b0
push 1
push 1
push dword [ebp - 0x14]
push eax
push str.Could_not_create_open_registry_key
call fcn.004063d0
add esp, 0x18
jmp 0x40adee
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
je 0x40af95
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x1ac]
push str._DEL_s
push eax
call esi
lea eax, [ebp - 0x1ac]
push 0x4170b0
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.0040c207
add esp, 0x20
test eax, eax
jne 0x40af95
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
and dword [ebp - 4], 0
jmp 0x40adee
push dword [ebp - 0x24]
lea eax, [ebp - 0x1fc]
push str.__R_i_
push eax
call esi
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push dword [ebp + 8]
call fcn.0040c207
add esp, 0x20
test eax, eax
je 0x40affe
mov eax, dword [0x41cff8]
test eax, eax
jne 0x40afd7
mov eax, 0x41cffc
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40b445
and dword [ebp - 0x28], 0
inc dword [ebp - 0x28]
lea eax, [ebp - 0x144]
push dword [ebp - 0x28]
push str._VAL_i_
push eax
call esi
mov ebx, 0x4170b0
lea eax, [ebp - 0x144]
push ebx
push eax
xor edi, edi
lea eax, [ebp - 0x404]
push edi
push eax
push dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
call fcn.0040c207
add esp, 0x20
test eax, eax
jne 0x40adee
push dword [ebp - 0x28]
lea eax, [ebp - 0x1d4]
push str.__VAL_i_
push eax
call esi
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x121c]
push edi
push eax
push dword [ebp - 0x2c]
call fcn.0040c207
add esp, 0x20
lea eax, [ebp - 0xa1c]
push ebx
push str._TYPE_
push edi
push eax
lea eax, [ebp - 0x121c]
push eax
call fcn.0040c207
add esp, 0x14
lea eax, [ebp - 0x60c]
push ebx
push str._NAME_
push edi
push eax
lea eax, [ebp - 0x121c]
push eax
call fcn.0040c207
add esp, 0x14
lea eax, [ebp - 0x404]
push eax
call sub.MSVCRT.dll_wcslen
lea eax, [eax + eax + 2]
mov dword [esp], str.REG_SZ
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0xa1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40b0e1
mov dword [ebp - 0x34], 1
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push dword [ebp - 0x14]
call fcn.0040c25e
xor ebx, ebx
pop ecx
cmp eax, ebx
pop ecx
je 0x40b3bb
lea eax, [ebp - 0x60c]
push str.UninstallString
push eax
call fcn.0040c25e
pop ecx
cmp eax, ebx
pop ecx
jne 0x40b128
lea eax, [ebp - 0x60c]
push str.DisplayIcon
push eax
call fcn.0040c25e
pop ecx
cmp eax, ebx
pop ecx
je 0x40b16d
lea eax, [ebp - 0x404]
push eax
push 0x41d218
lea eax, [ebp - 0x121c]
push 0x41698c
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x121c]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x404]
push eax
call sub.MSVCRT.dll_wcslen
lea eax, [eax + eax + 2]
pop ecx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x60c]
push str.DisplayIcon
push eax
call fcn.0040c25e
pop ecx
cmp eax, ebx
pop ecx
je 0x40b3bb
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b3bb
lea eax, [ebp - 0x74]
push 0x40
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00404b29
add esp, 0xc
cmp eax, ebx
je 0x40b3bb
push 0x40
lea eax, [ebp - 0x184]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
xor edi, edi
lea eax, [ebp - 0x74]
push eax
call sub.MSVCRT.dll_strlen
cmp ebx, eax
pop ecx
jae 0x40b1fe
mov al, byte [ebp + ebx - 0x74]
cmp al, 0x20
je 0x40b1fb
cmp al, 0x2c
jne 0x40b1f3
mov byte [ebp + edi - 0x184], 0x2e
jmp 0x40b1fa
mov byte [ebp + edi - 0x184], al
inc edi
inc ebx
jmp 0x40b1cf
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x74]
push 0x2e
push eax
call sub.MSVCRT.dll_strrchr
add esp, 0x10
test eax, eax
je 0x40b3bb
and byte [eax], 0
lea eax, [ebp - 0x74]
push 0x2e
push eax
call sub.MSVCRT.dll_strchr
pop ecx
test eax, eax
pop ecx
je 0x40b3bb
lea eax, [ebp - 0x74]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
lea eax, [ebp - 0x74]
push eax
push 1
push 0
push str.DisplayVersion
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x74]
push 0x2e
push eax
call sub.MSVCRT.dll_strrchr
pop ecx
test eax, eax
pop ecx
je 0x40b281
and byte [eax], 0
inc eax
push eax
call sub.MSVCRT.dll_atoi
pop ecx
mov dword [ebp - 0x1c], eax
push 0x41d218
lea eax, [ebp - 0x814]
push str._sidmvs.dll
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b3bb
lea eax, [ebp - 0xdc]
push 0x40
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.00404b29
add esp, 0xc
test eax, eax
je 0x40b3bb
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x11c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
xor edi, edi
lea eax, [ebp - 0xdc]
push eax
call sub.MSVCRT.dll_strlen
cmp ebx, eax
pop ecx
jae 0x40b318
mov al, byte [ebp + ebx - 0xdc]
cmp al, 0x20
je 0x40b315
cmp al, 0x2c
jne 0x40b30d
mov byte [ebp + edi - 0x11c], 0x2e
jmp 0x40b314
mov byte [ebp + edi - 0x11c], al
inc edi
inc ebx
jmp 0x40b2e3
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0xdc]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0xdc]
push 0x2e
push eax
call sub.MSVCRT.dll_strrchr
add esp, 0x10
test eax, eax
je 0x40b3bb
and byte [eax], 0
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0xdc]
push 0x2e
push eax
call sub.MSVCRT.dll_strrchr
add esp, 0x10
test eax, eax
je 0x40b3bb
and byte [eax], 0
inc eax
push eax
call sub.MSVCRT.dll_atoi
mov edi, eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xdc]
push eax
call sub.MSVCRT.dll_strcmp
add esp, 0xc
test eax, eax
jne 0x40b3bb
cmp edi, dword [ebp - 0x1c]
jle 0x40b3bb
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
lea eax, [ebp - 0x11c]
push eax
push 1
push 0
push str.DisplayVersion
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp + 0xc], 0
jne 0x40b40b
push dword [ebp - 0x30]
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x60c]
push dword [ebp - 0x34]
push 0
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40b002
push 0x4150b0
push 1
lea ecx, [ebp - 0x404]
push 1
push ecx
push eax
push str.Could_not_set_registry_value
call fcn.004063d0
add esp, 0x18
jmp 0x40b002
lea eax, [ebp - 0x60c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x40b002
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
leave
ret