Function at 0x50aff0
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555e4f
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5d3370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], 1
push 0
push 0
call dword [0x55ce50]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x50b03d
cmp dword [ebp - 0x2c], 0x80010106
je 0x50b03d
jmp 0x50b3e5
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [0x55ce40]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x50b06c
cmp dword [ebp - 0x2c], 0x80010119
je 0x50b06c
jmp 0x50b3e5
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0x599eac
push 1
push 0
push 0x599f7c
call dword [0x55ce3c]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x50b099
jmp 0x50b3e5
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push str.ROOTCIMV2
lea ecx, [ebp - 0x40]
call fcn.00492c20
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x64], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x64]
call fcn.00492ce0
push eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ecx + 0xc]
call eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00492cc0
cmp dword [ebp - 0x2c], 0
jge 0x50b10f
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [edx + 8]
call ecx
jmp 0x50b3e5
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov edx, dword [ebp - 0x28]
push edx
call dword [0x55ce54]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x50b151
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [edx + 8]
call ecx
jmp 0x50b3e5
mov dword [ebp - 0x24], 0
push str.SELECT__FROM_Win32_DiskDrive_where_Index
lea ecx, [ebp - 0x20]
call fcn.00492b80
mov dword [ebp - 4], 1
lea edx, [ebp - 0x4c]
push edx
push 0xa
movsx eax, byte [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
push ecx
call dword [0x55bb80]
add esp, 0xc
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x6c]
call dword [0x55b874]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x74]
call dword [0x55ba70]
push eax
lea ecx, [ebp - 0x44]
call fcn.00492b80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0050c5d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.00492cc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call dword [0x55ba88]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call dword [0x55bc10]
push 0x592b88
lea ecx, [ebp - 0x50]
call fcn.00492b80
mov byte [ebp - 4], 5
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x20]
call fcn.0050c5d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00492cc0
lea eax, [ebp - 0x24]
push eax
push 0
push 0x30
lea ecx, [ebp - 0x20]
call fcn.00492ce0
push eax
push 0x592b8c
lea ecx, [ebp - 0x54]
call fcn.00492b80
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x7c]
call fcn.00492ce0
push eax
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [eax + 0x50]
call edx
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.00492cc0
cmp dword [ebp - 0x2c], 0
jge 0x50b29f
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [edx + 8]
call ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00492cc0
jmp 0x50b3e5
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x24], 0
je 0x50b3a4
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
push 1
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [edx + 0x10]
call ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x18], 0
jne 0x50b2df
jmp 0x50b3a4
push 0
push 0
lea edx, [ebp - 0x3c]
push edx
push 0
push 0x592b90
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ecx + 0x10]
call eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x50b315
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [edx + 8]
call ecx
jmp 0x50b2ad
push 0xffffffffffffffff
mov edx, dword [ebp - 0x34]
push edx
lea eax, [ebp - 0x58]
push eax
call dword [0x55bc04]
add esp, 0xc
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x84]
push edx
push str.External_hard_disk_media
lea ecx, [ebp - 0x5c]
call dword [0x55bbf8]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.0041b380
add esp, 8
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x5c]
call dword [0x55bc10]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call dword [0x55bc10]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [eax + 8]
call edx
jmp 0x50b3a4
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [eax + 8]
call edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00492cc0
xor eax, eax
jne 0x50b01c
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret