Function at 0x46e350
Capabilities:
Get session information
Get session user name
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ede92
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x521390]
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
push str.KERNEL32.DLL
mov esi, ecx
mov dword [ebp - 0x228], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
push 0x4f9e90
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, section..data
test edi, edi
jne 0x46e43a
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x21c], eax
push str.5.15.0730.1111
mov dword [ebp - 4], edi
push str.http:__action.logger.baofeng.com_ninstall_action.html
push str._s_type2uidver_sstartmi_over1endrlsenvbitmovie
lea edi, [ebp - 0x21c]
call fcn.00458b70
mov ebx, dword [ebp - 0x21c]
add esp, 8
add ebx, 0xfffffff0
mov eax, ebx
mov dword [ebp - 0x220], esp
mov edi, esp
call fcn.0045c3c0
add eax, 0x10
mov dword [edi], eax
call fcn.0046e000
mov dword [ebp - 0x228], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46e7f9
mov ecx, dword [ebx]
push ebx
jmp 0x46e7f2
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
push 0x4f5b64
lea ecx, [ebp - 0x224]
push ecx
xor ebx, ebx
mov dword [ebp - 4], 1
call fcn.0045aa80
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x21c]
push eax
push 5
xor edi, edi
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], edi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x46e52c
mov edx, dword [ebp - 0x21c]
cmp edx, edi
jne 0x46e4a5
xor eax, eax
jmp 0x46e4bf
mov eax, edx
lea ebx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x46e4b0
sub eax, ebx
sar eax, 1
push edx
lea ecx, [ebp - 0x224]
push ecx
mov ebx, eax
call fcn.0045aa80
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, dword [ebp - 0x224]
push str.Guest
push eax
call fcn.004cf013
add esp, 8
cmp eax, edi
jne 0x46e52c
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push ecx
push edx
push str.5.15.0730.1111
push str.http:__action.logger.baofeng.com_ninstall_action.html
push str._s_type2uidver_sstartmi_over7endrlsenv_sbit_smovie
jmp 0x46e779
mov ebx, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push str.Baofeng_StormPlayer_Mutex
push edi
push 0x1f0001
call ebx
cmp eax, edi
jne 0x46e73e
push str.StormPlayer_Mutex_238724adhsDWEE987sdfdf
push edi
push 0x1f0001
call ebx
cmp eax, edi
jne 0x46e73e
push str.1ACCDC9C_A4E4_4B1B_9417_20ED4F5BF991
push edi
push 0x1f0001
call ebx
cmp eax, edi
je 0x46e596
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 4
jmp 0x46e762
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x218], cx
call fcn.004cfd40
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x21c]
push edx
push str.DisplayName
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallStorm2
mov edi, 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x220], 0x102
mov dword [ebp - 0x21c], edi
call ebx
test eax, eax
jne 0x46e62a
lea eax, [ebp - 0x218]
push eax
push 0x4fa2c0
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x46e612
mov dword [esi + 8], edi
lea ecx, [ebp - 0x218]
push ecx
push 0x4fa3ac
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x46e62a
mov dword [esi], edi
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.004cfd40
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x21c]
push eax
push str.DisplayVersion
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallStormPlayer
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x220], 0x102
mov dword [ebp - 0x21c], edi
call ebx
test eax, eax
jne 0x46e7d0
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x4f5b64
lea ecx, [ebp - 0x218]
push ecx
call ebx
test eax, eax
je 0x46e7d0
lea edx, [ebp - 0x218]
push edx
push str.5.15.0730.1111
mov dword [esi + 4], edi
call ebx
test eax, eax
jns 0x46e7d0
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 5
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
push eax
push ecx
push str.5.15.0730.1111
push str.http:__action.logger.baofeng.com_ninstall_action.html
push str._s_type2uidver_sstartmi_over3endrlsenv_sbit_smovie
lea edi, [ebp - 0x21c]
call fcn.00458b70
mov ebx, dword [ebp - 0x21c]
add esp, 0x10
add ebx, 0xfffffff0
mov eax, ebx
mov dword [ebp - 0x220], esp
mov edi, esp
call fcn.0045c3c0
add eax, 0x10
mov dword [edi], eax
call fcn.0046e000
mov dword [ebp - 0x228], 0
mov byte [ebp - 4], 1
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jmp 0x46e7c4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push ecx
push edx
push str.5.15.0730.1111
push str.http:__action.logger.baofeng.com_ninstall_action.html
push str._s_type2uidver_sstartmi_over2endrlsenv_sbit_smovie
lea edi, [ebp - 0x21c]
call fcn.00458b70
mov ebx, dword [ebp - 0x21c]
add esp, 0x10
add ebx, 0xfffffff0
mov eax, ebx
mov dword [ebp - 0x220], esp
mov edi, esp
call fcn.0045c3c0
add eax, 0x10
mov dword [edi], eax
call fcn.0046e000
mov dword [ebp - 0x228], 0
mov byte [ebp - 4], 1
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46e7d0
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov dword [ebp - 4], 0xffffffff
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 0x46e7f9
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x228]
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.004cbf11
mov esp, ebp
pop ebp
ret