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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e19a0
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x56f734]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00405870
mov dword [ebp - 0x98], eax
mov byte [ebp - 0x11], 0
push str.select__from
lea ecx, [ebp - 0x40]
call fcn.00414370
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00414370
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xbc]
push ecx
lea ecx, [ebp - 0x40]
call fcn.004146e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.004142e0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x54ac20
push 1
push 0
push 0x54ac10
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x40bbff
mov byte [ebp - 0x22], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004142e0
mov al, byte [ebp - 0x22]
jmp 0x40c006
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push str.ROOTCIMV2
lea ecx, [ebp - 0x94]
call fcn.00408500
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x8c], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x8c]
call fcn.00408620
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [eax + 0xc]
call edx
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x94]
call fcn.004085e0
cmp dword [ebp - 0x10], 0
jge 0x40bc97
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ecx + 8]
call eax
mov byte [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004142e0
mov al, byte [ebp - 0x24]
jmp 0x40c006
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x40bcef
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ecx + 8]
call eax
mov byte [ebp - 0x21], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004142e0
mov al, byte [ebp - 0x21]
jmp 0x40c006
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0x30
lea ecx, [ebp - 0x40]
call fcn.004147c0
push eax
lea ecx, [ebp - 0x68]
call fcn.00408500
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x80], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x80]
call fcn.00408620
push eax
push 0x4fe0d0
lea ecx, [ebp - 0x5c]
call fcn.0040eff0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x44]
call fcn.00408620
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [edx + 0x50]
call ecx
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.004085e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.004085e0
cmp dword [ebp - 0x10], 0
jl 0x40bfb2
cmp dword [ebp - 0x28], 0
je 0x40bfb2
mov dword [ebp - 0x64], 0
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x20]
push eax
push 1
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [edx + 0x10]
call ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x40bfb2
cmp dword [ebp - 0x20], 0
je 0x40bfb2
push 0
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x78]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x88]
call fcn.00408500
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x84], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x84]
call fcn.00408620
push eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ecx + 0x10]
call eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.004085e0
lea ecx, [ebp - 0x34]
call fcn.004142b0
mov byte [ebp - 4], 6
cmp dword [ebp - 0x10], 0
jl 0x40be4b
movzx ecx, word [ebp - 0x78]
cmp ecx, 8
jne 0x40be4b
mov edx, dword [ebp - 0x70]
push edx
call fcn.004131a0
add esp, 4
push eax
lea ecx, [ebp - 0x34]
call fcn.00414580
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0x10], 0
je 0x40bf44
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCR120.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x40bf44
push 0
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x78]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x60]
call fcn.00408500
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x58], edx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x58]
call fcn.00408620
push eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ecx + 0x10]
call eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x60]
call fcn.004085e0
cmp dword [ebp - 0x10], 0
jl 0x40bf3a
movzx ecx, word [ebp - 0x78]
cmp ecx, 8
jne 0x40bf3a
mov edx, dword [ebp - 0x70]
push edx
call fcn.004131a0
add esp, 4
push eax
lea ecx, [ebp - 0xa4]
call fcn.00414370
mov byte [ebp - 4], 8
push 0x4fe0d4
lea ecx, [ebp - 0xb0]
call fcn.00414370
mov byte [ebp - 4], 9
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x34]
call fcn.004146e0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xb0]
call fcn.004142e0
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x34]
call fcn.004146e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa4]
call fcn.004142e0
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x34]
call fcn.00414db0
test eax, eax
jne 0x40bf98
lea ecx, [ebp - 0x34]
call fcn.004147e0
mov ecx, dword [ebp + 0x18]
cmp eax, dword [ecx]
jge 0x40bf8b
lea ecx, [ebp - 0x34]
call fcn.004147e0
add eax, 1
push eax
lea ecx, [ebp - 0x34]
call fcn.004147c0
push eax
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0x34]
call fcn.004147e0
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ecx + 8]
call eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004142e0
cmp dword [ebp - 0x1c], 0
je 0x40bfc6
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [edx + 8]
call ecx
cmp dword [ebp - 0x18], 0
je 0x40bfda
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [eax + 8]
call edx
cmp dword [ebp - 0x28], 0
je 0x40bfee
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ecx + 8]
call eax
mov cl, byte [ebp - 0x11]
mov byte [ebp - 0x23], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004142e0
mov al, byte [ebp - 0x23]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret