Function at 0x4105e0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, edx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], eax
push esi
push edi
test ebx, ebx
je 0x4106d4
test ecx, ecx
je 0x4106d4
test eax, eax
je 0x4106d4
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]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
push 0x42e760
push 1
push 0
push 0x42e770
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4106d4
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x4106d4
lea edx, [ebp - 0x218]
mov dword [ebp - 0x218], 0
mov eax, dword [ecx]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push str.ROOTCIMV2
push ecx
call dword [eax + 0xc]
test eax, eax
js 0x4106c8
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x4106c8
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x4106e7
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret
push ecx
push str.SELECT__FROM
push ecx
mov edi, 0x104
lea ecx, [ebp - 0x214]
mov edx, edi
call fcn.00401190
mov ecx, edi
lea eax, [ebp - 0x214]
cmp word [eax], 0
je 0x410716
add eax, 2
sub ecx, 1
jne 0x410708
mov eax, edi
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x41073b
push ecx
push ebx
push ecx
sub edi, esi
lea ecx, [ebp - 0x214]
lea ecx, [ecx + esi*2]
mov edx, edi
call fcn.00401190
mov eax, dword [ebp - 0x218]
lea edx, [ebp - 0x220]
push edx
push 0
push 0x30
lea edx, [ebp - 0x214]
mov dword [ebp - 0x220], 0
mov ecx, dword [eax]
push edx
push 0x4363d4
push eax
call dword [ecx + 0x50]
test eax, eax
js 0x4106bc
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x4106bc
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor edi, edi
mov ebx, dword [ebp - 0x22c]
mov dword [ebp - 0x224], edi
mov eax, dword [ecx]
lea edx, [ebp - 0x224]
push edx
lea edx, [ebp - 0x228]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x224], 0
je 0x410829
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x244]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push dword [ebp - 0x230]
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x41080f
cmp word [ebp - 0x244], 8
jne 0x410806
push ecx
push dword [ebp - 0x23c]
mov edx, 0x100
push ecx
mov ecx, ebx
call fcn.00401190
mov edi, 1
lea eax, [ebp - 0x244]
push eax
call esi
mov eax, dword [ebp - 0x228]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x220]
test ecx, ecx
jne 0x410792
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 0x220]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret