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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42321a
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x42f6dc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x23c], ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x234], 0
movq xmm0, qword [str.SELECT__FROM]
mov dword [ebp - 0x238], eax
mov eax, dword [0x42b21c]
mov dword [ebp - 0x20c], eax
mov ax, word [0x42b220]
mov word [ebp - 0x208], ax
mov al, byte [0x42b222]
push 0x1f1
mov byte [ebp - 0x206], al
lea eax, [ebp - 0x205]
push 0
push eax
movq qword [ebp - 0x214], xmm0
call fcn.004103e0
push esi
lea eax, [ebp - 0x214]
push 0x200
push eax
call fcn.0040b78e
add esp, 0x18
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x40a4cb
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 - 0x218]
push eax
push 0x425364
push 1
push 0
push 0x425434
mov dword [ebp - 0x218], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40a4c5
mov dword [ebp - 0x21c], 0
test edi, edi
jne 0x40a415
push str.ROOTCIMV2
lea ecx, [ebp - 0x228]
call fcn.0040a9e0
mov dword [ebp - 4], edi
lea ebx, [edi + 1]
jmp 0x40a42d
push edi
lea ecx, [ebp - 0x224]
call fcn.0040a9e0
mov dword [ebp - 4], 1
mov ebx, 2
mov eax, dword [eax]
mov dword [ebp - 0x234], ebx
test eax, eax
je 0x40a43d
mov edx, dword [eax]
jmp 0x40a43f
xor edx, edx
mov eax, dword [ebp - 0x218]
lea esi, [ebp - 0x21c]
mov ecx, dword [eax]
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
mov esi, eax
test bl, 2
je 0x40a474
lea ecx, [ebp - 0x224]
and ebx, 0xfffffffd
call fcn.0040a980
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x40a48b
lea ecx, [ebp - 0x228]
call fcn.0040a980
test esi, esi
js 0x40a4b9
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x40a4d5
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x40a677
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x220], 0
call fcn.0040a8f0
mov esi, eax
push 0x42b23c
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 2
call fcn.0040a8f0
mov byte [ebp - 4], 3
mov esi, dword [esi]
test esi, esi
je 0x40a518
mov esi, dword [esi]
jmp 0x40a51a
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x40a524
mov edx, dword [eax]
jmp 0x40a526
xor edx, edx
mov eax, dword [ebp - 0x21c]
lea edi, [ebp - 0x220]
mov ecx, dword [eax]
push edi
push 0
push 0x30
push esi
push edx
push eax
call dword [ecx + 0x50]
lea ecx, [ebp - 0x228]
mov esi, eax
call fcn.0040a980
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a980
test esi, esi
js 0x40a4ad
mov ebx, dword [ebp - 0x23c]
push 0x400
push 0
push ebx
mov dword [ebp - 0x230], 0
call fcn.004103e0
mov ecx, dword [ebp - 0x220]
add esp, 0xc
test ecx, ecx
je 0x40a64b
mov eax, dword [ecx]
lea edx, [ebp - 0x230]
push edx
lea edx, [ebp - 0x22c]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x230], 0
je 0x40a64b
mov eax, dword [ebp - 0x22c]
push 0
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x24c]
push edx
push 0
push dword [ebp - 0x238]
push eax
call dword [ecx + 0x10]
mov edx, dword [ebp - 0x244]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a5e3
push 0
push 0
push 0x400
push ebx
sub ecx, esi
sar ecx, 1
push ecx
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add ebx, eax
lea edi, [ebx - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x40a610
mov ax, word [0x42acdc]
mov word [edi], ax
lea eax, [ebp - 0x24c]
push eax
inc ebx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x220]
test ecx, ecx
jne 0x40a594
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040b6df
mov esp, ebp
pop ebp
ret