Function at 0x42421b
Capabilities:
Reference wmi statements

Disassembly:
push 0x140
mov eax, 0x42b846
call fcn.004275fb
mov eax, dword [ebp + 8]
xor esi, esi
push str.SELECT__FROM_Win32_DiskDrive
lea edi, [ebp - 0x80]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x74], esi
call fcn.00424bf8
mov ebx, eax
push 0x438760
lea edi, [ebp - 0x78]
mov dword [ebp - 4], esi
call fcn.00424bf8
mov byte [ebp - 4], 1
mov ecx, dword [ebx]
cmp ecx, esi
je 0x424265
mov ecx, dword [ecx]
jmp 0x424267
xor ecx, ecx
mov eax, dword [eax]
cmp eax, esi
je 0x424271
mov edx, dword [eax]
jmp 0x424273
xor edx, edx
mov eax, dword [0x446f34]
mov edi, dword [eax]
lea ebx, [ebp - 0x74]
push ebx
push esi
push 0x30
push ecx
push edx
push eax
call dword [edi + 0x50]
lea edi, [ebp - 0x78]
mov ebx, eax
call fcn.00424c50
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x80]
call fcn.00424c50
cmp ebx, esi
jge 0x42430b
push dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push ebx
push 0x423f41
push ecx
push str.Error_code__0x
push ecx
push str.Query_for_processes_failed.
push dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00424ab3
add esp, 0xc
push eax
call fcn.00424ab3
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [0x446f34]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [0x446f30]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x4249ef
mov dword [ebp - 0x90], esi
jmp 0x4248d3
mov ecx, dword [eax]
lea edx, [ebp - 0x90]
push edx
lea edx, [ebp - 0x70]
push edx
push 1
or ebx, 0xffffffff
push ebx
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x90], esi
je 0x4249e3
push str.DeviceID
lea edi, [ebp - 0x80]
call fcn.00424c90
mov dword [ebp - 4], 2
mov eax, dword [eax]
cmp eax, esi
je 0x424357
mov ecx, dword [eax]
jmp 0x424359
xor ecx, ecx
mov eax, dword [ebp - 0x70]
mov edx, dword [eax]
push esi
push esi
lea edi, [ebp - 0x100]
push edi
push esi
push ecx
push eax
call dword [edx + 0x10]
lea edi, [ebp - 0x80]
mov dword [ebp - 4], ebx
call fcn.00424c50
push str.PNPDeviceID
lea edi, [ebp - 0xb8]
call fcn.00424c90
mov dword [ebp - 4], 3
mov eax, dword [eax]
cmp eax, esi
je 0x424399
mov eax, dword [eax]
jmp 0x42439b
xor eax, eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx]
push esi
push esi
lea edi, [ebp - 0x120]
push edi
push esi
push eax
push ecx
call dword [edx + 0x10]
lea edi, [ebp - 0xb8]
mov dword [ebp - 4], ebx
call fcn.00424c50
push str.Caption
lea edi, [ebp - 0xc0]
call fcn.00424c90
mov dword [ebp - 4], 4
mov eax, dword [eax]
cmp eax, esi
je 0x4243de
mov eax, dword [eax]
jmp 0x4243e0
xor eax, eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx]
push esi
push esi
lea edi, [ebp - 0x110]
push edi
push esi
push eax
push ecx
call dword [edx + 0x10]
lea edi, [ebp - 0xc0]
mov dword [ebp - 4], ebx
call fcn.00424c50
push str.Size
lea edi, [ebp - 0xbc]
call fcn.00424c90
push 5
pop ebx
mov dword [ebp - 4], ebx
mov eax, dword [eax]
cmp eax, esi
je 0x424422
mov eax, dword [eax]
jmp 0x424424
xor eax, eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx]
push esi
push esi
lea edi, [ebp - 0xe0]
push edi
push esi
push eax
push ecx
call dword [edx + 0x10]
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0xbc]
call fcn.00424c50
cmp word [ebp - 0xe0], 1
mov dword [ebp - 0x78], esi
je 0x4244f5
cmp word [ebp - 0xe0], si
je 0x4244f5
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0xd0]
mov dword [ebp - 4], 6
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push eax
call edi
cmp eax, esi
jl 0x4244b5
push 0x10
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0xd0]
push 0x10
push eax
call dword [sym.imp.MSVCR90.dll_memcpy_s]
add esp, 0x10
call fcn.00405b7e
xor eax, eax
mov word [ebp - 0xe0], ax
push ebx
push esi
lea eax, [ebp - 0xd0]
push eax
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
fld qword [ebp - 0xc8]
fdiv qword [0x438d60]
fld1
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4244e6
call fcn.00427696
mov dword [ebp - 0x78], eax
jmp 0x4244e8
fstp st(0)
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xd0]
push eax
call edi
push dword [ebp - 0x118]
push dword [ebp - 0x78]
push dword [ebp - 0x108]
push dword [ebp - 0xf8]
push str._ls_:_Caption:_ls__size:__d_GB_tPNPDeviceId:_ls_n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 0x14
push dword [ebp - 0x118]
lea ecx, [ebp - 0x7c]
call dword [0x42e8c8]
mov dword [ebp - 4], 7
push dword [ebp - 0xf8]
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [ebp - 4], 8
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push dword [eax]
lea eax, [ebp - 0x14c]
push 4
push eax
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 9
call dword [0x42e4c4]
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str.Associators_of_Win32_DiskDrive.DeviceID._
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push str._where_AssocClassWin32_DiskDriveToDiskPartition
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x6c], esi
jae 0x4245b4
lea eax, [ebp - 0x28]
push eax
lea edi, [ebp - 0x98]
call fcn.00424c90
mov ebx, eax
push 0x438760
lea edi, [ebp - 0xa0]
mov byte [ebp - 4], 0xb
call fcn.00424bf8
mov byte [ebp - 4], 0xc
mov ecx, dword [ebx]
cmp ecx, esi
je 0x4245e4
mov ecx, dword [ecx]
jmp 0x4245e6
xor ecx, ecx
mov eax, dword [eax]
cmp eax, esi
je 0x4245f0
mov edx, dword [eax]
jmp 0x4245f2
xor edx, edx
mov eax, dword [0x446f34]
mov edi, dword [eax]
lea ebx, [ebp - 0x6c]
push ebx
push esi
push 0x30
push ecx
push edx
push eax
call dword [edi + 0x50]
lea edi, [ebp - 0xa0]
mov ebx, eax
call fcn.00424c50
lea edi, [ebp - 0x98]
mov byte [ebp - 4], 0xa
call fcn.00424c50
cmp ebx, esi
jl 0x4248e3
mov dword [ebp - 0x84], esi
jmp 0x424879
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push 1
push 0xffffffffffffffff
push dword [ebp - 0x6c]
call dword [eax + 0x10]
cmp dword [ebp - 0x84], esi
je 0x424882
push str.DeviceID
lea edi, [ebp - 0xb4]
call fcn.00424c90
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
cmp eax, esi
je 0x42467c
mov ecx, dword [eax]
jmp 0x42467e
xor ecx, ecx
mov eax, dword [ebp - 0x94]
mov edx, dword [eax]
push esi
push esi
lea edi, [ebp - 0x130]
push edi
push esi
push ecx
push eax
call dword [edx + 0x10]
lea edi, [ebp - 0xb4]
mov byte [ebp - 4], 0xa
call fcn.00424c50
push str.Associators_of_Win32_DiskPartition.DeviceID
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [ebp - 4], 0xe
push dword [ebp - 0x128]
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push str._where_AssocClassWin32_LogicalDiskToPartition
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x68], esi
jae 0x4246e2
lea eax, [ebp - 0x44]
push eax
lea edi, [ebp - 0xac]
call fcn.00424c90
mov ebx, eax
push 0x438760
lea edi, [ebp - 0xa8]
mov byte [ebp - 4], 0xf
call fcn.00424bf8
mov byte [ebp - 4], 0x10
mov ecx, dword [ebx]
cmp ecx, esi
je 0x424712
mov ecx, dword [ecx]
jmp 0x424714
xor ecx, ecx
mov eax, dword [eax]
cmp eax, esi
je 0x42471e
mov edx, dword [eax]
jmp 0x424720
xor edx, edx
mov eax, dword [0x446f34]
mov edi, dword [eax]
lea ebx, [ebp - 0x68]
push ebx
push esi
push 0x30
push ecx
push edx
push eax
call dword [edi + 0x50]
lea edi, [ebp - 0xa8]
mov ebx, eax
call fcn.00424c50
lea edi, [ebp - 0xac]
mov byte [ebp - 4], 0xe
call fcn.00424c50
cmp ebx, esi
jl 0x42496e
mov dword [ebp - 0x88], esi
jmp 0x424841
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
push 1
push 0xffffffffffffffff
push dword [ebp - 0x68]
call dword [eax + 0x10]
cmp dword [ebp - 0x88], esi
je 0x42484a
push str.DeviceID
lea edi, [ebp - 0x9c]
call fcn.00424c90
mov byte [ebp - 4], 0x11
mov eax, dword [eax]
cmp eax, esi
je 0x4247aa
mov ecx, dword [eax]
jmp 0x4247ac
xor ecx, ecx
mov eax, dword [ebp - 0xb0]
mov edx, dword [eax]
push esi
push esi
lea edi, [ebp - 0xf0]
push edi
push esi
push ecx
push eax
call dword [edx + 0x10]
lea edi, [ebp - 0x9c]
mov byte [ebp - 4], 0xe
call fcn.00424c50
push dword [ebp - 0xe8]
push str.Disk_Partition:__ls__n
call dword [sym.imp.MSVCR90.dll_printf]
pop ecx
pop ecx
push esi
push 0x4389b4
lea ecx, [ebp - 0x7c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find_1]
cmp eax, esi
jl 0x424834
push dword [ebp - 0xe8]
lea ecx, [ebp - 0x8c]
call dword [0x42e8c8]
mov ecx, dword [ebp - 0xa4]
lea edx, [ebp - 0x8c]
mov byte [ebp - 4], 0x12
mov eax, dword [ecx + 8]
push edx
push eax
call sub.mfc90u.dll_CStringArray::SetAtGrow_1
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xe
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea eax, [ebp - 0xf0]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp - 0x68], esi
jne 0x424763
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xa
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [ebp - 0x6c], esi
jne 0x424635
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x100]
push eax
call edi
lea eax, [ebp - 0x110]
push eax
call edi
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [ebp - 0x74]
cmp eax, esi
jne 0x424316
jmp 0x4249e6
push dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push ebx
push 0x423f41
push ecx
push str.Error_code__0x
push ecx
push str.Query_for_processes_failed.
push dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00424ab3
add esp, 0xc
push eax
call fcn.00424ab3
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [0x446f34]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [0x446f30]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x7c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x424304
push dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push ebx
push 0x423f41
push ecx
push str.Error_code__0x
push ecx
push str.Query_for_processes_failed.
push dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00424ab3
add esp, 0xc
push eax
call fcn.00424ab3
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [0x446f34]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [0x446f30]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xa
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x424946
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
call fcn.00427645
ret