Function at 0x4052df
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x4054eb
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x24]
push eax
push 0x51257c
xor edi, edi
inc edi
push edi
push esi
push 0x51264c
mov dword [ebp - 0x24], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4054eb
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x10]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push 0x5319d8
mov dword [ebp - 0x10], esi
mov ecx, dword [eax]
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], esi
call dword [ecx + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x20], esi
cmp dword [0x54ae78], esi
je 0x4054b6
mov eax, 0x54ae78
xor edi, edi
mov dword [ebp - 0x1c], 0x54ae7c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
push esi
push esi
push dword [eax]
push 0x5319f0
push dword [ebp - 0x10]
call dword [ecx + 0x50]
cmp eax, 0x80041003
je 0x4054b3
mov eax, dword [ebp - 0x2c]
cmp eax, esi
je 0x405496
lea edx, [ebp - 0x30]
push edx
lea edx, [ebp - 0xc]
push edx
push 1
push 0xffffffffffffffff
mov dword [ebp - 0x30], esi
mov dword [ebp - 0xc], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x40548d
lea eax, [edi + 0x54ae7c]
cmp dword [eax], esi
jne 0x405414
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push esi
push eax
call dword [ecx + 0x34]
push dword [ebp - 0x18]
call ebx
push dword [ebp - 8]
mov edi, eax
call ebx
add edi, eax
lea eax, [edi + edi + 0x3e8]
push eax
push dword [ebp - 8]
call fcn.00401735
pop ecx
pop ecx
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x405484
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], esi
je 0x405484
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
push esi
push esi
lea edi, [ebp - 0x44]
push edi
push esi
push dword [ecx]
push eax
call dword [edx + 0x10]
test eax, eax
jne 0x405477
push dword [ebp - 0x3c]
call ebx
push dword [ebp - 8]
mov edi, eax
call ebx
add edi, eax
lea eax, [edi + edi + 0x3e8]
push eax
push dword [ebp - 8]
call fcn.00401735
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
pop ecx
pop ecx
push dword [ebp - 0x3c]
mov dword [ebp - 8], eax
push eax
call edi
push 0x5319f8
push dword [ebp - 8]
call edi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0x28]
add ecx, 4
mov dword [ebp - 0x28], ecx
cmp dword [ecx], esi
jne 0x40541e
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebp - 0x20]
mov edi, dword [ebp - 0x20]
add dword [ebp - 0x1c], 0x28
imul edi, edi, 0x28
lea eax, [edi + 0x54ae78]
cmp dword [eax], esi
jne 0x405376
jmp 0x4054b6
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x14], esi
je 0x4054e2
push dword [ebp - 8]
call ebx
mov esi, dword [ebp + 8]
add eax, eax
push eax
push dword [ebp - 8]
call fcn.00404fd6
pop ecx
pop ecx
push dword [ebp - 8]
call fcn.00401849
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret