Function at 0x416f30
Capabilities:
Check if file exists
Delete file
Delete registry key
Delete registry value
Get common file path
Get file attributes
Persist via app paths registry key
Query or enumerate registry value
Set file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44a367
mov eax, dword fs:[0]
push eax
sub esp, 0xa50
mov eax, dword [0x4611f4]
xor eax, esp
mov dword [esp + 0xa48], eax
push ebx
push esi
push edi
mov eax, dword [0x4611f4]
xor eax, esp
push eax
lea eax, [esp + 0xa60]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
push 0x206
push eax
mov word [esp + 0x64c], ax
lea eax, [esp + 0x64e]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x451c88
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsStormPlayer.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], 0x206
mov dword [esp + 0x2c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x416ff4
push 0x451c88
lea eax, [esp + 0x648]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x416ff4
push str.SoftwareBaofengStormPlayerConfigBFVUnInstall
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 4
lea eax, [esp + 0x18]
push eax
push 4
push str.welcome
push str.SoftwareBaofengBFVKanDianYingUserConfig
push SysReAllocStringLen
mov dword [esp + 0x2c], 0
call esi
push 4
lea eax, [esp + 0x18]
push eax
push 4
push str.welcomeOld
push str.SoftwareBaofengBFVKanDianYingUserConfig
push SysReAllocStringLen
mov dword [esp + 0x2c], 1
call esi
cmp dword [edi + 0x28], 0
je 0x417487
push 1
push 0x23
lea eax, [esp + 0x444]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x43c]
push eax
lea ecx, [esp + 0x20]
call fcn.00402410
push str.BaofengBFVKanDianYingProfilesBFVDesktop_
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
mov dword [esp + 0xa6c], 0
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xa6c], 1
call fcn.00401a10
mov byte [esp + 0xa68], 0
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4170c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x1c]
xor edx, edx
call fcn.0041c960
lea eax, [esp + 0x43c]
push eax
lea ecx, [esp + 0x24]
call fcn.00402410
push 0x22
push str.BaofengBFVKanDianYingAppCenter_
lea ecx, [esp + 0x28]
mov byte [esp + 0xa70], 2
call fcn.0040ca60
push str.AppCenterDB.xml
lea edx, [esp + 0x24]
lea ecx, [esp + 0x2c]
call fcn.0040bce0
add esp, 4
mov byte [esp + 0xa68], 3
push dword [esp + 0x28]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417131
mov ecx, dword [esp + 0x20]
xor edx, edx
call fcn.0041c960
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push str.ShowPlayerModePop
push str.SoftwareBaofengBFVKanDianYingUserConfig
push SysReAllocStringLen
call esi
push str.PlayMode
push str.SoftwareBaofengBFVKanDianYingUserConfig
push SysReAllocStringLen
call esi
push str.BFVDesktopRecommendUpdate
push str.SoftwareBaofengBFVKanDianYingUserConfig
push SysReAllocStringLen
call esi
push str.BFVCMediaShelfFullTip
push str.SoftwareBaofengBFVKanDianYingUserConfig
push SysReAllocStringLen
call esi
push str.BFVSearchWordUpdate
push str.SoftwareBaofengBFVKanDianYingUserConfig
push SysReAllocStringLen
call esi
push str.BFVFirstUse
push str.SoftwareBaofengBFVKanDianYingUserConfig
push SysReAllocStringLen
call esi
push str.BFVDesktopFirstRun
push str.SoftwareBaofengBFVKanDianYingUserConfig
push SysReAllocStringLen
call esi
push str.BFVShowMiniPrompt
push str.SoftwareBaofengBFVKanDianYingUserConfig
push SysReAllocStringLen
call esi
push str.BFVPopWnd_1
push str.SoftwareBaofengBFVKanDianYingUserConfig
push SysReAllocStringLen
call esi
push str.BFVPopWnd_2
push str.SoftwareBaofengBFVKanDianYingUserConfig
push SysReAllocStringLen
call esi
push str.BFVTipsUpdate
push str.SoftwareBaofengBFVKanDianYingUserConfig
push SysReAllocStringLen
call esi
push str.UpgradeWelcomeShowCount
push str.SoftwareBaofengBFVKanDianYingUserConfig
push SysReAllocStringLen
call esi
push 0x4564d8
lea eax, [esp + 0x440]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x43c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402410
mov byte [esp + 0xa68], 4
cmp dword [0x46237c], 5
jne 0x41724a
cmp dword [0x462380], 1
jne 0x41724a
push 0x2c
push str.Local_SettingsApplication_DataIconCache.db
jmp 0x417251
push 0x1a
push str.AppDataLocalIconCache.db
lea ecx, [esp + 0x20]
call fcn.0040ca60
mov ebx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call esi
test eax, eax
jne 0x417285
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417285
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call esi
push 1
push 0x1c
lea eax, [esp + 0x854]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x84c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4172a3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x850]
push eax
lea ecx, [esp + 0x20]
call fcn.00402300
push 0xd
push str.IconCache.db
lea ecx, [esp + 0x20]
call fcn.0040ca60
mov ebx, dword [esp + 0x18]
push ebx
mov dword [esp + 0x28], ebx
call esi
test eax, eax
jne 0x417304
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417304
and eax, 0xfffffffe
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call ebx
push dword [esp + 0x24]
call esi
jmp 0x41730a
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x34], ax
lea eax, [esp + 0x36]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [esp + 0x2c]
push 1
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x457a00
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x2c]
push eax
call esi
test eax, eax
jne 0x417372
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417372
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x30]
push eax
call ebx
lea eax, [esp + 0x2c]
push eax
call esi
xor eax, eax
push 0x206
push eax
mov word [esp + 0x23c], ax
lea eax, [esp + 0x23e]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [esp + 0x234]
push 1
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x457a18
lea eax, [esp + 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x234]
push eax
call esi
test eax, eax
jne 0x4173f2
lea eax, [esp + 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4173f2
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x238]
push eax
call ebx
lea eax, [esp + 0x234]
push eax
call esi
mov byte [esp + 0xa68], 3
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417417
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0xa68], 2
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41743c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0xa68], 0
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417461
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0xa68], 0xffffffff
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x417487
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0xa60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa48]
xor ecx, esp
call fcn.00431c68
mov esp, ebp
pop ebp
ret