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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x6c
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [esp + 4], 0x405092
mov dword [ebp - 0x3c], eax
mov edi, eax
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_setlocale]
cmp ebx, 1
jle 0x402656
lea esi, [edi + 4]
mov edi, 1
jmp 0x402610
inc edi
add esi, 4
cmp ebx, edi
je 0x402656
mov eax, dword [esi]
cmp word [eax], 0x2f
jne 0x402678
test byte [0x404030], 1
je 0x402608
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp], 0
inc edi
add esi, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.command_line_switch__s_not_supported_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x404030
call sym._wine_dbg_log.constprop.0
cmp ebx, edi
jne 0x402610
mov eax, 0x65
mov ebx, 1
call sym._output_error
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp + 4], 0x40515c
mov dword [ebp - 0x40], eax
call eax
test eax, eax
je 0x4026a7
mov dword [esp + 4], str.exit
mov eax, dword [esi]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
test eax, eax
jne 0x4026c0
lea esp, [ebp - 0x10]
xor ebx, ebx
pop ecx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 4], str.class
mov eax, dword [esi]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
test eax, eax
je 0x4026ec
mov dword [esp + 4], str.context
mov eax, dword [esi]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
test eax, eax
jne 0x40272d
test byte [0x404030], 1
je 0x402656
mov eax, dword [esi]
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], str.wmain
mov dword [esp + 4], 0x404030
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x402656
mov dword [esp + 4], str.path
mov eax, dword [esi]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
test eax, eax
jne 0x402c75
inc edi
cmp ebx, edi
jle 0x402cf0
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax + edi*4]
lea eax, [edi + 1]
cmp ebx, eax
jle 0x402656
lea edx, [eax*4]
mov dword [esp + 4], 0x405104
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + eax*4]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
test eax, eax
jne 0x402656
lea ecx, [edi + 2]
mov edx, dword [ebp - 0x44]
cmp ebx, ecx
jle 0x402656
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov edi, dword [eax + edx + 4]
test byte [0x404030], 8
jne 0x402fbe
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 - 0x38]
sub esp, 0x24
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x405554
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x4054a4
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
jne 0x402fff
mov ebx, dword [sym.imp.oleaut32.dll_SysAllocString]
mov dword [esp], str.ROOTCIMV2
mov dword [ebp - 0x58], ebx
call ebx
mov dword [ebp - 0x54], eax
sub esp, 4
test eax, eax
je 0x402fff
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov edx, dword [eax]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x54]
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], ecx
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x24
test eax, eax
jne 0x4030c5
mov dword [esp], esi
call ebx
mov dword [ebp - 0x48], eax
sub esp, 4
mov ecx, eax
test eax, eax
je 0x40309f
mov eax, dword [ebp - 0x34]
lea ebx, [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp + 0x10], ebx
mov dword [esp + 4], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [edx + 0x18]
mov ecx, dword [ebp - 0x48]
mov ebx, eax
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 0x18
mov dword [esp], ecx
mov dword [ebp - 0x3c], eax
call eax
sub esp, 4
test ebx, ebx
jne 0x403071
mov eax, dword [ebp - 0x28]
mov dword [esp], edi
mov dword [ebp - 0x48], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov ebx, eax
test eax, eax
je 0x403064
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x403052
mov eax, dword [ebp - 0x40]
xor ecx, ecx
lea edi, [ebp - 0x20]
mov word [eax], cx
mov eax, dword [sym.imp.ucrtbase.dll_wcstok_s]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x405142
mov dword [esp], ebx
mov dword [ebp - 0x4c], eax
call eax
mov ecx, eax
test eax, eax
je 0x402a69
mov dword [ebp - 0x44], ebx
movzx eax, word [ecx]
mov ebx, ecx
cmp ax, 0x20
jne 0x402d04
lea esi, [esi]
nop
add ebx, 2
cmp word [ebx], 0x20
je 0x4029b0
mov eax, ecx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x4029c0
sub eax, ecx
sub eax, 2
add eax, ecx
jae 0x4029e5
jmp 0x4029eb
xor edx, edx
sub eax, 2
mov word [eax + 2], dx
cmp eax, ecx
jb 0x4029eb
cmp word [eax], 0x20
je 0x4029d8
mov edx, dword [ebp - 0x48]
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], ebx
mov dword [esp], edx
call dword [eax + 0x10]
sub esp, 0x18
test eax, eax
js 0x402f72
mov eax, dword [ebp - 0x40]
mov ecx, dword [sym.imp.ucrtbase.dll_wcscat]
cmp word [eax], 0
jne 0x402cd8
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], ebx
mov dword [esp], eax
call ecx
mov dword [esp + 8], edi
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], 0x405142
mov dword [esp], 0
call eax
mov ecx, eax
test eax, eax
jne 0x402999
mov ebx, dword [ebp - 0x44]
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
mov dword [ebp - 0x4c], eax
call eax
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, esi
sub esp, 4
cmp word [esi], 0
je 0x402a95
add eax, 2
cmp word [eax], 0
jne 0x402a8c
sub eax, esi
sar eax, 1
mov edx, eax
mov eax, dword [ebp - 0x40]
cmp word [eax], 0
je 0x403042
add eax, 2
cmp word [eax], 0
jne 0x402aa8
sub eax, dword [ebp - 0x40]
mov dword [esp], 0
sar eax, 1
lea ebx, [edx + eax + 0xf]
mov dword [esp + 4], ebx
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
mov dword [ebp - 0x50], eax
sub esp, 8
test eax, eax
je 0x403033
mov edx, dword [ebp - 0x40]
mov dword [esp + 0x10], esi
mov dword [esp + 4], ebx
mov ebx, eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.SELECT__s_FROM__s
mov dword [esp], eax
call sym._swprintf.constprop.0
mov dword [esp], 0x405146
mov eax, dword [ebp - 0x58]
call eax
mov dword [ebp - 0x48], eax
sub esp, 4
mov esi, eax
test eax, eax
je 0x40304a
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
mov edx, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x50]
sub esp, 0x18
test eax, eax
jne 0x40304a
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x24]
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x28]
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 - 0x24]
sub esp, 0x14
test eax, eax
je 0x402d17
mov eax, dword [ebp - 0x28]
lea ebx, [ebp - 0x2c]
mov edx, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x20]
mov esi, dword [sym.imp.oleaut32.dll_VariantClear]
sub esp, 8
lea esi, [esi]
nop
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 0x18
test eax, eax
jne 0x402c62
mov dword [esp + 0xc], 8
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], edi
call dword [sym.imp.oleaut32.dll_VariantChangeType]
sub esp, 0x10
test eax, eax
jns 0x402c11
mov eax, edi
call sym._convert_to_bstr.part.0
mov edx, dword [ebp - 0x18]
cmp word [edx], 0
je 0x402c32
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402c20
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x44], eax
jb 0x402c4d
mov dword [esp], edi
call esi
mov eax, dword [ebp - 0x2c]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x3c]
call eax
sub esp, 4
jmp 0x402bb0
mov eax, edx
nop
add eax, 2
cmp word [eax], 0
jne 0x402c50
sub eax, edx
sar eax, 1
mov dword [ebp - 0x44], eax
jmp 0x402c32
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x402b55
mov edx, dword [esi]
xor esi, esi
mov dword [ebp - 0x44], edi
mov eax, str.bios
mov dword [ebp - 0x48], ebx
mov edi, esi
mov ebx, dword [ebp - 0x40]
mov esi, edx
jmp 0x402c94
mov eax, dword [edi*8 + 0x405600]
mov dword [esp + 4], eax
mov dword [esp], esi
call ebx
test eax, eax
je 0x402cbb
inc edi
cmp edi, 0xb
jne 0x402c8d
mov eax, 0x66
mov ebx, 1
call sym._output_error
jmp 0x402665
mov esi, edi
mov ebx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
mov esi, dword [esi*8 + 0x405604]
test esi, esi
jne 0x402756
jmp 0x402ca7
mov dword [ebp - 0x50], ecx
mov dword [esp + 4], 0x405142
mov dword [esp], eax
call ecx
mov ecx, dword [ebp - 0x50]
jmp 0x402a38
mov eax, 0x68
mov ebx, 1
call sym._output_error
jmp 0x402665
test ax, ax
jne 0x4029b9
mov eax, 0xfffffffe
jmp 0x4029ce
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x58]
mov edx, dword [eax]
mov dword [esp], eax
add esi, 2
call dword [edx + 0xc]
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x24]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x28]
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 - 0x24]
sub esp, 0x14
test eax, eax
je 0x402df8
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x20]
push eax
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x44], eax
jmp 0x402da7
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], esi
mov dword [esp], str.__s
mov dword [esp + 8], eax
call sym._output_string
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [ebp - 0x3c]
call eax
sub esp, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x44]
mov edx, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 0x18
test eax, eax
je 0x402d82
mov dword [esp], 0x405158
call sym._output_string
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push ecx
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0xc]
mov dword [ebp - 0x44], ebx
sub esp, 4
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x24]
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x28]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [edx + 0x10]
mov edx, dword [ebp - 0x24]
sub esp, 0x14
test edx, edx
je 0x402eff
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x20]
mov ebx, dword [sym.imp.oleaut32.dll_VariantClear]
sub esp, 8
jmp 0x402eaa
mov dword [esp + 0xc], 8
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], edi
call dword [sym.imp.oleaut32.dll_VariantChangeType]
sub esp, 0x10
test eax, eax
jns 0x402e8b
mov eax, edi
call sym._convert_to_bstr.part.0
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], esi
mov dword [esp], str.__s
mov dword [esp + 8], eax
call sym._output_string
mov dword [esp], edi
call ebx
sub esp, 4
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
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 0x402e60
mov dword [esp], 0x405158
call sym._output_string
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x402e09
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x402f14
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x402f26
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x402f38
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x3c]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x48]
sub esp, 4
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x40]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x4c]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x402665
mov ebx, dword [ebp - 0x44]
mov dword [esp], ebx
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x4c], ebx
call ebx
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x28]
or ebx, 0xffffffff
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push eax
mov eax, 0x67
call sym._output_error
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x48], 0
jmp 0x402f02
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0
mov ebx, eax
mov eax, esi
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], 0x404030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4027c0
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [ebp - 0x40], 0
or ebx, 0xffffffff
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x3c], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x4c], eax
jmp 0x402f02
mov dword [ebp - 0x48], 0
or ebx, 0xffffffff
jmp 0x402f02
mov eax, dword [ebp - 0x40]
jmp 0x402ab1
or ebx, 0xffffffff
jmp 0x402f02
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
mov dword [ebp - 0x4c], eax
call eax
jmp 0x402f8b
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x4c], eax
jmp 0x402f8b
test byte [0x404030], 4
jne 0x4030f2
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x40], 0
or ebx, 0xffffffff
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], eax
jmp 0x402f02
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [ebp - 0x40], 0
or ebx, 0xffffffff
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x3c], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x4c], eax
jmp 0x402f02
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [ebp - 0x40], 0
or ebx, 0xffffffff
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x3c], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], eax
jmp 0x402f02
mov eax, esi
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], 0x404030
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x40307a