Function at 0x40be16
Capabilities:
Connect to wmi namespace via wbemlocator
Query or enumerate registry value

Disassembly:
mov eax, 0x41bb51
call fcn.0041b220
sub esp, 0x270
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebx
jge 0x40be53
cmp eax, 0x80010119
jne 0x40c08f
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 4], ebx
push eax
push 0x41dde4
push 1
push ebx
push 0x41deb4
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x40c07e
mov dword [ebp - 0x2c], ebx
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x422524
call edi
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
push edx
push ebx
mov ecx, dword [eax]
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
call dword [ecx + 0xc]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x14], eax
call esi
cmp dword [ebp - 0x14], ebx
jl 0x40c06e
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x2c]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jl 0x40c06e
mov eax, 0x423790
mov dword [ebp - 0x64], 0x42375c
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x5c], 0x423720
mov dword [ebp - 0x58], 0x423574
mov dword [ebp - 0x54], 0x4236e4
mov dword [ebp - 0x4c], 0x4236a0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x10]
push dword [eax - 4]
call edi
mov dword [ebp - 0x1c], eax
push 0xffffffffffffffff
push 0x4231c4
mov byte [ebp - 4], 4
call fcn.0040c962
pop ecx
mov dword [ebp - 0x20], eax
pop ecx
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x18]
push edx
push ebx
mov ecx, dword [eax]
push 0x30
push dword [ebp - 0x1c]
mov byte [ebp - 4], 5
push dword [ebp - 0x20]
push eax
call dword [ecx + 0x50]
push dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
call esi
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x14], ebx
jl 0x40c050
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 6
mov dword [ebp - 0x30], ebx
cmp dword [ebp - 0x18], ebx
je 0x40c03f
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x28]
mov eax, dword [eax]
push ecx
push 1
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [eax + 0x10]
cmp eax, ebx
jl 0x40c03f
cmp dword [ebp - 0x28], ebx
je 0x40c03f
cmp dword [ebp - 0x30], ebx
je 0x40c03f
mov word [ebp - 0x44], bx
mov eax, dword [ebp - 0x10]
push dword [eax]
call edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
push ebx
lea edx, [ebp - 0x44]
push ebx
mov ecx, dword [eax]
push edx
push ebx
mov byte [ebp - 4], 8
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 7
call esi
cmp dword [ebp - 0x20], ebx
jl 0x40bfee
cmp word [ebp - 0x44], 8
jne 0x40bfee
cmp dword [ebp - 0x3c], ebx
jne 0x40c001
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 6
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40bf72
push dword [ebp - 0x3c]
lea eax, [ebp - 0x74]
push eax
call fcn.00403308
pop ecx
pop ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov byte [ebp - 4], 9
push dword [ecx]
mov ecx, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x40c050
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x40c061
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add dword [ebp - 0x10], 8
dec dword [ebp - 0x24]
jne 0x40bf15
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40c07e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x40c08f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp + 8]
cmp dword [esi + 8], ebx
jne 0x40c163
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x27a]
mov word [ebp - 0x27c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x30], 1
push eax
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x423108
push 0x4230f0
push SysReAllocString
mov dword [ebp - 0x24], 0x206
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40c110
cmp word [ebp - 0x27c], bx
je 0x40c110
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x27c]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
cmp dword [esi + 8], ebx
jne 0x40c163
mov esi, 0x41dd30
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x44]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jl 0x40c163
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ole32.dll_StringFromIID]
test eax, eax
jl 0x40c163
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov ecx, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret