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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47175b
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x48e110]
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 dword [ebp - 0x224], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push 0x477608
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
cmp ebx, edi
jne 0x4115cd
push edi
push 0x477584
push 0x477618
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x224], edi
jmp 0x4117c5
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x220], eax
push 0x476a60
lea eax, [ebp - 0x220]
push eax
xor ebx, ebx
mov dword [ebp - 4], edi
call fcn.004032a0
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x21c]
push edx
push 5
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x22c], edi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x41169b
mov edx, dword [ebp - 0x21c]
cmp edx, edi
jne 0x411632
xor eax, eax
jmp 0x411646
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x411637
sub eax, esi
sar eax, 1
push edx
lea ecx, [ebp - 0x220]
push ecx
mov ebx, eax
call fcn.004032a0
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov esi, dword [ebp - 0x220]
push str.Guest
push esi
call fcn.0045b5a2
add esp, 8
cmp eax, edi
jne 0x41169b
push edi
push 0x477584
push str.S_MR_f
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 4], 0xffffffff
lea eax, [esi - 0x10]
jmp 0x4117a6
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
push str.Baofeng_BFVKanDianYing_Mutex
xor esi, esi
push esi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x411750
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push str.Baofeng_BFVKanDianYing
call edi
test eax, eax
je 0x4116fa
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4116fa
push 0x35
push 0x477584
push 0x4776e0
push 0
mov esi, 1
call ebx
cmp eax, 2
je 0x411727
push 0
push str.Baofeng_BFVKanDianYing_MiniMode
call edi
test eax, eax
je 0x411743
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x411743
push 0x35
push 0x477584
push 0x4776e0
push 0
call ebx
cmp eax, 2
jne 0x4116a7
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x224], 0
add eax, 0xfffffff0
jmp 0x4117ac
test esi, esi
jne 0x4116a7
jmp 0x411750
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push str.Baofeng_BFVFrame_Mutex
push 0
push 0x1f0001
call esi
xor edi, edi
cmp eax, edi
jne 0x41177b
push str.Baofeng_BFVCenter_Mutex
push edi
push 0x1f0001
call esi
cmp eax, edi
je 0x4117e7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x35
push 0x477584
push 0x4776e0
push edi
call ebx
cmp eax, 2
jne 0x411750
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
mov dword [ebp - 0x224], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4117c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x224]
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.0045a10c
mov esp, ebp
pop ebp
ret
cmp dword [0x4928b4], edi
jne 0x41193a
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x218], cx
call fcn.0045c960
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x21c]
push edx
push str.DisplayVersion
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallBFVKanDianYing
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x22c], 0x102
mov dword [ebp - 0x21c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, edi
jne 0x41193a
push 0x476a60
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x41193a
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, 0x477880
call fcn.00403080
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x225]
push edx
push eax
lea esi, [ebp - 0x254]
call fcn.00429630
lea ecx, [ebp - 0x225]
push ecx
lea edx, [ebp - 0x218]
push edx
lea esi, [ebp - 0x240]
call fcn.00429630
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x23c]
cmp eax, ecx
ja 0x41194f
jb 0x4118fe
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x238]
cmp eax, ecx
ja 0x41194f
jb 0x4118fe
mov eax, dword [ebp - 0x248]
mov ecx, dword [ebp - 0x234]
cmp eax, ecx
ja 0x41194f
jb 0x4118fe
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x230]
cmp eax, ecx
jae 0x41194f
push 4
push 0x477584
push str.S_MRHr_g
push edi
call ebx
cmp eax, 7
jne 0x41195d
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov dword [ebp - 0x224], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41193a
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
jmp 0x4117ac
push 4
push 0x477584
push 0x4778e8
jmp 0x41190a
lea ecx, [ebp - 0x21c]
call fcn.00403440
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
jmp 0x4117ac