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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
mov byte [ebp - 0x15], 1
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0x50ab3c
push 1
push 0
push 0x50ac0c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x4608cc
xor al, al
jmp 0x460b27
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push str.ROOTCIMV2
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [eax + 0xc]
call edx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x460914
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx + 8]
call eax
xor al, al
jmp 0x460b27
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x460958
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx + 8]
call eax
xor al, al
jmp 0x460b27
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x30
push str.SELECT__FROM_Win32_LogicalDisk
push 0x503258
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [eax + 0x50]
call edx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x4609ab
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 8]
call ecx
xor al, al
jmp 0x460b27
mov dword [ebp - 8], 0
cmp dword [ebp - 0x10], 0
je 0x460afb
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
push 1
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [edx + 0x10]
call ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 8], 0
jne 0x4609e8
mov byte [ebp - 0x15], 0
jmp 0x460afb
mov word [ebp - 0x30], 0
xor edx, edx
mov dword [ebp - 0x2e], edx
mov dword [ebp - 0x2a], edx
mov dword [ebp - 0x26], edx
mov word [ebp - 0x22], dx
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push str.Name
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 0x10]
call ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x460a2c
mov byte [ebp - 0x15], 0
jmp 0x460afb
mov edx, dword [ebp - 0x28]
push edx
call fcn.004ade29
add esp, 4
push eax
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0041d8f0
push eax
call fcn.004b4001
add esp, 0xc
test eax, eax
je 0x460a61
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x4609b2
movzx edx, byte [ebp + 8]
cmp edx, 1
jne 0x460aa4
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push str.Size
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 0x10]
call ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x460a96
mov byte [ebp - 0x15], 0
jmp 0x460afb
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.0045c6e0
jmp 0x460adc
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push str.FreeSpace
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 0x10]
call ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x460ad0
mov byte [ebp - 0x15], 0
jmp 0x460afb
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.0045c6e0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 8]
call ecx
jmp 0x460afb
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [edx + 8]
call ecx
mov al, 1
mov esp, ebp
pop ebp
ret 0xc