Function at 0x4017c0
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 0x4017f7
jmp 0x40183d
add ebx, 1
cmp esi, ebx
je 0x40183d
mov eax, dword [edi + ebx*4]
cmp word [eax], 0x2f
jne 0x401860
test byte [section..data], 1
je 0x4017f0
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___func__
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
cmp esi, ebx
jne 0x4017f7
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 0x40183d
lea eax, [ebx*4]
lea ecx, [edi + eax]
mov dword [ebp - 0x54], eax
mov dword [esp + 4], str.quit
mov eax, dword [ecx]
mov dword [ebp - 0x4c], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [ebp - 0x50], eax
call eax
mov ecx, dword [ebp - 0x4c]
test eax, eax
je 0x4018ab
mov dword [esp + 4], str.exit
mov eax, dword [ecx]
mov dword [ebp - 0x4c], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x50]
call eax
test eax, eax
jne 0x4018c0
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 - 0x4c]
mov eax, dword [ecx]
mov dword [esp], eax
mov eax, dword [ebp - 0x50]
call eax
mov ecx, dword [ebp - 0x4c]
test eax, eax
je 0x4018f8
mov dword [esp + 4], str.context
mov eax, dword [ecx]
mov dword [ebp - 0x4c], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x50]
call eax
mov ecx, dword [ebp - 0x4c]
test eax, eax
jne 0x401939
test byte [section..data], 1
je 0x40183d
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___func__
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40183d
mov dword [esp + 4], str.path
mov eax, dword [ecx]
mov dword [ebp - 0x4c], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x50]
call eax
mov ecx, dword [ebp - 0x4c]
test eax, eax
jne 0x401e85
add ebx, 1
cmp esi, ebx
jle 0x401f04
mov eax, dword [ebp - 0x54]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0x58], eax
lea eax, [ebx + 1]
cmp esi, eax
jle 0x40183d
lea ecx, [eax*4]
mov dword [ebp - 0x4c], ecx
mov dword [esp + 4], 0x4040fe
mov eax, dword [edi + eax*4]
mov dword [esp], eax
mov eax, dword [ebp - 0x50]
call eax
test eax, eax
jne 0x40183d
add ebx, 2
mov ecx, dword [ebp - 0x4c]
cmp esi, ebx
jle 0x40183d
mov dword [ebp - 0x40], 0
mov ebx, dword [edi + ecx + 4]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
test byte [section..data], 8
jne 0x40222c
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitialize]
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 dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x40]
sub esp, 0x24
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x404588
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x4045a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
jne 0x40227d
mov eax, dword [sym.imp.oleaut32.dll_SysAllocString]
mov dword [esp], str.ROOTCIMV2
mov dword [ebp - 0x50], eax
call eax
mov dword [ebp - 0x64], eax
sub esp, 4
mov edi, eax
test eax, eax
je 0x40227d
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x3c]
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 0x40232d
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
mov eax, dword [ebp - 0x50]
call eax
mov dword [ebp - 0x5c], eax
sub esp, 4
mov edi, eax
test eax, eax
je 0x40230e
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x18]
mov esi, eax
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 0x18
mov dword [esp], edi
mov dword [ebp - 0x4c], eax
call eax
sub esp, 4
test esi, esi
jne 0x4022c4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x5c], eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov esi, eax
test eax, eax
je 0x4022b7
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x40226e
xor ebx, ebx
mov word [eax], bx
mov eax, dword [sym.imp.ucrtbase.dll_wcstok_s]
lea ebx, [ebp - 0x28]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x40413c
mov dword [esp], esi
mov dword [ebp - 0x60], eax
call eax
mov edx, eax
test eax, eax
je 0x401c73
mov dword [ebp - 0x54], esi
movzx eax, word [edx]
mov esi, edx
cmp ax, 0x20
jne 0x401f13
lea esi, [esi]
nop
add esi, 2
cmp word [esi], 0x20
je 0x401bc0
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x401bd0
sub eax, edx
sub eax, 2
add eax, edx
jae 0x401bf5
jmp 0x401bfb
xor ecx, ecx
sub eax, 2
mov word [eax + 2], cx
cmp eax, edx
jb 0x401bfb
cmp word [eax], 0x20
je 0x401be8
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], edx
call dword [eax + 0x10]
sub esp, 0x18
test eax, eax
js 0x4021ed
cmp word [edi], 0
mov edx, dword [sym.imp.ucrtbase.dll_wcscat]
jne 0x401ee8
mov dword [esp + 4], esi
mov dword [esp], edi
call edx
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x40413c
mov dword [esp], 0
mov eax, dword [ebp - 0x60]
call eax
mov edx, eax
test eax, eax
jne 0x401ba8
mov esi, dword [ebp - 0x54]
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], esi
mov dword [ebp - 0x54], eax
call eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov edx, dword [ebp - 0x58]
sub esp, 4
cmp word [edx], 0
mov eax, edx
je 0x401ca2
add eax, 2
cmp word [eax], 0
jne 0x401c99
mov edx, dword [ebp - 0x58]
sub eax, edx
sar eax, 1
cmp word [edi], 0
mov edx, eax
mov eax, edi
je 0x401cbc
add eax, 2
cmp word [eax], 0
jne 0x401cb3
sub eax, edi
mov dword [esp], 0
sar eax, 1
lea esi, [edx + eax + 0xf]
mov dword [esp + 4], esi
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
mov dword [ebp - 0x60], eax
sub esp, 8
test eax, eax
je 0x4022aa
mov edx, dword [ebp - 0x58]
mov dword [esp + 4], esi
mov esi, eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edx
mov dword [esp + 8], str.SELECT__s_FROM__s
mov dword [esp], eax
call sym._swprintf.constprop.0
mov dword [esp], 0x404140
mov eax, dword [ebp - 0x50]
call eax
mov dword [ebp - 0x5c], eax
sub esp, 4
test eax, eax
je 0x4022a2
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x38]
mov edx, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], esi
mov ecx, dword [ebp - 0x5c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x50]
sub esp, 0x18
test eax, eax
jne 0x4022a2
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x30]
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 - 0x2c]
sub esp, 0x14
test eax, eax
je 0x401f26
mov eax, dword [ebp - 0x30]
lea esi, [ebp - 0x34]
mov edx, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x20]
mov edi, dword [sym.imp.oleaut32.dll_VariantClear]
sub esp, 8
lea esi, [esi]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 0x18
test eax, eax
jne 0x401e72
mov dword [esp + 0xc], 8
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], ebx
call dword [sym.imp.oleaut32.dll_VariantChangeType]
sub esp, 0x10
test eax, eax
jns 0x401e21
mov eax, ebx
call sym._convert_to_bstr.part.0
mov edx, dword [ebp - 0x20]
cmp word [edx], 0
je 0x401e42
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401e30
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x50], eax
jb 0x401e5d
mov dword [esp], ebx
call edi
mov eax, dword [ebp - 0x34]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x4c]
call eax
sub esp, 4
jmp 0x401dc0
mov eax, edx
nop
add eax, 2
cmp word [eax], 0
jne 0x401e60
sub eax, edx
sar eax, 1
mov dword [ebp - 0x50], eax
jmp 0x401e42
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x401d63
mov eax, dword [ecx]
mov dword [ebp - 0x58], edi
xor ecx, ecx
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x54], esi
mov ebx, eax
mov esi, ecx
mov eax, dword [esi*8 + 0x404400]
mov dword [esp], ebx
mov dword [esp + 4], eax
call edi
test eax, eax
je 0x401ec4
add esi, 1
cmp esi, 0xb
jne 0x401e99
mov eax, 0x66
call sym._output_error.isra.0
jmp 0x401847
mov ecx, esi
mov edi, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ecx*8 + 0x404404]
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x40196e
jmp 0x401eb5
mov dword [esp + 4], 0x40413c
mov dword [esp], edi
mov dword [ebp - 0x68], edx
call dword [sym.imp.ucrtbase.dll_wcscat]
mov edx, dword [ebp - 0x68]
jmp 0x401c45
mov eax, 0x68
call sym._output_error.isra.0
jmp 0x401847
test ax, ax
jne 0x401bc9
mov eax, 0xfffffffe
jmp 0x401bde
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x68]
add eax, 2
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0xc]
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x30]
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 - 0x2c]
sub esp, 0x14
test eax, eax
je 0x402042
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x20]
mov ecx, dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x68], edi
mov edi, ecx
mov dword [ebp - 0x58], eax
jmp 0x401fde
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x6c], edx
mov dword [esp], 0xfffffff5
call edi
mov edx, dword [ebp - 0x6c]
sub esp, 4
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x50]
mov dword [esp + 4], 0x404148
mov dword [esp + 8], edx
mov dword [esp], eax
call dbg.output_string
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
mov eax, dword [ebp - 0x4c]
call eax
sub esp, 4
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov ecx, dword [ebp - 0x58]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 0x18
test eax, eax
je 0x401fa0
mov ecx, edi
mov edi, dword [ebp - 0x68]
mov dword [esp], 0xfffffff5
call ecx
push edx
mov dword [esp + 4], 0x404152
mov dword [esp], eax
call dbg.output_string
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push ecx
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0xc]
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x68], esi
sub esp, 4
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x30]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [edx + 0x10]
mov esi, dword [ebp - 0x2c]
sub esp, 0x14
test esi, esi
je 0x40217a
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x20]
mov edi, dword [sym.imp.kernel32.dll_GetStdHandle]
sub esp, 8
jmp 0x402111
mov dword [esp + 0xc], 8
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], ebx
call dword [sym.imp.oleaut32.dll_VariantChangeType]
sub esp, 0x10
test eax, eax
jns 0x4020db
mov eax, ebx
call sym._convert_to_bstr.part.0
mov esi, dword [ebp - 0x20]
mov dword [esp], 0xfffffff5
call edi
sub esp, 4
mov dword [esp + 0xc], esi
mov edx, dword [ebp - 0x50]
mov dword [esp + 4], 0x404148
mov dword [esp + 8], edx
mov dword [esp], eax
call dbg.output_string
mov dword [esp], ebx
call dword [sym.imp.oleaut32.dll_VariantClear]
sub esp, 4
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 0x18
test eax, eax
je 0x4020b0
mov dword [esp], 0xfffffff5
call edi
sub esp, 4
mov dword [esp + 4], 0x404152
mov dword [esp], eax
call dbg.output_string
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x402056
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x402192
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4021a4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4021b6
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
mov ebx, dword [ebp - 0x4c]
call ebx
mov eax, dword [ebp - 0x60]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x5c]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
mov dword [esp], edi
mov eax, dword [ebp - 0x54]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40184c
mov esi, dword [ebp - 0x54]
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], esi
mov esi, eax
mov dword [ebp - 0x54], eax
call eax
mov dword [esp], edi
call esi
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push eax
mov eax, 0x67
call sym._output_error.isra.0
xor eax, eax
xor edi, edi
or esi, 0xffffffff
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
jmp 0x402180
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov esi, eax
mov eax, dword [ebp - 0x58]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], esi
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 0x4019d2
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], esi
mov dword [ebp - 0x54], eax
call eax
jmp 0x402204
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
xor ebx, ebx
xor edi, edi
or esi, 0xffffffff
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x54], eax
jmp 0x402180
or esi, 0xffffffff
jmp 0x402180
xor edx, edx
or esi, 0xffffffff
mov dword [ebp - 0x5c], edx
jmp 0x402180
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x54], eax
jmp 0x402204
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x54], eax
test byte [section..data], 4
je 0x40221a
mov eax, dword [ebp - 0x58]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Unrecognized_class__s._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.query_prop
mov dword [esp + 4], 0x403000
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x40221a
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
xor ecx, ecx
xor edi, edi
or esi, 0xffffffff
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x54], eax
jmp 0x402180
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x54], eax
jmp 0x40221a