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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573540
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 0x40fcc5
mov byte [esi], 0
mov eax, esi
jmp 0x40ff66
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 0x5b7784
push 5
push 0
push 0x5af20c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40fd29
mov byte [esi], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40fd0e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40fd22
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x40ff66
push 0x5b76e8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x40fd47
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 0x40fd75
push edi
mov byte [esi], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40fcfd
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.004087c0
push 0x5b7700
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 0x40fdc2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40fdf0
xor esi, esi
mov dword [ebp - 0x2c], esi
push 0x5b7764
mov byte [ebp - 4], 6
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
jne 0x40fe0a
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 0x40fdce
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 0x40fe80
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 7
mov byte [eax], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40fe46
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 0x40ff3b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40ff3b
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 0x40fee2
mov eax, dword [ebp - 0x48]
mov byte [eax], 0
jmp 0x40fef5
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 0x40ff10
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ff21
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 0x40ff4f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40ff63
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.00554815
mov esp, ebp
pop ebp
ret 8