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

Disassembly:
push 0xffffffffffffffff
push 0x450d88
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x4053fc
push ebp
push ebp
push ebp
push 3
push ebp
push ebp
push ebp
push 0xffffffffffffffff
push ebp
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebp
jge 0x405359
cmp eax, 0x80010119
jne 0x4053f6
lea eax, [esp + 0x18]
push eax
push 0x456590
push 1
push ebp
push 0x456660
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebp
jl 0x4053f6
lea ebx, [esp + 0x20]
mov dword [esp + 0x14], ebp
call fcn.00403ef0
mov dword [esp + 0x50], ebp
mov eax, dword [eax]
cmp eax, ebp
je 0x405394
mov ecx, dword [eax]
jmp 0x405396
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
lea esi, [esp + 0x14]
push esi
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [esp + 0x20]
mov esi, eax
mov dword [esp + 0x50], 0xffffffff
call fcn.00403f90
cmp esi, ebp
jl 0x4053ea
mov eax, dword [esp + 0x14]
push ebp
push ebp
push 3
push 3
push ebp
push ebp
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebp
jge 0x405415
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
add esp, 0x40
ret
push str.SELECT__FROM_Win32_PerfFormattedData_PerfDisk_PhysicalDisk
lea ebx, [esp + 0x2c]
call fcn.00403e60
mov esi, eax
push 0x45a168
lea ebx, [esp + 0x28]
mov dword [esp + 0x54], 1
call fcn.00403e60
mov byte [esp + 0x50], 2
mov ecx, dword [esi]
cmp ecx, ebp
je 0x40544a
mov ecx, dword [ecx]
jmp 0x40544c
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebp
je 0x405456
mov edx, dword [eax]
jmp 0x405458
xor edx, edx
mov eax, dword [esp + 0x14]
mov esi, dword [eax]
lea edi, [esp + 0x2c]
push edi
push ebp
push 0x30
push ecx
push edx
push eax
mov eax, dword [esi + 0x50]
call eax
lea edi, [esp + 0x24]
mov esi, eax
call fcn.00403f90
lea edi, [esp + 0x28]
mov dword [esp + 0x50], 0xffffffff
call fcn.00403f90
cmp esi, ebp
jl 0x4053de
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x20]
push edx
push 1
mov dword [esp + 0x28], ebp
mov dword [esp + 0x3c], ebp
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x4054fd
mov ecx, dword [eax]
push ebp
push ebp
lea edx, [esp + 0x3c]
push edx
push ebp
push str.PercentDiskTime
push eax
mov eax, dword [ecx + 0x10]
call eax
mov edx, dword [esp + 0x3c]
mov ecx, 8
push edx
mov word [esp + 0x38], cx
call dword [sym.imp.MSVCR90.dll__wtoi64]
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret