Function at 0x41d8f0
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba5b7
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x4f52c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x230], 0
je 0x41db8a
lea eax, [ebp - 0x424]
push eax
mov ecx, 0x4c8a90
call fcn.00401d40
mov dword [ebp - 4], 0
mov ebx, dword [0x4fb3a0]
cmp dword [ebx + 0xc0], 0
jne 0x41d986
push 0x1b8
call fcn.0049948f
add esp, 4
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x41d97a
push 0
mov edi, eax
call fcn.00422250
jmp 0x41d97c
xor eax, eax
mov byte [ebp - 4], 0
mov dword [ebx + 0xc0], eax
mov ebx, dword [ebx + 0xc0]
xor ecx, ecx
push 0x206
lea edx, [ebp - 0x216]
push ecx
push edx
mov word [ebp - 0x218], cx
call fcn.0049dad0
add esp, 0xc
cmp dword [ebx + 0x14], 0
je 0x41da95
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x428]
push edx
push 0x4c8a90
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsStormPlayer.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x42c], 0x102
mov dword [ebp - 0x428], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41da38
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x218]
lea edi, [ebp - 0x424]
call fcn.00401d00
push 0x4ca7b8
push str.Baofeng
mov edx, edi
push edx
call fcn.0041e150
jmp 0x41daf6
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov word [ebp - 0x420], ax
call fcn.0049dad0
add esp, 0xc
push 1
push 0x26
lea edx, [ebp - 0x420]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x420]
lea edi, [ebp - 0x424]
call fcn.00401d00
mov edx, 0x4ca7dc
mov eax, edi
call fcn.00418680
jmp 0x41daf6
push 1
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41dac0
sub eax, edx
lea edx, [ebp - 0x218]
sar eax, 1
push edx
lea ecx, [ebp - 0x424]
push ecx
mov ebx, eax
call fcn.00401c50
push 0x14
push 0x4ca7dc
lea ebx, [ebp - 0x424]
call fcn.00406d60
mov eax, dword [esi + 0x230]
mov edx, dword [ebp - 0x424]
mov eax, dword [eax + 0x78]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [0x4fb3a0]
cmp dword [esi + 0xc0], 0
mov ebx, dword [ebp - 0x424]
jne 0x41db54
push 0x1b8
call fcn.0049948f
add esp, 4
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x41db48
push 0
mov edi, eax
call fcn.00422250
jmp 0x41db4a
xor eax, eax
mov byte [ebp - 4], 0
mov dword [esi + 0xc0], eax
mov eax, dword [esi + 0xc0]
mov edx, ebx
call fcn.00423810
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41db8a
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 - 0x10]
xor ecx, ebp
call fcn.0049908b
mov esp, ebp
pop ebp
ret