Function at 0x40fc10
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4332fc
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x446074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x40fd95
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x40fd8f
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x434290
push 1
push 0
push 0x434280
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40fd8f
push 0xc
mov dword [ebp - 0x10], 0
call fcn.00412827
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x40fcd7
push str.ROOTCIMV2
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x40ff5d
jmp 0x40fcd9
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x40ff67
lea edx, [ebp - 0x10]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14]
push edx
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push dword [esi]
push eax
call dword [ecx + 0xc]
or edi, 0xffffffff
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jne 0x40fd5e
mov ecx, dword [esi]
test ecx, ecx
je 0x40fd39
push ecx
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40fd50
push eax
call fcn.00412857
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004127f6
mov eax, dword [ebp - 0x20]
add esp, 8
test eax, eax
js 0x40fd86
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x40fda9
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.SELECT__FROM_Win32_ComputerSystemProduct
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
call fcn.0040ff80
mov esi, eax
push 0x441230
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 2
call fcn.0040ff80
mov byte [ebp - 4], 3
mov esi, dword [esi]
test esi, esi
je 0x40fde1
mov esi, dword [esi]
jmp 0x40fde3
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x40fded
mov edx, dword [eax]
jmp 0x40fdef
xor edx, edx
mov eax, dword [ebp - 0x10]
lea ebx, [ebp - 0x18]
push ebx
push 0
push 0x30
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0x50]
mov esi, dword [ebp - 0x20]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x2c], eax
test esi, esi
je 0x40fe58
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40fe51
test esi, esi
je 0x40fe51
mov eax, dword [esi]
test eax, eax
je 0x40fe2f
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40fe46
push eax
call fcn.00412857
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004127f6
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x40fea3
lock xadd dword [esi + 8], edi
dec edi
jne 0x40fea3
test esi, esi
je 0x40fea3
mov eax, dword [esi]
test eax, eax
je 0x40fe81
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40fe98
push eax
call fcn.00412857
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004127f6
add esp, 8
cmp dword [ebp - 0x2c], 0
jl 0x40fd7d
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
test ecx, ecx
je 0x40ff28
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ecx]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x1c]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x24], 0
je 0x40ff28
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x40]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push 0x441234
push eax
call dword [ecx + 0x10]
mov ecx, dword [ebp - 0x38]
mov edx, 0x4482b8
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40ff02
lea eax, [ebp - 0x40]
push eax
call esi
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x40fec8
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.00410110
push 0x8007000e
call fcn.00410110
int3