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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471d26
mov eax, dword fs:[0]
push eax
sub esp, 0x250
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 - 0x228], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x411d46
mov dword [ebp - 0x228], esi
jmp 0x412146
push 0x477608
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
cmp eax, esi
jne 0x411d68
mov dword [ebp - 0x228], esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x412146
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x224], eax
push 0x476a60
lea eax, [ebp - 0x224]
push eax
xor ebx, ebx
mov dword [ebp - 4], esi
call fcn.004032a0
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x21c]
push edx
push 5
push 0xffffffffffffffff
push ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], ebx
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x411e3b
mov edx, dword [ebp - 0x21c]
cmp edx, ebx
je 0x411de5
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x411dd4
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
lea eax, [ebp - 0x224]
push eax
call fcn.004032a0
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov esi, dword [ebp - 0x224]
push str.Guest
push esi
call fcn.0045b5a2
add esp, 8
test eax, eax
jne 0x411e39
mov dword [ebp - 0x228], eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41213a
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push str.Baofeng_BFVKanDianYing_Mutex
push ebx
push 0x1f0001
call edi
cmp eax, ebx
je 0x411e95
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
push ebx
push str.Baofeng_BFVKanDianYing
call esi
cmp eax, ebx
je 0x411e7a
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x412117
push ebx
push str.Baofeng_BFVKanDianYing_MiniMode
call esi
cmp eax, ebx
je 0x411e95
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x412117
push str.Baofeng_BFVFrame_Mutex
push ebx
push 0x1f0001
call edi
cmp eax, ebx
jne 0x412110
push str.Baofeng_BFVCenter_Mutex
push ebx
push 0x1f0001
call edi
cmp eax, ebx
jne 0x412110
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x218], cx
call fcn.0045c960
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x22c]
push edx
push str.DisplayVersion
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallBFVKanDianYing
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x220], 0x102
mov dword [ebp - 0x22c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, ebx
jne 0x41211d
push 0x476a60
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x41211d
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 ecx, 0x477880
mov byte [ebp - 4], 1
test ecx, 0xffff0000
jne 0x411f85
mov edx, ecx
movzx edi, dx
call fcn.00402e30
cmp eax, ebx
je 0x411f9d
push eax
mov eax, edi
lea edi, [ebp - 0x21c]
call fcn.00402fe0
jmp 0x411f9d
push 0x477880
lea eax, [ebp - 0x21c]
push eax
mov ebx, 0xe
call fcn.004032a0
xor ebx, ebx
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x230]
push eax
mov byte [ebp - 4], bl
mov edx, dword [ebp - 0x21c]
lea ecx, [ebp - 0x234]
push ecx
push 0x47b6a0
push edx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x220], ebx
call fcn.0045c585
add esp, 0x18
cmp eax, 4
jne 0x412035
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x238], eax
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x218]
push 0x47b6a0
push edx
xor edi, edi
xor esi, esi
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
call fcn.0045c585
add esp, 0x18
cmp eax, 4
jne 0x4120ac
mov edi, dword [ebp - 0x220]
mov esi, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x230]
mov edx, dword [ebp - 0x234]
jmp 0x4120b8
mov eax, dword [ebp - 0x250]
mov edx, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x244]
cmp ecx, edi
ja 0x4120ec
jb 0x4120e6
mov ecx, dword [ebp - 0x240]
cmp ecx, esi
ja 0x4120ec
jb 0x4120e6
mov ecx, dword [ebp - 0x23c]
cmp ecx, eax
ja 0x4120ec
jb 0x4120e6
mov eax, dword [ebp - 0x238]
cmp eax, edx
jae 0x4120ec
mov dword [ebp - 0x228], ebx
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 0x41211d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41211d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x228], ebx
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 0x412146
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
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.0045a10c
mov esp, ebp
pop ebp
ret