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

Disassembly:
mov eax, 0x420391
call fcn.0041f700
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 0x40f9d1
cmp eax, 0x80010119
jne 0x40fc0d
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 4], ebx
push eax
push 0x421ea4
push 1
push ebx
push 0x421f74
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x40fbfc
mov dword [ebp - 0x2c], ebx
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x42661c
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 0x40fbec
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 0x40fbec
mov eax, 0x428e6c
mov dword [ebp - 0x64], 0x428e38
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x5c], 0x428dfc
mov dword [ebp - 0x58], 0x428c50
mov dword [ebp - 0x54], 0x428dc0
mov dword [ebp - 0x4c], 0x428d7c
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 0x4288a0
mov byte [ebp - 4], 4
call fcn.00410559
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 0x40fbce
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 6
mov dword [ebp - 0x30], ebx
cmp dword [ebp - 0x18], ebx
je 0x40fbbd
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 0x40fbbd
cmp dword [ebp - 0x28], ebx
je 0x40fbbd
cmp dword [ebp - 0x30], ebx
je 0x40fbbd
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 0x40fb6c
cmp word [ebp - 0x44], 8
jne 0x40fb6c
cmp dword [ebp - 0x3c], ebx
jne 0x40fb7f
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 6
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40faf0
push dword [ebp - 0x3c]
lea eax, [ebp - 0x74]
push eax
call fcn.004033f7
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 0x40fbce
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x40fbdf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add dword [ebp - 0x10], 8
dec dword [ebp - 0x24]
jne 0x40fa93
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40fbfc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x40fc0d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp + 8]
cmp dword [esi + 8], ebx
jne 0x40fce1
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 0x4287e4
push 0x4287cc
push SysReAllocString
mov dword [ebp - 0x24], 0x206
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40fc8e
cmp word [ebp - 0x27c], bx
je 0x40fc8e
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 0x40fce1
mov esi, 0x421df0
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 0x40fce1
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 0x40fce1
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