Function at 0x50add0
Capabilities:
Check os version
Delete file
Delete registry key
Get common file path

Disassembly:
sub esp, 0xc4c
push ebx
push esi
lea eax, [esp + 0x434]
push eax
call fcn.004c4840
push 0x6bc0cc
push str.debut.exe
lea ecx, [esp + 0xa54]
push ecx
lea eax, [esp + 0x440]
call fcn.004ad3a0
xor ebx, ebx
xor esi, esi
cmp dword [str.Crescendo], ebx
je 0x50ae3b
mov eax, 0x732548
mov ecx, dword [eax + 4]
lea edx, [esp + 0xa4c]
push edx
mov edx, dword [eax]
push ecx
push edx
call fcn.00508d70
add esi, 1
cmp dword [esi + esi*8 + 0x732548], ebx
lea eax, [esi + esi*8 + 0x732548]
jne 0x50ae14
cmp dword [str.WavePad], ebx
mov dword [esp + 0x14], ebx
je 0x50b21a
push ebp
mov eax, 0x7325e4
push edi
xor ebp, ebp
mov dword [esp + 0x14], 0x7325dc
mov dword [esp + 0x24], eax
cmp dword [eax], ebx
je 0x50b1f1
lea ecx, [ebp + 0x7325e4]
mov dword [esp + 0x20], ecx
mov eax, dword [eax]
push eax
push str.SoftwareClasses._s
mov esi, 0x104
lea edi, [esp + 0x854]
mov dword [esp + 0x30], eax
call fcn.004af0d0
add esp, 8
lea edx, [esp + 0x234]
push edx
push 0x6bc0cc
push ebx
mov ecx, edi
mov edx, SysReAllocStringLen
call fcn.004af7e0
cmp word [esp + 0x234], bx
je 0x50b027
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0xa58]
push edx
push str.__s___extfind__s____L_
lea edi, [esp + 0x448]
call fcn.004af0d0
mov eax, dword [ebp + 0x7325e0]
push eax
lea ecx, [esp + 0x244]
push ecx
push str.SoftwareClasses_sShell_scommand
lea edi, [esp + 0x44]
call fcn.004af0d0
add esp, 0x18
lea edx, [esp + 0x644]
push edx
push 0x6bc0cc
push ebx
mov ecx, edi
mov edx, SysReAllocStringLen
call fcn.004af7e0
lea ecx, [esp + 0x43c]
lea eax, [esp + 0x644]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x50af48
cmp dx, bx
je 0x50af44
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x50af48
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x50af22
xor eax, eax
jmp 0x50af4d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x50b027
mov eax, dword [ebp + 0x7325e0]
push eax
lea ecx, [esp + 0x238]
push ecx
push str.SoftwareClasses_sShell_s
lea edi, [esp + 0x38]
call fcn.004af0d0
add esp, 0xc
cmp word [esp + 0x2c], bx
je 0x50af8a
mov edx, edi
push edx
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea eax, [esp + 0x234]
push eax
push str.SoftwareClasses_sShell
lea edx, [esp + 0x34]
call fcn.00401000
add esp, 8
lea ecx, [esp + 0x10]
push ecx
push 1
push ebx
lea edx, [esp + 0x38]
push edx
push SysReAllocStringLen
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x50aff7
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x34]
push eax
push ebx
push ebx
push ebx
push ecx
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x18], ebx
seta al
cmp al, bl
jne 0x50b027
lea eax, [esp + 0x234]
push eax
push str.SoftwareClasses_sDefaultIcon
lea edx, [esp + 0x34]
call fcn.00401000
add esp, 8
cmp word [esp + 0x2c], bx
je 0x50b027
lea ecx, [esp + 0x2c]
push ecx
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea edx, [esp + 0x234]
push edx
push 0x6bc0cc
push ebx
lea ecx, [esp + 0x858]
mov edx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.004af7e0
cmp word [esp + 0x234], bx
je 0x50b1cb
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0xa58]
push edx
push str.__s___extfind__s____L_
mov esi, 0x104
lea edi, [esp + 0x448]
call fcn.004af0d0
mov eax, dword [ebp + 0x7325e0]
push eax
lea ecx, [esp + 0x244]
push ecx
push str.SoftwareClasses_sShell_scommand
lea edi, [esp + 0x44]
call fcn.004af0d0
add esp, 0x18
lea edx, [esp + 0x644]
push edx
push 0x6bc0cc
push ebx
mov ecx, edi
mov edx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.004af7e0
test al, al
je 0x50b134
lea ecx, [esp + 0x43c]
lea eax, [esp + 0x644]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x50b0f6
cmp dx, bx
je 0x50b0f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x50b0f6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x50b0d0
xor eax, eax
jmp 0x50b0fb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x50b134
mov eax, dword [ebp + 0x7325e0]
push eax
lea ecx, [esp + 0x238]
push ecx
push str.SoftwareClasses_sShell_s
lea edi, [esp + 0x38]
call fcn.004af0d0
add esp, 0xc
cmp word [esp + 0x2c], bx
je 0x50b134
mov edx, edi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea eax, [esp + 0x644]
push eax
push 0x6bc0cc
push ebx
lea ecx, [esp + 0x38]
mov edx, SysReAllocStringLen
call fcn.004af7e0
test al, al
je 0x50b1cb
lea ecx, [esp + 0x43c]
lea eax, [esp + 0x644]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x50b188
cmp dx, bx
je 0x50b184
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x50b188
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x50b162
xor eax, eax
jmp 0x50b18d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x50b1cb
mov ecx, dword [ebp + 0x7325e0]
push ecx
lea edx, [esp + 0x238]
push edx
push str.SoftwareClasses_sShell_s
mov esi, 0x104
lea edi, [esp + 0x38]
call fcn.004af0d0
add esp, 0xc
cmp word [esp + 0x2c], bx
je 0x50b1cb
mov eax, edi
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [ebp + 0x7325e0]
mov ecx, dword [esp + 0x28]
call fcn.005090f0
mov eax, dword [esp + 0x20]
add eax, 4
cmp dword [eax], ebx
mov dword [esp + 0x20], eax
jne 0x50ae72
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
add ebp, 1
mov dword [esp + 0x1c], ebp
imul ebp, ebp, 0x5c
lea ecx, [ebp + 0x7325dc]
add eax, 0x5c
cmp dword [ecx], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
jne 0x50ae60
pop edi
pop ebp
call fcn.005087b0
cmp dword [0x733e60], 0xffffffff
jne 0x50b253
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push str.wine_get_unix_file_name
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
sbb eax, eax
neg eax
push esi
mov dword [0x733e60], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x733e60], 1
je 0x50b2a0
lea ecx, [esp + 0x22c]
push ecx
mov dword [esp + 0x230], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov al, byte [esp + 0x230]
cmp al, 6
ja 0x50b28c
jne 0x50b2a0
cmp byte [esp + 0x234], 1
jbe 0x50b2a0
push str.NCH_Suite
call fcn.005089e0
push str.NCH_Software_Suite
call fcn.005089e0
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edx, [esp + 0x434]
push edx
push ebx
push ebx
push 0x28
push ebx
call esi
test eax, eax
jne 0x50b2e3
push 0x6bc0cc
push str.NCH_Software_Suite
lea eax, [esp + 0x84c]
push eax
lea eax, [esp + 0x440]
call fcn.004ad3a0
lea ecx, [esp + 0x844]
call fcn.004ad730
lea ecx, [esp + 0x63c]
push ecx
push ebx
push ebx
push 6
push ebx
mov word [esp + 0x650], bx
call esi
cmp word [esp + 0x63c], bx
je 0x50b330
push str..lnk
push str.NCH_Software_Download_Site
lea edx, [esp + 0x43c]
push edx
lea eax, [esp + 0x648]
call fcn.004ad3a0
lea eax, [esp + 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push ebx
push 0x2000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
call fcn.005515a0
pop esi
pop ebx
add esp, 0xc4c
ret