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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44936b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4611f4]
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 ebx, 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x454b34
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40a485
xor ebx, ebx
jmp 0x40a76d
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
push 0
push 0x451c88
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.00402300
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
push 5
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x228], 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x40a570
mov edx, dword [ebp - 0x21c]
test edx, edx
jne 0x40a4f8
xor ecx, ecx
jmp 0x40a50f
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a500
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x224]
call fcn.00402300
push dword [ebp - 0x21c]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov esi, dword [ebp - 0x224]
push str.Guest
push esi
call fcn.004331d9
add esp, 8
test eax, eax
jne 0x40a576
add esi, 0xfffffff0
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a76d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40a76d
mov esi, dword [ebp - 0x224]
push str.Baofeng_BFVKanDianYing_Mutex
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40a5d1
push eax
call edi
push 0
push str.Baofeng_BFVKanDianYing
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x40a5b1
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40a540
push 0
push str.Baofeng_BFVKanDianYing_MiniMode
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x40a5d1
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40a540
push str.Baofeng_BFVFrame_Mutex
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x40a5fc
push str.Baofeng_BFVCenter_Mutex
push eax
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x40a62b
push eax
call edi
add esi, 0xfffffff0
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a76d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40a76d
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
push str.DisplayVersion
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallBFVKanDianYing
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x228], 0x206
mov dword [ebp - 0x21c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
or edi, 0xffffffff
test eax, eax
jne 0x40a74f
cmp word [ebp - 0x218], ax
je 0x40a74f
push str.2.12.1021.1152
lea ecx, [ebp - 0x21c]
call fcn.00402410
lea eax, [ebp - 0x21d]
push eax
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x23c]
call fcn.0041c6c0
lea eax, [ebp - 0x21d]
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x250]
call fcn.0041c6c0
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x23c]
call fcn.0041c750
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
test eax, eax
jns 0x40a739
or edi, edi
xor ebx, ebx
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40a719
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40a76d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40a76d
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a74f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40a76d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.00431c68
mov esp, ebp
pop ebp
ret