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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3330
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x572734]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00406200
mov dword [ebp - 0x98], eax
mov byte [ebp - 0x11], 0
push str.select__from
lea ecx, [ebp - 0x40]
call fcn.004153a0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xbc]
call fcn.004153a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xbc]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00415710
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.00415310
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x54d7a0
push 1
push 0
push 0x54d790
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x40c83f
mov byte [ebp - 0x22], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00415310
mov al, byte [ebp - 0x22]
jmp 0x40cc46
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x5000b4
lea ecx, [ebp - 0x94]
call fcn.004090b0
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.00409210
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.00409190
cmp dword [ebp - 0x10], 0
jge 0x40c8d7
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.00415310
mov al, byte [ebp - 0x24]
jmp 0x40cc46
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 0x40c92f
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.00415310
mov al, byte [ebp - 0x21]
jmp 0x40cc46
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.004157f0
push eax
lea ecx, [ebp - 0x68]
call fcn.004090b0
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.00409210
push eax
push 0x5000f0
lea ecx, [ebp - 0x5c]
call fcn.0040fd20
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.00409210
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.00409190
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00409190
cmp dword [ebp - 0x10], 0
jl 0x40cbf2
cmp dword [ebp - 0x28], 0
je 0x40cbf2
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 0x40cbf2
cmp dword [ebp - 0x20], 0
je 0x40cbf2
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.004090b0
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.00409210
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.00409190
lea ecx, [ebp - 0x34]
call fcn.004152e0
mov byte [ebp - 4], 6
cmp dword [ebp - 0x10], 0
jl 0x40ca8b
movzx ecx, word [ebp - 0x78]
cmp ecx, 8
jne 0x40ca8b
mov edx, dword [ebp - 0x70]
push edx
call fcn.00414270
add esp, 4
push eax
lea ecx, [ebp - 0x34]
call fcn.004155b0
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0x10], 0
je 0x40cb84
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCR120.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x40cb84
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.004090b0
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.00409210
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.00409190
cmp dword [ebp - 0x10], 0
jl 0x40cb7a
movzx ecx, word [ebp - 0x78]
cmp ecx, 8
jne 0x40cb7a
mov edx, dword [ebp - 0x70]
push edx
call fcn.00414270
add esp, 4
push eax
lea ecx, [ebp - 0xa4]
call fcn.004153a0
mov byte [ebp - 4], 8
push 0x5000f4
lea ecx, [ebp - 0xb0]
call fcn.004153a0
mov byte [ebp - 4], 9
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x34]
call fcn.00415710
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xb0]
call fcn.00415310
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00415710
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa4]
call fcn.00415310
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x34]
call fcn.00415d20
test eax, eax
jne 0x40cbd8
lea ecx, [ebp - 0x34]
call fcn.00415810
mov ecx, dword [ebp + 0x18]
cmp eax, dword [ecx]
jge 0x40cbcb
lea ecx, [ebp - 0x34]
call fcn.00415810
add eax, 1
push eax
lea ecx, [ebp - 0x34]
call fcn.004157f0
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.00415810
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.00415310
cmp dword [ebp - 0x1c], 0
je 0x40cc06
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 0x40cc1a
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 0x40cc2e
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.00415310
mov al, byte [ebp - 0x23]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret