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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a098c
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4c4330]
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
lea eax, [ebp - 0x220]
push eax
mov ecx, 0x4a691c
mov dword [ebp - 0x22c], esi
call fcn.0045a880
xor ebx, ebx
push 0x206
lea edx, [ebp - 0x216]
mov dword [ebp - 4], ebx
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x218], cx
call fcn.00488d60
add esp, 0xc
cmp dword [esi + 4], ebx
je 0x46863d
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x224]
push edx
push 0x4a691c
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsStormPlayer.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x21c], 0x102
mov dword [ebp - 0x224], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, ebx
jne 0x4686cb
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
call fcn.0045a880
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x21c]
push 0x5c
push ecx
call fcn.00487b83
add esp, 8
cmp eax, ebx
jne 0x4685af
or eax, 0xffffffff
jmp 0x4685b7
sub eax, dword [ebp - 0x21c]
sar eax, 1
inc eax
lea ecx, [ebp - 0x224]
lea edx, [ebp - 0x21c]
call fcn.0045c980
lea edi, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.0045bfa0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4685fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x21c]
lea edi, [ebp - 0x220]
call fcn.0045bfa0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4686cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4686cb
push 1
push 0x26
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x468660
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x468660
sub eax, edx
lea ecx, [ebp - 0x218]
sar eax, 1
push ecx
lea edx, [ebp - 0x220]
push edx
mov ebx, eax
call fcn.0045a790
lea eax, [ebp - 0x220]
lea esi, [ebp - 0x224]
call fcn.00468840
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4686b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x14
push 0x4aaf30
lea ebx, [ebp - 0x220]
call fcn.0045a3e0
xor ebx, ebx
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x228]
push 1
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x224], esp
mov esi, esp
call fcn.0045c0b0
add eax, 0x10
mov dword [esi], eax
call fcn.00468ae0
cmp eax, ebx
je 0x4687a6
cmp dword [ebp - 0x228], 0x64
jge 0x4687ed
lea edx, [ebp - 0x21c]
push edx
mov ecx, 0x4a691c
call fcn.0045a880
lea eax, [ebp - 0x21c]
push eax
mov byte [ebp - 4], 3
call fcn.004688b0
test eax, eax
je 0x468781
mov edx, str.:BaofengStormplayer_
lea eax, [ebp - 0x21c]
call fcn.0045a3a0
mov edi, dword [ebp - 0x22c]
add edi, 0xc
lea eax, [ebp - 0x21c]
call fcn.0045bfa0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468801
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x468801
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4687a6
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 - 0x220]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4687cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, 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.00485631
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x22c]
add edi, 0xc
lea eax, [ebp - 0x220]
call fcn.0045bfa0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46882a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4687d1