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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a82f1
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4dbc40]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov eax, dword [0x4dbc40]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
mov edi, ecx
push ebx
mov dword [esp + 0x30], 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 0x40c0ba
cmp eax, 0x80010119
jne 0x40c3d0
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x2c]
push eax
push 0x4b7980
push 1
push ebx
push 0x4b7a50
mov dword [esp + 0x29c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x40c3ba
mov dword [esp + 0x10], ebx
mov byte [esp + 0x288], 1
mov esi, dword [esp + 0x2c]
push str.ROOTCIMV2
lea edi, [esp + 0x1c]
call fcn.0040961b
mov byte [esp + 0x288], 2
mov eax, dword [eax]
cmp eax, ebx
je 0x40c115
mov eax, dword [eax]
jmp 0x40c117
xor eax, eax
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push esi
call dword [ecx + 0xc]
lea edi, [esp + 0x18]
mov esi, eax
call fcn.00409751
cmp esi, ebx
jl 0x40c3a1
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 0x40c3a1
mov eax, str.SerialNumber
mov dword [esp + 0x3c], str.SELECT__FROM_Win32_BIOS
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], str.SELECT__FROM_Win32_Processor
mov dword [esp + 0x48], str.ProcessorId
mov dword [esp + 0x4c], str.SELECT__FROM_Win32_BaseBoard
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], str.SELECT__FROM_Win32_PhysicalMedia
mov dword [esp + 0x58], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x288], 3
push dword [esp + eax + 0x3c]
mov esi, dword [esp + 0x14]
lea edi, [esp + 0x38]
call fcn.0040961b
mov dword [esp + 0x18], eax
push 0x4c5498
lea edi, [esp + 0x3c]
mov byte [esp + 0x28c], 4
call fcn.0040e64f
mov byte [esp + 0x288], 5
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
cmp ecx, ebx
je 0x40c1e6
mov ecx, dword [ecx]
jmp 0x40c1e8
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x40c1f2
mov eax, dword [eax]
jmp 0x40c1f4
xor eax, eax
mov edx, dword [esi]
lea edi, [esp + 0x14]
push edi
push ebx
push 0x30
push ecx
push eax
push esi
call dword [edx + 0x50]
lea edi, [esp + 0x38]
mov esi, eax
call fcn.00409751
lea edi, [esp + 0x34]
call fcn.00409751
cmp esi, ebx
jl 0x40c37b
jmp 0x40c2ff
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x290], 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 + 0x10]
cmp eax, ebx
mov eax, dword [esp + 0x20]
jl 0x40c369
cmp eax, ebx
je 0x40c369
cmp dword [esp + 0x18], ebx
je 0x40c369
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x288], 7
push dword [esp + eax + 0x40]
mov esi, dword [esp + 0x24]
lea edi, [esp + 0x34]
call fcn.0040961b
mov byte [esp + 0x288], 8
mov eax, dword [eax]
cmp eax, ebx
je 0x40c2a8
mov eax, dword [eax]
jmp 0x40c2aa
xor eax, eax
mov ecx, dword [esi]
push ebx
push ebx
lea edx, [esp + 0x64]
push edx
push ebx
push eax
push esi
call dword [ecx + 0x10]
lea edi, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x288], 7
call fcn.00409751
cmp esi, ebx
jl 0x40c2de
cmp word [esp + 0x5c], 8
jne 0x40c2de
cmp dword [esp + 0x64], ebx
jne 0x40c30b
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [esp + 0x288], 3
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40c2ff
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esp + 0x14], ebx
jne 0x40c225
jmp 0x40c37b
push dword [esp + 0x64]
lea eax, [esp + 0x28]
push eax
call fcn.00405fc5
lea eax, [esp + 0x24]
mov byte [esp + 0x288], 9
call fcn.00406196
lea eax, [esp + 0x24]
call fcn.00406145
mov eax, dword [esp + 0x24]
push dword [eax - 0xc]
push eax
mov eax, dword [esp + 0x30]
call fcn.004063b2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.00404bfa
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [esp + 0x288], 3
mov eax, dword [esp + 0x20]
jmp 0x40c371
mov byte [esp + 0x288], 3
cmp eax, ebx
je 0x40c37b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x288], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40c391
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add dword [esp + 0x1c], 8
cmp dword [esp + 0x1c], 0x20
jl 0x40c195
mov byte [esp + 0x288], bl
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40c3b6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [esp + 0x28]
or dword [esp + 0x288], 0xffffffff
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40c3d0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jne 0x40c438
xor eax, eax
mov esi, 0x206
push esi
mov word [esp + 0x70], ax
lea eax, [esp + 0x72]
push ebx
push eax
call fcn.0048e0e0
add esp, 0xc
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x3c]
push eax
push str.Default_User_ID
push str.Identities
push 0x80000001
mov dword [esp + 0x4c], 1
mov dword [esp + 0x48], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40c438
cmp word [esp + 0x6c], bx
je 0x40c438
lea eax, [esp + 0x6c]
push eax
push edi
call fcn.00406003
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jne 0x40c48a
mov esi, 0x4c629c
lea edi, [esp + 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x5c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jl 0x40c48a
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.ole32.dll_StringFromIID]
test eax, eax
jl 0x40c48a
push dword [esp + 0x10]
push dword [esp + 0x2c]
call fcn.00406003
push dword [esp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.00488e60
mov esp, ebp
pop ebp
ret