Function at 0x4135cf
Capabilities:
Reference wmi statements

Disassembly:
push 0x140
mov eax, 0x418384
call fcn.0041536b
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.00413ef0
mov ebx, eax
push 0x422f64
lea edi, [ebp - 0x78]
mov dword [ebp - 4], esi
call fcn.00413ef0
mov byte [ebp - 4], 1
mov ecx, dword [ebx]
cmp ecx, esi
je 0x413619
mov ecx, dword [ecx]
jmp 0x41361b
xor ecx, ecx
mov eax, dword [eax]
cmp eax, esi
je 0x413625
mov edx, dword [eax]
jmp 0x413627
xor edx, edx
mov eax, dword [0x42bc78]
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.00413f48
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x80]
call fcn.00413f48
cmp ebx, esi
jge 0x4136bf
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 0x4140a6
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.00413da3
add esp, 0xc
push eax
call fcn.00413da3
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 [0x42bc78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [0x42bc74]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x413d9d
mov dword [ebp - 0x90], esi
jmp 0x413c81
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 0x413d91
push str.DeviceID
lea edi, [ebp - 0x80]
call fcn.00413f88
mov dword [ebp - 4], 2
mov eax, dword [eax]
cmp eax, esi
je 0x41370b
mov ecx, dword [eax]
jmp 0x41370d
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.00413f48
push str.PNPDeviceID
lea edi, [ebp - 0xb8]
call fcn.00413f88
mov dword [ebp - 4], 3
mov eax, dword [eax]
cmp eax, esi
je 0x41374d
mov eax, dword [eax]
jmp 0x41374f
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.00413f48
push str.Caption
lea edi, [ebp - 0xc0]
call fcn.00413f88
mov dword [ebp - 4], 4
mov eax, dword [eax]
cmp eax, esi
je 0x413792
mov eax, dword [eax]
jmp 0x413794
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.00413f48
push str.Size
lea edi, [ebp - 0xbc]
call fcn.00413f88
push 5
pop ebx
mov dword [ebp - 4], ebx
mov eax, dword [eax]
cmp eax, esi
je 0x4137d6
mov eax, dword [eax]
jmp 0x4137d8
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.00413f48
cmp word [ebp - 0xe0], 1
mov dword [ebp - 0x78], esi
je 0x4138a3
cmp word [ebp - 0xe0], si
je 0x4138a3
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 0x413863
push 0x10
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0xd0]
push 0x10
push eax
call fcn.00406138
add esp, 0x10
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 [0x4231f0]
fld1
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x413894
call fcn.004154a6
mov dword [ebp - 0x78], eax
jmp 0x413896
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 [0x419724]
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 [0x4193a0]
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 [0x419370]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x6c], esi
jae 0x413962
lea eax, [ebp - 0x28]
push eax
lea edi, [ebp - 0x98]
call fcn.00413f88
mov ebx, eax
push 0x422f64
lea edi, [ebp - 0xa0]
mov byte [ebp - 4], 0xb
call fcn.00413ef0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebx]
cmp ecx, esi
je 0x413992
mov ecx, dword [ecx]
jmp 0x413994
xor ecx, ecx
mov eax, dword [eax]
cmp eax, esi
je 0x41399e
mov edx, dword [eax]
jmp 0x4139a0
xor edx, edx
mov eax, dword [0x42bc78]
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.00413f48
lea edi, [ebp - 0x98]
mov byte [ebp - 4], 0xa
call fcn.00413f48
cmp ebx, esi
jl 0x413c91
mov dword [ebp - 0x84], esi
jmp 0x413c27
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 0x413c30
push str.DeviceID
lea edi, [ebp - 0xb4]
call fcn.00413f88
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
cmp eax, esi
je 0x413a2a
mov ecx, dword [eax]
jmp 0x413a2c
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.00413f48
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 [0x419370]
push str._where_AssocClassWin32_LogicalDiskToPartition
lea ecx, [ebp - 0x48]
call dword [0x419370]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x68], esi
jae 0x413a90
lea eax, [ebp - 0x44]
push eax
lea edi, [ebp - 0xac]
call fcn.00413f88
mov ebx, eax
push 0x422f64
lea edi, [ebp - 0xa8]
mov byte [ebp - 4], 0xf
call fcn.00413ef0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebx]
cmp ecx, esi
je 0x413ac0
mov ecx, dword [ecx]
jmp 0x413ac2
xor ecx, ecx
mov eax, dword [eax]
cmp eax, esi
je 0x413acc
mov edx, dword [eax]
jmp 0x413ace
xor edx, edx
mov eax, dword [0x42bc78]
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.00413f48
lea edi, [ebp - 0xac]
mov byte [ebp - 4], 0xe
call fcn.00413f48
cmp ebx, esi
jl 0x413d1c
mov dword [ebp - 0x88], esi
jmp 0x413bef
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 0x413bf8
push str.DeviceID
lea edi, [ebp - 0x9c]
call fcn.00413f88
mov byte [ebp - 4], 0x11
mov eax, dword [eax]
cmp eax, esi
je 0x413b58
mov ecx, dword [eax]
jmp 0x413b5a
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.00413f48
push dword [ebp - 0xe8]
push str.Disk_Partition:__ls__n
call dword [sym.imp.MSVCR90.dll_printf]
pop ecx
pop ecx
push esi
push 0x4231b4
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]
cmp eax, esi
jl 0x413be2
push dword [ebp - 0xe8]
lea ecx, [ebp - 0x8c]
call dword [0x419724]
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 0x413b11
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 0x4139e3
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 0x4136ca
jmp 0x413d94
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 0x4140a6
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.00413da3
add esp, 0xc
push eax
call fcn.00413da3
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 [0x42bc78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [0x42bc74]
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 0x4136b8
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 0x4140a6
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.00413da3
add esp, 0xc
push eax
call fcn.00413da3
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 [0x42bc78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [0x42bc74]
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 0x413cf4
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
call fcn.004153ee
ret