Function at 0x40b080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449516
mov eax, dword fs:[0]
push eax
sub esp, 0x238
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
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push 0x454b34
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x40b4a8
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 4], 0
call fcn.0040aff0
mov esi, dword [ebp - 0x238]
test eax, eax
je 0x40b11d
push str.Guest
push esi
call fcn.004331d9
add esp, 8
test eax, eax
je 0x40b19c
mov ebx, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push str.Baofeng_BFVKanDianYing_Mutex
push 0
push 0x1f0001
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40b176
push eax
call edi
push 0
push str.Baofeng_BFVKanDianYing
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x40b15a
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40b19c
push 0
push str.Baofeng_BFVKanDianYing_MiniMode
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x40b176
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40b19c
push str.Baofeng_BFVFrame_Mutex
push 0
push 0x1f0001
call ebx
test eax, eax
jne 0x40b199
push str.Baofeng_BFVCenter_Mutex
push eax
push 0x1f0001
call ebx
test eax, eax
je 0x40b1d6
push eax
call edi
add esi, 0xfffffff0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b4a8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x21c]
jmp 0x40b4aa
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 - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
push str.DisplayVersion
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallBFVKanDianYing
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x230], 0x206
mov dword [ebp - 0x22c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
or ebx, 0xffffffff
test eax, eax
jne 0x40b483
push 0x451c88
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x40b483
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x21c], edi
mov eax, str.2.12.1021.1152
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x40b2a0
movzx ecx, ax
call fcn.00401ee0
test eax, eax
je 0x40b2b8
mov edx, str.2.12.1021.1152
movzx ecx, dx
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402070
jmp 0x40b2b2
push 0xe
push str.2.12.1021.1152
lea ecx, [ebp - 0x21c]
call fcn.00402300
mov edi, dword [ebp - 0x21c]
xor eax, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
push str._d._d._d._d
push edi
call fcn.0043449a
add esp, 0x18
cmp eax, 4
jne 0x40b34d
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push str._d._d._d._d
push eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x23c], 0
call fcn.0043449a
add esp, 0x18
cmp eax, 4
jne 0x40b3e4
mov eax, dword [ebp - 0x224]
mov edx, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x220], eax
jmp 0x40b3e8
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x244]
cmp eax, dword [ebp - 0x21c]
ja 0x40b46a
jb 0x40b41e
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x220]
ja 0x40b46a
jb 0x40b41e
mov eax, dword [ebp - 0x22c]
cmp eax, edx
ja 0x40b46a
jb 0x40b41e
mov eax, dword [ebp - 0x230]
cmp eax, ecx
jae 0x40b46a
add edi, 0xfffffff0
or ebx, 0xffffffff
mov dword [ebp - 0x21c], 0
lea ecx, [edi + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40b444
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40b462
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x21c]
jmp 0x40b4aa
add edi, 0xfffffff0
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b483
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40b4a1
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
jmp 0x40b4aa
xor eax, eax
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