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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov dword [esp + 0x10], esi
jl 0x479c83
cmp dword [ebp + 8], 7
jae 0x479c83
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x479a7d
push 0xfffffffffffffffe
pop eax
jmp 0x479c86
lea eax, [esp + 0x18]
push eax
push 0x5aad84
push 1
push esi
push 0x5aae54
mov dword [esp + 0x2c], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x479aa5
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x479a75
lea edi, [esp + 0x24]
mov dword [esp + 0x14], esi
call fcn.0047943d
mov eax, dword [eax]
cmp eax, esi
je 0x479abc
mov eax, dword [eax]
jmp 0x479abe
xor eax, eax
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
lea edi, [esp + 0x14]
push edi
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push ecx
call dword [edx + 0xc]
lea edi, [esp + 0x24]
mov ebx, eax
call fcn.004794aa
cmp ebx, esi
jge 0x479aef
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x479a9d
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [esp + 0x30]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x479b2b
push 0xfffffffffffffffe
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
pop esi
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
jmp 0x479c86
mov eax, dword [ebp + 8]
push dword [eax*8 + 0x5eb1f4]
lea edi, [esp + 0x24]
mov dword [esp + 0x20], esi
call fcn.004793de
mov eax, dword [eax]
cmp eax, esi
je 0x479b4c
mov ebx, dword [eax]
jmp 0x479b4e
xor ebx, ebx
push 0x5f01e4
lea edi, [esp + 0x28]
call fcn.004793de
mov eax, dword [eax]
cmp eax, esi
je 0x479b66
mov ecx, dword [eax]
jmp 0x479b68
xor ecx, ecx
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
lea edi, [esp + 0x1c]
push edi
push esi
push 0x30
push ebx
push ecx
push eax
call dword [edx + 0x50]
lea edi, [esp + 0x24]
mov ebx, eax
call fcn.004794aa
lea edi, [esp + 0x20]
call fcn.004794aa
cmp ebx, esi
jge 0x479b9b
push 0xfffffffffffffffd
jmp 0x479b09
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x479c5d
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 0xc], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
je 0x479bc4
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebp + 0x10]
jge 0x479c5d
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x24]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [esp + 0x24], esi
je 0x479c59
cmp dword [ebp + 0xc], esi
je 0x479c37
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push esi
push esi
lea edx, [esp + 0x30]
push edx
push esi
push dword [edi*8 + 0x5eb1f8]
push eax
call dword [ecx + 0x10]
mov eax, dword [esp + 0x30]
push SysReAllocString
mov edx, 0x80
mov ecx, ebx
call fcn.004797c2
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, ebx
mov eax, edi
call fcn.004799e6
test eax, eax
je 0x479c41
inc dword [esp + 0x10]
add ebx, 0x100
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
cmp eax, esi
jne 0x479baa
jmp 0x479c5d
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x10]
jmp 0x479c86
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret