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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44dfb8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x468110]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor esi, esi
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x405180
push esi
push esi
push esi
push 3
push esi
push esi
push esi
or ebp, 0xffffffff
push ebp
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, esi
jge 0x4050e1
cmp eax, 0x80010119
jne 0x40517a
lea eax, [esp + 0x18]
push eax
push 0x453590
push 1
push esi
push 0x453660
mov dword [esp + 0x2c], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x40517a
lea ebx, [esp + 0x24]
mov dword [esp + 0x14], esi
call fcn.00403c20
mov dword [esp + 0x50], esi
mov eax, dword [eax]
cmp eax, esi
je 0x40511c
mov ecx, dword [eax]
jmp 0x40511e
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
lea edi, [esp + 0x14]
push edi
push esi
push esi
push esi
push esi
push esi
push esi
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x50], ebp
call fcn.00403cc0
cmp ebx, esi
jl 0x40516e
mov eax, dword [esp + 0x14]
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, esi
jge 0x405199
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push str.SELECT__FROM_Win32_PerfFormattedData_PerfDisk_PhysicalDisk
lea ebx, [esp + 0x30]
call fcn.00403b90
mov edi, eax
push 0x45710c
lea ebx, [esp + 0x2c]
mov dword [esp + 0x54], 1
call fcn.00403b90
mov byte [esp + 0x50], 2
mov ecx, dword [edi]
cmp ecx, esi
je 0x4051ce
mov ecx, dword [ecx]
jmp 0x4051d0
xor ecx, ecx
mov eax, dword [eax]
cmp eax, esi
je 0x4051da
mov edx, dword [eax]
jmp 0x4051dc
xor edx, edx
mov eax, dword [esp + 0x14]
mov edi, dword [eax]
lea ebx, [esp + 0x20]
push ebx
push esi
push 0x30
push ecx
push edx
push eax
mov eax, dword [edi + 0x50]
call eax
lea edi, [esp + 0x28]
mov ebx, eax
call fcn.00403cc0
lea edi, [esp + 0x2c]
mov dword [esp + 0x50], ebp
call fcn.00403cc0
cmp ebx, esi
jl 0x405162
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x20]
push edx
push 1
mov dword [esp + 0x28], esi
mov dword [esp + 0x3c], esi
mov ecx, dword [eax]
push ebp
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x4052ea
mov ecx, dword [eax]
push esi
push esi
lea edx, [esp + 0x3c]
push edx
push esi
push str.PercentDiskTime
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
push esi
push esi
lea edx, [esp + 0x3c]
push edx
push esi
push str.PercentIdleTime
push eax
mov eax, dword [ecx + 0x10]
call eax
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0
push 0x64
push ebp
add esi, ebx
push ebx
adc edi, ebp
call fcn.00449bc0
push edi
push esi
push edx
push eax
call fcn.00449cc0
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret