Function at 0x422150
Capabilities:
Check if file exists
Check os version
Delete registry key
Get common file path
Get session user name
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4708c1
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.0045cf20
mov eax, dword [0x48e110]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x422]
push ecx
mov word [ebp - 0x424], ax
call fcn.0045c960
add esp, 0xc
lea edx, [ebp - 0x1048]
push edx
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x1038]
push ecx
push 0x476a60
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsStormPlayer.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1048], 0x102
mov dword [ebp - 0x1038], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x422281
push 0x476a60
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x422281
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str.SoftwareBaofengStormPlayerConfigBFVUnInstall
push SysReAllocStringLen
call esi
cmp eax, 5
jne 0x422281
lea eax, [ebp - 0x1038]
push eax
lea ecx, [ebp - 0x21c]
push ecx
mov dword [ebp - 0x1038], 0x202
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push str.SoftwareBaofengStormPlayerConfigBFVUnInstall
push str.CURRENT_USER
push 0x476a00
lea edx, [ebp - 0x1034]
push 0x800
push edx
call fcn.0045ac31
add esp, 0x14
push 0xf003f
lea eax, [ebp - 0x21c]
push eax
push 2
lea edi, [ebp - 0x1034]
call fcn.00403780
test eax, eax
je 0x422281
push str.SoftwareBaofengStormPlayerConfigBFVUnInstall
push SysReAllocStringLen
call esi
push str.welcome
mov esi, str.SoftwareBaofengBFVKanDianYingUserConfig
mov edi, SysReAllocStringLen
call fcn.00403500
mov ecx, dword [ebp + 8]
add esp, 4
cmp dword [ecx + 0x5c], 0
je 0x4225f6
push 1
push 0x23
lea edx, [ebp - 0x62c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x1040]
push eax
lea ecx, [ebp - 0x62c]
call fcn.00403080
push 0x22
push str.BaofengBFVKanDianYingAppCenter_
lea ebx, [ebp - 0x1040]
mov dword [ebp - 4], 0
call fcn.00402d70
mov ecx, ebx
push ecx
lea edx, [ebp - 0x1044]
push edx
mov ebx, str.AppCenterDB.xml
call fcn.00402c10
add esp, 8
mov ebx, 1
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1044]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x422324
mov ecx, dword [ebp - 0x1040]
push 0
push ecx
call fcn.004028a0
add esp, 8
push str.ShowPlayerModePop
mov esi, str.SoftwareBaofengBFVKanDianYingUserConfig
mov edi, SysReAllocStringLen
call fcn.00403500
add esp, 4
push str.BFVDesktopRecommendUpdate
call fcn.00403500
add esp, 4
push str.BFVCMediaShelfFullTip
call fcn.00403500
add esp, 4
push str.BFVSearchWordUpdate
call fcn.00403500
add esp, 4
push str.BFVFirstUse
call fcn.00403500
add esp, 4
push str.BFVDesktopFirstRun
call fcn.00403500
add esp, 4
push str.BFVShowMiniPrompt
call fcn.00403500
add esp, 4
push str.BFVPopWnd_1
call fcn.00403500
add esp, 4
push str.BFVPopWnd_2
call fcn.00403500
add esp, 4
push str.BFVTipsUpdate
call fcn.00403500
add esp, 4
push str.UpgradeWelcomeShowCount
call fcn.00403500
add esp, 4
push str.BFVPopWnd_6
call fcn.00403500
add esp, 4
push str.BFVPopWnd_7
call fcn.00403500
add esp, 4
push str.BFVPopWnd_8
call fcn.00403500
add esp, 4
push str.Cmd_CPUGPU
mov esi, str.SoftwareBaofengUGCFlashBFVKanDianYing.exeCMD
call fcn.00403500
add esp, 4
cmp dword [0x4928b4], 0
je 0x42247c
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str.SoftwareBaofengBFVKanDianYingConfig
push edi
call esi
cmp eax, 5
jne 0x42247c
lea edx, [ebp - 0x1038]
push edx
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x1038], 0x202
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push str.SoftwareBaofengBFVKanDianYingConfig
push str.CURRENT_USER
push 0x476a00
lea ecx, [ebp - 0x1034]
push 0x800
push ecx
call fcn.0045ac31
add esp, 0x14
push 0xf003f
lea edx, [ebp - 0x21c]
push edx
push 2
lea edi, [ebp - 0x1034]
call fcn.00403780
test eax, eax
je 0x42247c
push str.SoftwareBaofengBFVKanDianYingConfig
push SysReAllocStringLen
call esi
push 0x47a850
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x103c]
push ecx
lea ecx, [ebp - 0x62c]
call fcn.00403080
lea edx, [ebp - 0x134]
mov byte [ebp - 4], 2
push edx
mov dword [ebp - 0x134], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x130], 5
jne 0x4224d5
cmp dword [ebp - 0x12c], ebx
jne 0x4224d5
push 0x2c
push str.Local_SettingsApplication_DataIconCache.db
jmp 0x4224dc
push 0x1a
push str.AppDataLocalIconCache.db
lea ebx, [ebp - 0x103c]
call fcn.00402d70
mov eax, dword [ebp - 0x103c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1038], esp
mov esi, esp
call fcn.004033b0
add eax, 0x10
mov dword [esi], eax
call fcn.004027e0
add esp, 4
push 1
push 0x1c
lea eax, [ebp - 0x834]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x834]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422527
sub eax, edx
lea ecx, [ebp - 0x834]
sar eax, 1
push ecx
lea edx, [ebp - 0x103c]
push edx
mov ebx, eax
call fcn.004032a0
push 0xd
push str.IconCache.db
lea ebx, [ebp - 0x103c]
call fcn.00402d70
mov eax, dword [ebp - 0x103c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1038], esp
mov esi, esp
call fcn.004033b0
add eax, 0x10
mov dword [esi], eax
call fcn.004027e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x103c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4225a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1044]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4225cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1040]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4225f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045a10c
mov esp, ebp
pop ebp
ret 4