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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486150
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4ba1f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov word [ebp - 0x2c], ax
push 0x3b
mov eax, str.select__from_Win32_DiskDrive_where_not_InterfaceTypeUSB
lea esi, [ebp - 0x2c]
mov edi, ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.00401bf0
lea ecx, [ebp - 0x54]
push ecx
push 0x4993bc
push 1
push ebx
push 0x49948c
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
lea esi, [ebx + 8]
test eax, eax
js 0x4107e5
mov eax, dword [ebp - 0x54]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [ebp - 0x50]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.ROOTCIMV2
push eax
call edx
test eax, eax
js 0x4107e5
mov eax, dword [ebp - 0x50]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x4107e5
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x41074b
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
lea esi, [ebp - 0x4c]
push esi
push ebx
push 0x30
push ecx
push 0x49bd78
push eax
mov eax, dword [edx + 0x50]
call eax
mov esi, 8
test eax, eax
js 0x4107e5
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
je 0x4107e8
mov ecx, dword [eax]
lea edx, [ebp - 0x5c]
push edx
lea edx, [ebp - 0x58]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
js 0x4107e5
cmp dword [ebp - 0x5c], ebx
je 0x4107e5
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x70]
push edx
push ebx
push str.DeviceID
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, ebx
jl 0x4107dc
cmp word [ebp - 0x70], si
jne 0x4107dc
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x48]
call fcn.00401ce0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.004111e0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], esi
jb 0x4107dc
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004657ea
add esp, 4
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
jne 0x410773
jmp 0x4107e8
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x58]
cmp ecx, ebx
je 0x4107fd
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x58], ebx
cmp eax, ebx
je 0x41080c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x4c], ebx
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x41081e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x50], ebx
mov eax, dword [ebp - 0x54]
cmp eax, ebx
je 0x410830
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x54], ebx
cmp dword [ebp - 0x18], esi
jb 0x410841
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004657ea
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004657f5
mov esp, ebp
pop ebp
ret