Function at 0x4d65d0
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 0x4d65ea
cmp dword [ebp + 8], 8
jb 0x4d65f2
or eax, 0xffffffff
jmp 0x4d6901
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x4d6622
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x4d6622
mov eax, 0xfffffffe
jmp 0x4d6901
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 0x4d665c
cmp dword [ebp - 0xc], 0x80010119
je 0x4d665c
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffe
jmp 0x4d6901
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x4e8338
push 1
push 0
push 0x4e8408
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x4d6694
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffe
jmp 0x4d6901
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x4f3c10
lea edi, [ebp - 0x34]
call fcn.004038fb
call fcn.0040398e
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.0040394e
cmp dword [ebp - 0xc], 0
jge 0x4d66fb
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 0x4d6901
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 0x4d6748
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 0x4d6901
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 + 0x4f3b80]
push eax
lea edi, [ebp - 0x38]
call fcn.004038bc
call fcn.0040398e
push eax
push 0x4f3c28
lea edi, [ebp - 0x3c]
call fcn.004038bc
call fcn.0040398e
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.0040394e
lea edi, [ebp - 0x38]
call fcn.0040394e
cmp dword [ebp - 0xc], 0
jge 0x4d67d6
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 0x4d6901
cmp dword [ebp - 8], 0
je 0x4d68ce
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 0xc], 0
je 0x4d6801
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0x10]
jl 0x4d6801
jmp 0x4d68ce
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 0x4d6826
jmp 0x4d68ce
cmp dword [ebp + 0xc], 0
je 0x4d68b2
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 + 0x4f3b84]
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.00490730
add esp, 4
push eax
push 0x80
mov edx, dword [ebp - 0x10]
shl edx, 8
add edx, dword [ebp + 0xc]
push edx
call fcn.004903e0
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.004d6510
add esp, 0xc
test eax, eax
je 0x4d68b0
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x4d68bb
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 0x4d67d6
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