Function at 0x466c40
Capabilities:
Check internet connectivity via wininet
Get session information
Get session user name
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eca49
mov eax, dword fs:[0]
push eax
sub esp, 0x424
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 - 0x42c], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push 0x4f9e90
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x466d3c
push ebx
push 0x4f9cd0
push 0x4f9ea0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x424], eax
push str.5.15.0730.1111
push str.http:__action.logger.baofeng.com_ninstall_action.html
push str._s_type2uidver_sstartmi_over1endrlsenvbitmovie
lea edi, [ebp - 0x424]
mov dword [ebp - 4], ebx
call fcn.00458b70
mov edi, dword [ebp - 0x424]
add esp, 8
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x428], esp
mov ebx, esp
call fcn.0045c3c0
add eax, 0x10
mov dword [ebx], eax
call fcn.004674c0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46737a
mov ecx, dword [edi]
push edi
jmp 0x467373
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x430], eax
push 0x4f5b64
lea ecx, [ebp - 0x430]
push ecx
xor ebx, ebx
mov dword [ebp - 4], 1
call fcn.0045aa80
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x424]
push eax
push 5
xor edi, edi
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x428], edi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x466e79
mov edx, dword [ebp - 0x424]
cmp edx, edi
jne 0x466dac
xor eax, eax
jmp 0x466dc0
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x466db1
sub eax, ebx
sar eax, 1
push edx
lea ecx, [ebp - 0x430]
push ecx
mov ebx, eax
call fcn.0045aa80
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, dword [ebp - 0x430]
push str.Guest
push eax
call fcn.004cf013
add esp, 8
cmp eax, edi
jne 0x466e79
push edi
push 0x4f9cd0
push str.S_MR_f
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0xd8]
mov edx, dword [esi + 0xd4]
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
lea edi, [ebp - 0x424]
call fcn.00458b70
mov edi, dword [ebp - 0x424]
add esp, 0x10
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x428], esp
mov ebx, esp
call fcn.0045c3c0
add eax, 0x10
mov dword [ebx], eax
call fcn.004674c0
jmp 0x46732a
lea ecx, [ebp - 0x424]
push ecx
mov dword [ebp - 0x424], edi
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
jne 0x466eba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x466ec1
push edi
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x466ec1
mov al, byte [ebp - 0x424]
test al, 0x20
jne 0x466ec1
test al, 7
je 0x466ec1
mov dword [esi + 0x30], 1
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenMutexW]
lea ecx, [ecx]
push str.Baofeng_StormPlayer_Mutex
push 0
push 0x1f0001
call ebx
test eax, eax
jne 0x466ef7
push str.StormPlayer_Mutex_238724adhsDWEE987sdfdf
push eax
push 0x1f0001
call ebx
test eax, eax
je 0x466f93
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x35
push 0x4f9cd0
push 0x4fa098
push 0
call edi
cmp eax, 2
jne 0x466ed0
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0xd8]
mov edx, dword [esi + 0xd4]
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 - 0x424]
call fcn.00458b70
mov edi, dword [ebp - 0x424]
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add edi, 0xfffffff0
add esp, 0x14
call edx
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
jl 0x46727e
cmp eax, dword [edi]
jne 0x46727e
mov ebx, edi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4672ba
push str.1ACCDC9C_A4E4_4B1B_9417_20ED4F5BF991
push 0
push 0x1f0001
call ebx
test eax, eax
je 0x46704e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x35
push 0x4f9cd0
push 0x4fa1d0
push 0
call edi
cmp eax, 2
jne 0x466f93
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 6
mov eax, dword [esi + 0xd8]
mov ecx, dword [esi + 0xd4]
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_over2endrlsenv_sbit_smovie
lea edi, [ebp - 0x424]
call fcn.00458b70
mov edi, dword [ebp - 0x424]
add esp, 0x10
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x428], esp
mov ebx, esp
call fcn.0045c3c0
add eax, 0x10
mov dword [ebx], eax
call fcn.004674c0
mov dword [ebp - 0x42c], 0
mov byte [ebp - 4], 1
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jmp 0x467345
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x41e]
push edx
mov word [ebp - 0x420], cx
call fcn.004cfd40
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x424]
push edx
push str.DisplayName
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallStorm2
mov ebx, 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x428], 0x102
mov dword [ebp - 0x424], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x46716b
lea eax, [ebp - 0x420]
push eax
push 0x4fa2c0
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x46711f
push 4
push 0x4f9cd0
push 0x4fa2d0
push eax
mov dword [esi + 0x2c], ebx
call edi
cmp eax, 7
jne 0x46711f
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 7
mov ecx, dword [esi + 0xd8]
mov edx, dword [esi + 0xd4]
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_over3endrlsenv_sbit_smovie
jmp 0x466e44
lea ecx, [ebp - 0x420]
push ecx
push 0x4fa3ac
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x46716b
push 4
push 0x4f9cd0
push 0x4fa3b8
push eax
mov dword [esi + 0x24], ebx
call edi
cmp eax, 7
jne 0x46716b
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 8
jmp 0x4670fd
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.004cfd40
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x424]
push edx
push str.DisplayVersion
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallStormPlayer
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x428], 0x102
mov dword [ebp - 0x424], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x467351
push 0x4f5b64
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x467351
lea ecx, [ebp - 0x218]
push ecx
push str.5.15.0730.1111
mov dword [esi + 0x28], ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jns 0x467239
push 4
push 0x4f9cd0
push str.S_MR
push 0
call edi
cmp eax, 7
jne 0x467351
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 9
jmp 0x4670fd
cmp dword [esi + 0x24], 0
jne 0x467351
push 4
push 0x4f9cd0
push 0x4fa3b8
push 0
call edi
cmp eax, 7
jne 0x467351
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 0xa
jmp 0x4670fd
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
jne 0x467297
call fcn.004cac50
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
lea edx, [eax + eax + 2]
push edx
lea edx, [edi + 0x10]
push edx
lea eax, [eax + eax + 2]
lea ecx, [ebx + 0x10]
push eax
push ecx
call fcn.004ce305
add esp, 0x10
add ebx, 0x10
mov dword [ebp - 0x428], ebx
lea eax, [esi + 0xbc]
push eax
mov dword [ebp - 0x42c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x428]
push ecx
lea ecx, [esi + 0xa4]
mov byte [ebp - 4], 5
call fcn.0046b060
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
add ebx, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46732a
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov byte [ebp - 4], 1
or ecx, 0xffffffff
lea eax, [edi + 0xc]
mov dword [ebp - 0x42c], 0
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x467351
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46737a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x42c]
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