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

Disassembly:
sub esp, 0x40
push ebx
xor ebx, ebx
push ebp
push esi
push edi
push ebx
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], ebx
xor edi, edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
cmp esi, ebx
jl 0x40ba08
push ebx
push ebx
push ebx
push 3
push 1
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov esi, eax
cmp esi, ebx
jl 0x40ba08
lea eax, [esp + 0x14]
push eax
push 0x51a320
push 1
push ebx
push 0x51a3f0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x40ba08
push 0x52768c
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebp, eax
cmp ebp, ebx
jne 0x40b865
mov esi, 0x8007000e
cmp ebp, ebx
je 0x40ba08
push ebp
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40ba08
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebp
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
cmp esi, ebx
jl 0x40b851
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ebp
mov dword [esp + 0x18], ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [esp + 0x20]
push eax
push 0x51a3c0
push 1
push ebx
push 0x51a460
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x40ba08
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x51a3e0
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
cmp esi, ebx
jl 0x40ba08
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x34]
push ebx
push ebx
push str.Win32_PerfRawData_PerfDisk_LogicalDisk
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov esi, eax
cmp esi, ebx
jl 0x40ba08
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push ebx
push eax
call edx
mov esi, eax
cmp esi, ebx
jl 0x40b9da
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push edi
push ebx
push ebx
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp eax, 0x8004103c
jne 0x40ba70
mov esi, dword [esp + 0x10]
cmp esi, ebx
jbe 0x40ba78
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d2d51
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x40bb6b
mov ecx, dword [esp + 0x10]
add ecx, ecx
add ecx, ecx
cmp ecx, ebx
je 0x40b9b8
lea ebx, [ebx]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x40b9b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x14]
push edi
push edx
push ebx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov esi, eax
cmp esi, ebx
jge 0x40ba78
cmp edi, ebx
je 0x40ba08
xor ebp, ebp
cmp dword [esp + 0x10], ebx
jbe 0x40b9ff
mov eax, dword [edi + ebp*4]
cmp eax, ebx
je 0x40b9f8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + ebp*4], ebx
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x40b9e6
push edi
call fcn.004d195d
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40ba18
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40ba28
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40ba38
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40ba48
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40ba58
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp esi, ebx
jge 0x40bb7f
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
cmp eax, ebx
je 0x40bb75
mov ebp, dword [esp + 0x28]
cmp ebp, ebx
jne 0x40bad0
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x38]
push edx
push str.DiskBytesPerSec
push eax
mov eax, dword [ecx + 0x6c]
call eax
mov esi, eax
cmp esi, ebx
jl 0x40b9da
cmp ebp, ebx
jne 0x40bad0
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + ecx*4 - 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x80]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x28]
push ecx
push eax
call edx
mov esi, eax
cmp esi, ebx
jl 0x40b9da
jmp 0x40bb1d
mov eax, dword [esp + 0x10]
mov eax, dword [edi + eax*4 - 4]
mov ecx, dword [eax]
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x28]
push edx
push eax
mov eax, dword [ecx + 0x80]
call eax
mov esi, eax
cmp esi, ebx
jl 0x40b9da
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, eax
sub edx, dword [esp + 0x40]
mov ebx, ecx
sbb ebx, dword [esp + 0x44]
add dword [esp + 0x38], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
adc dword [esp + 0x3c], ebx
xor ebx, ebx
xor ebp, ebp
cmp dword [esp + 0x10], ebx
jbe 0x40bb3a
mov eax, dword [edi + ebp*4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + ebp*4], ebx
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x40bb25
cmp edi, ebx
je 0x40bb49
push edi
call fcn.004d195d
add esp, 4
xor edi, edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x28]
inc eax
cmp eax, 1
mov dword [esp + 0x28], eax
jle 0x40b933
jmp 0x40b9da
mov esi, 0x8007000e
jmp 0x40b9da
mov esi, 0x80041002
jmp 0x40b9da
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop ebx
add esp, 0x40
ret