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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2898
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x50c7c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x14], 0
push edi
push edi
push edi
push 3
push edi
push edi
push edi
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x10], 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, 1
je 0x496e28
lea eax, [ebp - 0x14]
push eax
push 0x4eec18
push 1
push edi
push 0x4eec08
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x496e3c
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x496e28
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.ROOTCIMV2
lea ecx, [ebp - 0x20]
call fcn.00495d90
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x496e5a
mov edx, dword [eax]
jmp 0x496e5c
xor edx, edx
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 0x10]
push esi
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x496e8b
call fcn.00495e50
test esi, esi
jns 0x496eb9
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x496e9c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x496efa
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], 0
call fcn.00495d90
mov esi, eax
push 0x4fc9e0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 1
call fcn.00495d00
mov byte [ebp - 4], 2
mov esi, dword [esi]
test esi, esi
je 0x496f30
mov esi, dword [esi]
jmp 0x496f32
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x496f3c
mov edx, dword [eax]
jmp 0x496f3e
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push 0
push 0x30
push esi
push edx
push eax
call dword [ecx + 0x50]
mov ecx, dword [ebp - 0x20]
mov esi, eax
test ecx, ecx
je 0x496f69
call fcn.00495e50
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x496f7c
call fcn.00495e50
test esi, esi
js 0x496ed4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x49705e
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x18]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
mov esi, eax
test esi, esi
jne 0x497014
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
push esi
push eax
lea eax, [ebp - 0x40]
mov edx, dword [ecx]
push eax
push esi
push 0x4f4530
push ecx
call dword [edx + 0x10]
test eax, eax
js 0x49700a
cmp word [ebp - 0x40], 8
jne 0x49700a
push 0x100
push esi
push ebx
call fcn.0042ae80
add esp, 0xc
push dword [ebp - 0x38]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, 0x100
jge 0x497035
push eax
push dword [ebp - 0x38]
push ebx
call fcn.004ab282
add esp, 0xc
lea edi, [esi + 1]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x497027
cmp dword [ebp - 0x24], 0
je 0x497027
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
test edi, edi
jne 0x497051
test esi, esi
je 0x496f84
jmp 0x497051
lea eax, [ebp - 0x40]
xor edi, edi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x497051
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x18], edi
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x49705e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x49706b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x497078
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret