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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push edi
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
jl 0x4e169a
cmp dword [ebp + 8], 8
jb 0x4e16a2
or eax, 0xffffffff
jmp 0x4e19b1
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x4e16d2
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x4e16d2
mov eax, 0xfffffffe
jmp 0x4e19b1
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]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x4e170c
cmp dword [ebp - 0xc], 0x80010119
je 0x4e170c
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffe
jmp 0x4e19b1
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x4f5338
push 1
push 0
push 0x4f5408
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x4e1744
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffe
jmp 0x4e19b1
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x5011d0
lea edi, [ebp - 0x34]
call fcn.004038ba
call fcn.0040394d
push eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [eax + 0xc]
call edx
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x34]
call fcn.0040390d
cmp dword [ebp - 0xc], 0
jge 0x4e17ab
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffe
jmp 0x4e19b1
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x4e17f8
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffe
jmp 0x4e19b1
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0x30
mov edx, dword [ebp + 8]
mov eax, dword [edx*8 + 0x501140]
push eax
lea edi, [ebp - 0x38]
call fcn.0040387b
call fcn.0040394d
push eax
push 0x5011e8
lea edi, [ebp - 0x3c]
call fcn.0040387b
call fcn.0040394d
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [edx + 0x50]
call ecx
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x3c]
call fcn.0040390d
lea edi, [ebp - 0x38]
call fcn.0040390d
cmp dword [ebp - 0xc], 0
jge 0x4e1886
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffd
jmp 0x4e19b1
cmp dword [ebp - 8], 0
je 0x4e197e
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 0xc], 0
je 0x4e18b1
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0x10]
jl 0x4e18b1
jmp 0x4e197e
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
push 1
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx + 0x10]
call ecx
cmp dword [ebp - 0x1c], 0
jne 0x4e18d6
jmp 0x4e197e
cmp dword [ebp + 0xc], 0
je 0x4e1962
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*8 + 0x501144]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ecx + 0x10]
call eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004926d0
add esp, 4
push eax
push 0x80
mov edx, dword [ebp - 0x10]
shl edx, 8
add edx, dword [ebp + 0xc]
push edx
call fcn.0048e750
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x80
mov ecx, dword [ebp - 0x10]
shl ecx, 8
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004e15c0
add esp, 0xc
test eax, eax
je 0x4e1960
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x4e196b
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [eax + 8]
call edx
jmp 0x4e1886
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [eax + 8]
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x10]
pop edi
mov esp, ebp
pop ebp
ret