Function at 0x4077a6
Capabilities:
Connect to wmi namespace via wbemlocator
Query or enumerate registry value
Reference wmi statements
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x431c15
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x43e030]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov eax, dword [0x43e030]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
mov edi, ecx
push ebx
mov dword [esp + 0x2c], edi
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 0x407816
cmp eax, 0x80010119
jne 0x407aee
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x30]
push eax
push 0x4350dc
push 1
push ebx
push 0x4351ac
mov dword [esp + 0x2b4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x407ad8
mov dword [esp + 0x10], ebx
mov byte [esp + 0x2a0], 1
mov edi, dword [esp + 0x30]
push 0x4362c0
lea esi, [esp + 0x1c]
call fcn.004086b5
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
mov byte [esp + 0x2b8], 2
mov eax, dword [eax]
mov ecx, dword [edi]
push ebx
push eax
push edi
call dword [ecx + 0xc]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp esi, ebx
jl 0x407abf
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [esp + 0x2c]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jl 0x407abf
mov eax, 0x4368c4
mov dword [esp + 0x38], 0x436890
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0x4368e0
mov dword [esp + 0x44], 0x4363ec
mov dword [esp + 0x48], 0x43691c
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0x436958
mov dword [esp + 0x54], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x2a0], 3
push dword [esp + eax + 0x38]
mov edi, dword [esp + 0x14]
lea esi, [esp + 0x2c]
call fcn.004086b5
mov dword [esp + 0x18], eax
push 0x4367b8
lea esi, [esp + 0x38]
mov byte [esp + 0x2a4], 4
call fcn.00408683
mov byte [esp + 0x2a0], 5
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov edx, dword [edi]
lea esi, [esp + 0x14]
push esi
push ebx
push 0x30
push ecx
push eax
push edi
call dword [edx + 0x50]
push dword [esp + 0x34]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, eax
call esi
push dword [esp + 0x28]
call esi
cmp edi, ebx
jl 0x407a99
jmp 0x407a37
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x2a8], 6
mov eax, dword [esp + 0x1c]
push 1
push 0xffffffffffffffff
push dword [esp + 0x24]
mov dword [esp + 0x2c], ebx
mov eax, dword [eax]
call dword [eax + reloc.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov eax, dword [esp + 0x20]
jl 0x407a87
cmp eax, ebx
je 0x407a87
cmp dword [esp + 0x18], ebx
je 0x407a87
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x2a0], 7
push dword [esp + eax + 0x3c]
mov edi, dword [esp + 0x24]
lea esi, [esp + 0x30]
call fcn.004086b5
push ebx
push ebx
lea edx, [esp + 0x7c]
push edx
mov byte [esp + 0x2ac], 8
mov eax, dword [eax]
mov ecx, dword [edi]
push ebx
push eax
push edi
call dword [ecx + reloc.KERNEL32.dll_LoadLibraryW]
mov byte [esp + 0x2a0], 7
push dword [esp + 0x2c]
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp esi, ebx
jl 0x407a16
cmp word [esp + 0x74], 8
jne 0x407a16
mov edi, dword [esp + 0x7c]
cmp edi, ebx
jne 0x407a43
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [esp + 0x2a0], 3
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x407a37
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esp + 0x14], ebx
jne 0x407964
jmp 0x407a99
lea eax, [esp + 0x58]
push eax
call fcn.0041032b
pop ecx
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push ebx
mov byte [esp + 0x2a8], 9
call fcn.00405f88
push ebx
push 1
lea esi, [esp + 0x60]
call fcn.004064c2
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [esp + 0x2a0], 3
mov eax, dword [esp + 0x20]
jmp 0x407a8f
mov byte [esp + 0x2a0], 3
cmp eax, ebx
je 0x407a99
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2a0], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x407aaf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add dword [esp + 0x1c], 8
cmp dword [esp + 0x1c], 0x20
jl 0x4078e8
mov byte [esp + 0x2a0], bl
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x407ad4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [esp + 0x24]
or dword [esp + 0x2a0], 0xffffffff
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x407aee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [edi + 0x14], ebx
jne 0x407bb7
xor eax, eax
mov esi, 0x206
push esi
mov word [esp + 0x88], ax
lea eax, [esp + 0x8a]
push ebx
push eax
call fcn.00421bc0
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x30]
push eax
push 0x436858
push 0x436878
push 0x80000001
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x407b67
cmp word [esp + 0x84], bx
je 0x407b67
lea eax, [esp + 0x84]
push eax
push edi
call fcn.00405e4f
cmp dword [edi + 0x14], ebx
jne 0x407bb7
mov esi, 0x43358c
lea edi, [esp + 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x74]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jl 0x407bb7
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.ole32.dll_StringFromIID]
test eax, eax
jl 0x407bb7
push dword [esp + 0x10]
push dword [esp + 0x28]
call fcn.00405e4f
push dword [esp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0041f23c
mov esp, ebp
pop ebp
ret