Function at 0x418860
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc042
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push esi
push edi
mov eax, dword [0x4f4164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4191bf
push 0
push 0
mov dword [eax], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa0], eax
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x88], 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x4191a5
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push 0x4d6064
push 1
push 0
push 0x4d6054
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov eax, dword [ebp - 0x24]
js 0x41918d
test eax, eax
je 0x41918d
mov dword [ebp - 0x20], 0
push str.ROOTCIMV2
mov byte [ebp - 4], 3
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0xa4], esi
test esi, esi
je 0x4191d0
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 4
mov ecx, dword [eax]
mov edi, dword [ecx + 0xc]
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push eax
mov ecx, edi
call dword [0x4c758c]
call edi
test eax, eax
js 0x419162
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x419162
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x4189bf
push esi
lfence
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 7
test eax, eax
je 0x4189b3
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4c758c]
call esi
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 8
jmp 0x419191
mov dword [ebp - 0x30], 0
push 0x4cad00
mov byte [ebp - 4], 9
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0xa8], edi
test edi, edi
je 0x4191da
push str.SELECT__FROM_Win32_Printer
mov byte [ebp - 4], 0xa
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0xac], ecx
test ecx, ecx
je 0x4191e4
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x64]
push 0
mov edx, dword [eax]
push 0x30
push ecx
push edi
mov edx, dword [edx + 0x50]
mov ecx, edx
push eax
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x28], edx
call dword [0x4c758c]
call dword [ebp - 0x28]
test eax, eax
js 0x419109
cmp dword [ebp - 0x30], 0
je 0x419109
lea ecx, [ebp - 0xb8]
lfence
call fcn.00417480
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0xf
call fcn.00418500
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
mov ecx, dword [ecx + 0x10]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x1c], ecx
call dword [0x4c758c]
call dword [ebp - 0x1c]
cmp dword [ebp - 0x28], 0
je 0x419086
nop dword [eax + eax]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x418ab7
mov ecx, 0x80004003
mov dword [ebp - 0x10], eax
jmp 0x418f8e
push 0x1c
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x418ad5
mov ecx, 0x8007000e
mov dword [ebp - 0x10], eax
jmp 0x418f8e
lea eax, [ebp - 0x40]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x40], xmm0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x40]
push 0
push 0
push edx
mov eax, dword [ecx]
push 0
push str.Attributes
push ecx
mov eax, dword [eax + 0x10]
mov ecx, eax
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x14], eax
call dword [0x4c758c]
call dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
test eax, eax
jns 0x418b2a
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x10
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x418f8b
cmp word [ebp - 0x40], 3
je 0x418b4f
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x10
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x10]
mov ecx, 0x8000ffff
mov dword [ebp - 0x10], eax
jmp 0x418f8e
mov ecx, dword [ebp - 0x10]
xorps xmm0, xmm0
lfence
mov eax, dword [ebp - 0x38]
mov dword [ecx], eax
lea eax, [ebp - 0x50]
push eax
movups xmmword [ebp - 0x50], xmm0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x50]
push 0
push 0
push edx
mov eax, dword [ecx]
push 0
push str.Default
push ecx
mov eax, dword [eax + 0x10]
mov ecx, eax
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x14], eax
call dword [0x4c758c]
call dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
test eax, eax
js 0x418f6d
cmp word [ebp - 0x50], 0xb
je 0x418bcf
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x10
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x10]
mov ecx, 0x8000ffff
mov dword [ebp - 0x10], eax
jmp 0x418f8e
mov ecx, dword [ebp - 0x10]
xor eax, eax
lfence
cmp word [ebp - 0x48], 0xffff
xorps xmm0, xmm0
sete al
mov dword [ecx + 4], eax
lea eax, [ebp - 0x60]
push eax
movups xmmword [ebp - 0x60], xmm0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x60]
push 0
push 0
push edx
mov eax, dword [ecx]
push 0
push str.Local
push ecx
mov eax, dword [eax + 0x10]
mov ecx, eax
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x14], eax
call dword [0x4c758c]
call dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
test eax, eax
js 0x418f63
cmp word [ebp - 0x60], 0xb
je 0x418c3e
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x418ba7
mov ecx, dword [ebp - 0x10]
xor eax, eax
lfence
cmp word [ebp - 0x58], 0xffff
xorps xmm0, xmm0
sete al
mov dword [ecx + 8], eax
lea eax, [ebp - 0x74]
push eax
movups xmmword [ebp - 0x74], xmm0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x74]
push 0
push 0
push edx
mov eax, dword [ecx]
push 0
push str.Name
push ecx
mov eax, dword [eax + 0x10]
mov ecx, eax
mov byte [ebp - 4], 0x15
mov dword [ebp - 0x14], eax
call dword [0x4c758c]
call dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
test eax, eax
js 0x418f59
cmp word [ebp - 0x74], 8
je 0x418cb7
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x418ba7
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x14], eax
jne 0x418cce
mov dword [ebp - 0x14], 0x80004003
jmp 0x418f59
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x418cf7
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
test eax, eax
je 0x418d1c
xor edx, edx
mov word [eax], dx
mov eax, dword [ecx + 4]
xor ecx, ecx
mov word [eax], cx
jmp 0x418d3b
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [ebp - 0x18], eax
lea ecx, [eax*2 + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 0x14]
mov edx, eax
mov dword [ecx], edx
test edx, edx
jne 0x418d28
mov dword [ebp - 0x14], 0x8007000e
jmp 0x418f59
mov eax, dword [ebp - 0x18]
push 0xffffffffffffffff
push dword [ebp - 0x6c]
inc eax
push eax
push edx
call fcn.004986c2
add esp, 0x10
lea eax, [ebp - 0x84]
xorps xmm0, xmm0
lfence
push eax
movups xmmword [ebp - 0x84], xmm0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x84]
push 0
push 0
push edx
mov eax, dword [ecx]
push 0
push str.PortName
push ecx
mov eax, dword [eax + 0x10]
mov ecx, eax
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x18], eax
call dword [0x4c758c]
call dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
test eax, eax
js 0x418f4c
cmp word [ebp - 0x84], 8
je 0x418dbd
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x418ba7
mov eax, dword [ebp - 0x10]
add eax, 0x14
mov dword [ebp - 0x14], eax
jne 0x418dd4
mov dword [ebp - 0x14], 0x80004003
jmp 0x418f4c
mov eax, dword [ebp - 0x7c]
test eax, eax
jne 0x418dfd
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
test eax, eax
je 0x418e22
xor edx, edx
mov word [eax], dx
mov eax, dword [ecx + 4]
xor ecx, ecx
mov word [eax], cx
jmp 0x418e41
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [ebp - 0x18], eax
lea ecx, [eax*2 + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 0x14]
mov edx, eax
mov dword [ecx], edx
test edx, edx
jne 0x418e2e
mov dword [ebp - 0x14], 0x8007000e
jmp 0x418f4c
mov eax, dword [ebp - 0x18]
push 0xffffffffffffffff
push dword [ebp - 0x7c]
inc eax
push eax
push edx
call fcn.004986c2
add esp, 0x10
lea eax, [ebp - 0x98]
xorps xmm0, xmm0
lfence
push eax
movups xmmword [ebp - 0x98], xmm0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x98]
push 0
push 0
push edx
mov eax, dword [ecx]
push 0
push str.PrintProcessor
push ecx
mov eax, dword [eax + 0x10]
mov ecx, eax
mov byte [ebp - 4], 0x17
mov dword [ebp - 0x18], eax
call dword [0x4c758c]
call dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
test eax, eax
js 0x418f3f
cmp word [ebp - 0x98], 8
je 0x418ed0
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x418ba7
mov eax, dword [ebp - 0x10]
add eax, 0x18
mov dword [ebp - 0x1c], eax
jne 0x418ee4
mov dword [ebp - 0x14], 0x80004003
jmp 0x418f3f
mov eax, dword [ebp - 0x90]
test eax, eax
jne 0x418f13
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
test eax, eax
je 0x418f38
xor edx, edx
mov word [eax], dx
mov eax, dword [ecx + 4]
xor ecx, ecx
mov word [eax], cx
jmp 0x418fba
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [ebp - 0x18], eax
lea ecx, [eax*2 + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 0x1c]
mov edx, eax
mov dword [ecx], edx
test edx, edx
jne 0x418fa4
mov dword [ebp - 0x14], 0x8007000e
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x10
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
xor eax, eax
test ecx, ecx
cmove eax, dword [ebp - 0x10]
push eax
call fcn.00411010
add esp, 4
jmp 0x41902a
mov eax, dword [ebp - 0x18]
push 0xffffffffffffffff
push dword [ebp - 0x90]
inc eax
push eax
push edx
call fcn.004986c2
add esp, 0x10
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0xffffffff
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x10
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
call fcn.00411100
push eax
push dword [ebp - 0x10]
call fcn.004110b0
push dword [ebp - 0x10]
lea eax, [ebp - 0x88]
push eax
call fcn.00410fa0
add esp, 0x10
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x18
test eax, eax
je 0x419049
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 8]
mov ecx, eax
mov dword [ebp - 0x18], eax
call dword [0x4c758c]
call dword [ebp - 0x18]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
mov ecx, dword [ecx + 0x10]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x18], ecx
call dword [0x4c758c]
call dword [ebp - 0x18]
cmp dword [ebp - 0x28], 0
jne 0x418aa0
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x11
test eax, eax
je 0x4190a5
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 8]
mov ecx, eax
mov dword [ebp - 0x18], eax
call dword [0x4c758c]
call dword [ebp - 0x18]
lea ecx, [ebp - 0xb8]
call fcn.00417700
push dword [ebp - 0x64]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 0x19
test eax, eax
je 0x4190db
mov ecx, dword [eax]
push eax
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x4c758c]
call edi
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 0x1a
test eax, eax
je 0x4190fd
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4c758c]
call esi
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0x1b
jmp 0x419191
lfence
push dword [ebp - 0x64]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x419137
mov ecx, dword [eax]
push eax
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x4c758c]
call edi
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 0xd
test eax, eax
je 0x419159
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4c758c]
call esi
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0xe
jmp 0x419191
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 5
test eax, eax
je 0x419184
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4c758c]
call esi
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 6
jmp 0x419191
mov byte [ebp - 4], 2
test eax, eax
je 0x4191a5
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4c758c]
call esi
cmp dword [ebp - 0x9c], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x88]
mov dword [ecx], eax
jl 0x4191bf
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.00404140
push 0x8007000e
call fcn.00404140
push 0x8007000e
call fcn.00404140
int3