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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514c40
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x58fa2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x490f46
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00491460
lea eax, [ebp - 0x1c]
push eax
push 0x527330
push 1
push 0
push 0x527320
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x491152
cmp dword [ebp - 0x1c], 0
je 0x491152
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
call fcn.00491460
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push str.ROOTCIMV2TerminalServices
push esi
call dword [eax + 0xc]
test eax, eax
js 0x491143
cmp dword [ebp - 0x18], 0
je 0x491143
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
mov esi, dword [ebp - 0x18]
call fcn.00491460
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x20
push str.SELECT_LicensingType__TerminalServerMode_FROM_Win32_TerminalServiceSetting
push 0x525fd0
push esi
call dword [eax + 0x50]
test eax, eax
js 0x491128
cmp dword [ebp - 0x14], 0
je 0x491128
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0
call fcn.00491460
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0xffffffffffffffff
push esi
call dword [eax + 0x10]
test eax, eax
js 0x491101
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x491101
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push 0
push 0
push edx
push 0
push str.LicensingType
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x491101
mov ax, word [ebp - 0x28]
xor bl, bl
cmp ax, 2
je 0x4910ce
cmp ax, 4
je 0x4910ce
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x30]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.TerminalServerMode
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x491101
mov eax, 1
movzx ebx, bl
cmp word [ebp - 0x28], ax
cmove ebx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00491460
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00491460
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00491460
jmp 0x491154
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4910da
movzx eax, ax
mov dword [ecx], eax
mov bl, 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00491460
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00491460
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00491460
jmp 0x491154
xor bl, bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00491460
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00491460
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00491460
jmp 0x491154
xor bl, bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00491460
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00491460
jmp 0x491154
xor bl, bl
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00491460
jmp 0x491154
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00491460
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret