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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573d00
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5d6ff4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ecx], 0
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x20], eax
jne 0x410255
mov byte [esi], 0
mov eax, esi
jmp 0x4104f6
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push 0x5b77c4
push 5
push 0
push 0x5af20c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4102b9
mov byte [esi], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41029e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4102b2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x4104f6
push 0x5b7728
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x4102d7
push 0x8007000e
call fcn.00402df0
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
push edx
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push edi
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x410305
push edi
mov byte [esi], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x41028d
push dword [ebp - 0x20]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x24], 0
push str.SELECT__from_Win32_Printer_WHERE_Name_LIKE_
push eax
call fcn.00409190
push 0x5b7740
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
call fcn.00402650
add esp, 0x18
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410352
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x410380
xor esi, esi
mov dword [ebp - 0x2c], esi
push 0x5b77a4
mov byte [ebp - 4], 6
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
jne 0x41039a
push 0x8007000e
call fcn.00402df0
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
jne 0x41035e
push 0x8007000e
call fcn.00402df0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x20]
push 0
mov edx, dword [eax]
push 0x10
push esi
push ecx
push eax
call dword [edx + 0x50]
test eax, eax
jns 0x410410
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 7
mov byte [eax], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4103d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4104cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4104cb
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x44]
push edx
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
lea eax, [ebp - 0x3c]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x3c], xmm0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0
push 0
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x28]
push edx
push 0
push str.WorkOffline
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jns 0x410472
mov eax, dword [ebp - 0x48]
mov byte [eax], 0
jmp 0x410485
cmp word [ebp - 0x34], 0xffff
mov ecx, dword [ebp - 0x48]
sete al
xor al, 1
mov byte [ecx], 1
mov byte [ecx + 1], al
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4104a0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4104b1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
lea ecx, [ebp - 0x24]
call fcn.00402fd0
push edi
call esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4104df
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4104f3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00554e91
mov esp, ebp
pop ebp
ret 8