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

Disassembly:
mov eax, 0x4339bc
call fcn.0041fd6c
sub esp, 0x2c
push ebx
push edi
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push 0x4367d0
inc edi
xor ebx, ebx
push edi
push ebx
push 0x4368a0
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40c3ff
xor al, al
jmp 0x40c5db
push str.ROOTCIMV2
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.0040c2d0
mov eax, dword [eax]
mov dword [ebp - 4], ebx
test eax, eax
je 0x40c41c
mov ecx, dword [eax]
jmp 0x40c41e
mov ecx, ebx
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push esi
push edx
push ebx
mov esi, dword [eax]
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
mov ecx, dword [esi + 0xc]
push eax
call dword [0x434278]
call dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
mov esi, eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x40c44e
call fcn.0040c399
test esi, esi
js 0x40c4fe
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x40c4eb
push str.SELECT__FROM_Win32_OperatingSystem
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
call fcn.0040c27e
mov esi, eax
push 0x434978
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.0040c27e
mov ecx, dword [esi]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x40c49d
mov edx, dword [ecx]
jmp 0x40c49f
mov edx, ebx
mov eax, dword [eax]
test eax, eax
je 0x40c4a9
mov ecx, dword [eax]
jmp 0x40c4ab
mov ecx, ebx
mov eax, dword [ebp - 0x10]
lea edi, [ebp - 0x18]
push edi
push ebx
push 0x30
mov esi, dword [eax]
push edx
push ecx
push eax
mov ecx, dword [esi + 0x50]
call dword [0x434278]
call dword [esi + 0x50]
mov ecx, dword [ebp - 0x20]
mov esi, eax
test ecx, ecx
je 0x40c4d7
call fcn.0040c399
mov dword [ebp - 0x20], ebx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x40c4e7
call fcn.0040c399
test esi, esi
jns 0x40c518
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x434278]
call esi
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x434278]
call esi
xor al, al
jmp 0x40c5da
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
test eax, eax
je 0x40c59f
xor edi, edi
mov esi, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [esi + 0x10]
push 1
push 0xffffffffffffffff
push eax
call dword [0x434278]
call dword [esi + 0x10]
cmp dword [ebp - 0x24], edi
je 0x40c59f
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x38]
push edi
push edi
push ecx
mov esi, dword [eax]
push edi
push 0x43497c
push eax
mov ecx, dword [esi + 0x10]
call dword [0x434278]
call dword [esi + 0x10]
push str.Windows_10
push dword [ebp - 0x30]
call fcn.004232cc
test eax, eax
pop ecx
setne al
or bl, al
lea eax, [ebp - 0x38]
pop ecx
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x434278]
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40c527
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x434278]
call esi
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x434278]
call esi
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x434278]
call esi
mov al, bl
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret