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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, 1
push ecx
sub esp, 0x98
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
cmp esi, 1
jg 0x401617
jmp 0x40165d
add ebx, 1
cmp esi, ebx
je 0x40165d
mov eax, dword [edi + ebx*4]
cmp word [eax], 0x2f
jne 0x401680
test byte [section..data], 1
je 0x401610
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.command_line_switch__s_not_supported_n
add ebx, 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
cmp esi, ebx
jne 0x401617
mov eax, 0x65
call sym._output_error.isra.0
mov esi, 1
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
cmp esi, ebx
jle 0x40165d
lea eax, [ebx*4]
lea ecx, [edi + eax]
mov dword [ebp - 0x64], eax
mov dword [esp + 4], str.quit
mov eax, dword [ecx]
mov dword [ebp - 0x5c], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [ebp - 0x60], eax
call eax
mov ecx, dword [ebp - 0x5c]
test eax, eax
je 0x4016cb
mov dword [esp + 4], str.exit
mov eax, dword [ecx]
mov dword [ebp - 0x5c], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x60]
call eax
test eax, eax
jne 0x4016e0
lea esp, [ebp - 0x10]
xor esi, esi
pop ecx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 4], str.class
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx]
mov dword [esp], eax
mov eax, dword [ebp - 0x60]
call eax
mov ecx, dword [ebp - 0x5c]
test eax, eax
je 0x401718
mov dword [esp + 4], str.context
mov eax, dword [ecx]
mov dword [ebp - 0x5c], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x60]
call eax
mov ecx, dword [ebp - 0x5c]
test eax, eax
jne 0x401759
test byte [section..data], 1
je 0x40165d
mov eax, dword [ecx]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.command__s_not_supported_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40165d
mov dword [esp + 4], str.path
mov eax, dword [ecx]
mov dword [ebp - 0x5c], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x60]
call eax
mov ecx, dword [ebp - 0x5c]
test eax, eax
jne 0x401b3a
add ebx, 1
cmp esi, ebx
jle 0x401ba0
mov eax, dword [ebp - 0x64]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0x5c], eax
lea eax, [ebx + 1]
cmp esi, eax
jle 0x40165d
lea ecx, [eax*4]
mov dword [ebp - 0x64], ecx
mov dword [esp + 4], 0x4040a6
mov eax, dword [edi + eax*4]
mov dword [esp], eax
mov eax, dword [ebp - 0x60]
call eax
test eax, eax
jne 0x40165d
add ebx, 2
mov ecx, dword [ebp - 0x64]
cmp esi, ebx
jle 0x40165d
mov eax, dword [edi + ecx + 4]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x44], 0
test byte [section..data], 8
jne 0x401dbf
mov dword [esp], 0
call sym._CoInitialize_4
sub esp, 4
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0
call sym._CoInitializeSecurity_36
lea eax, [ebp - 0x4c]
sub esp, 0x24
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x4044a0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x4044c0
call sym._CoCreateInstance_20
sub esp, 0x14
test eax, eax
jne 0x401e30
mov dword [esp], str.ROOTCIMV2
call sym._SysAllocString_4
mov dword [ebp - 0x70], eax
sub esp, 4
mov edi, eax
test eax, eax
je 0x401e30
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
mov edx, dword [eax]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x24
test eax, eax
jne 0x401e5f
mov eax, dword [ebp - 0x5c]
cmp word [eax], 0
je 0x401e57
add eax, 2
cmp word [eax], 0
jne 0x401903
mov edx, dword [ebp - 0x5c]
mov dword [esp], 0
sub eax, edx
sar eax, 1
add eax, 0xf
mov dword [esp + 4], eax
call sym._SysAllocStringLen_8
sub esp, 8
mov ebx, eax
test eax, eax
je 0x401e47
xor eax, eax
movzx edx, word [eax + str.SELECT__FROM]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x401935
cmp word [ebx], 0
mov eax, ebx
je 0x401959
add eax, 2
cmp word [eax], 0
jne 0x401950
xor edx, edx
mov ecx, dword [ebp - 0x5c]
movzx ecx, word [ecx + edx]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x40195b
mov dword [esp], 0x4040ea
call sym._SysAllocString_4
mov dword [ebp - 0x68], eax
sub esp, 4
mov edi, eax
test eax, eax
je 0x401e23
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x44]
mov edx, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x50]
sub esp, 0x18
mov esi, eax
test eax, eax
jne 0x401e16
xor eax, eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x6c], 0
mov esi, eax
mov dword [ebp - 0x5c], ebx
jmp 0x401a1c
mov edx, dword [eax]
lea ebx, [ebp - 0x28]
mov dword [esp + 4], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0x18
test eax, eax
je 0x401baf
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x3c]
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x40]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x3c]
sub esp, 0x14
test eax, eax
je 0x401c93
mov eax, dword [ebp - 0x40]
test esi, esi
jne 0x4019d8
mov dword [ebp - 0x30], 0
mov edx, dword [eax]
lea ecx, [ebp - 0x38]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x1c]
sub esp, 0x14
test eax, eax
jne 0x401db4
lea eax, [ebp - 0x30]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._SafeArrayGetUBound_12
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
sub esp, 0xc
test eax, eax
js 0x401bff
lea edi, [ebp - 0x2c]
lea ebx, [ebp - 0x34]
jmp 0x401ae0
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp - 0x30]
jg 0x401bff
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._SafeArrayGetElement_12
mov eax, dword [ebp - 0x64]
sub esp, 0xc
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [ebp - 0x60]
call eax
test eax, eax
jne 0x401ace
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov ebx, eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._SafeArrayDestroy_4
sub esp, 4
test ebx, ebx
je 0x401db4
mov eax, dword [ebp - 0x40]
mov esi, ebx
jmp 0x4019d8
mov eax, dword [ecx]
mov dword [ebp - 0x68], edi
xor ecx, ecx
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x64], esi
mov ebx, eax
mov esi, ecx
mov eax, dword [esi*8 + 0x404320]
mov dword [esp], ebx
mov dword [esp + 4], eax
call edi
test eax, eax
je 0x401b79
add esi, 1
cmp esi, 0xa
jne 0x401b4e
mov eax, 0x66
call sym._output_error.isra.0
jmp 0x401667
mov ecx, esi
mov ebx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x64]
mov eax, dword [ecx*8 + 0x404324]
mov edi, dword [ebp - 0x68]
mov dword [ebp - 0x5c], eax
test eax, eax
jne 0x40178e
jmp 0x401b6a
mov eax, 0x68
call sym._output_error.isra.0
jmp 0x401667
mov dword [esp + 0xc], 8
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], ebx
call sym._VariantChangeType_16
mov edx, dword [ebp - 0x20]
sub esp, 0x10
cmp word [edx], 0
je 0x401bef
mov eax, edx
add eax, 2
cmp word [eax], 0
jne 0x401bd9
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x6c], eax
jb 0x401dff
mov dword [esp], ebx
call sym._VariantClear_4
sub esp, 4
jmp 0x401a0e
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], esi
mov dword [esp], eax
call sym._SafeArrayDestroy_4
sub esp, 4
mov eax, 0x67
or esi, 0xffffffff
call sym._output_error.isra.0
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x401c32
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x401c44
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x401c56
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call sym._SysFreeString_4
sub esp, 4
mov dword [esp], ebx
call sym._SysFreeString_4
mov eax, dword [ebp - 0x68]
sub esp, 4
mov dword [esp], eax
call sym._SysFreeString_4
mov eax, dword [ebp - 0x5c]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
call sym._CoUninitialize_0
jmp 0x40166c
mov eax, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], esi
mov edi, 1
mov esi, dword [ebp - 0x74]
add eax, 2
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 4
jmp 0x401d02
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov ecx, dword [ebp - 0x5c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x10]
sub esp, 0x18
test eax, eax
je 0x401d51
mov eax, dword [ebp - 0x40]
xor edi, edi
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x3c]
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x40]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x3c]
sub esp, 0x14
test eax, eax
je 0x401c20
test edi, edi
je 0x401cba
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
call sym._output_header.isra.0
jmp 0x401cba
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], 8
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], eax
call sym._VariantChangeType_16
mov edi, dword [ebp - 0x20]
sub esp, 0x10
mov dword [esp], 0xfffffff5
call dword [sym.imp.kernel32.dll_GetStdHandle]
sub esp, 4
mov dword [esp + 0xc], edi
mov edx, dword [ebp - 0x60]
mov dword [esp + 4], str.__s_r_n
mov dword [esp + 8], edx
mov dword [esp], eax
call dbg.output_string
lea eax, [ebp - 0x28]
mov dword [esp], eax
call sym._VariantClear_4
sub esp, 4
jmp 0x401cf2
mov ebx, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], esi
jmp 0x401c13
call sym._wine_dbgstr_wn.constprop.0
mov ebx, eax
mov eax, dword [ebp - 0x5c]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._s___s_n
mov dword [esp + 8], str.query_prop
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4017f5
mov eax, edx
add eax, 2
cmp word [eax], 0
jne 0x401e01
sub eax, edx
sar eax, 1
mov dword [ebp - 0x6c], eax
jmp 0x401bef
xor eax, eax
or esi, 0xffffffff
mov dword [ebp - 0x5c], eax
jmp 0x401c20
xor edx, edx
or esi, 0xffffffff
mov dword [ebp - 0x5c], edx
jmp 0x401c20
xor eax, eax
or esi, 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x5c], eax
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x70], eax
jmp 0x401c20
xor ecx, ecx
or esi, 0xffffffff
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x68], ecx
jmp 0x401c20
mov eax, dword [ebp - 0x5c]
jmp 0x40190c
xor ebx, ebx
xor edi, edi
or esi, 0xffffffff
mov dword [ebp - 0x5c], ebx
xor ebx, ebx
mov dword [ebp - 0x68], edi
jmp 0x401c20