Function at 0x413b7c
Capabilities:
Reference wmi statements

Disassembly:
push 0x154
mov eax, 0x418a28
call fcn.004159bb
mov eax, dword [ebp + 8]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push str.SELECT__FROM_Win32_DiskDrive
lea edi, [ebp - 0x84]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x78], ebx
call fcn.0041454d
mov esi, eax
push 0x423fa8
lea edi, [ebp - 0x80]
mov dword [ebp - 4], ebx
call fcn.0041454d
mov byte [ebp - 4], 1
mov ecx, dword [esi]
cmp ecx, ebx
je 0x413bd2
mov ecx, dword [ecx]
jmp 0x413bd4
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x413bde
mov edx, dword [eax]
jmp 0x413be0
xor edx, edx
mov eax, dword [0x42dcc8]
mov esi, dword [eax]
lea edi, [ebp - 0x78]
push edi
push ebx
push 0x30
push ecx
push edx
push eax
call dword [esi + 0x50]
lea edi, [ebp - 0x80]
mov esi, eax
call fcn.004145a5
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x84]
call fcn.004145a5
cmp esi, ebx
jge 0x413c7b
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 esi
push 0x414703
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.004143ce
add esp, 0xc
push eax
call fcn.004143ce
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 [0x42dcc8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [0x42dcc4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x4143c8
mov dword [ebp - 0x90], ebx
jmp 0x4142a7
mov ecx, dword [eax]
lea edx, [ebp - 0x90]
push edx
lea edx, [ebp - 0x74]
push edx
push 1
or esi, 0xffffffff
push esi
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x90], ebx
je 0x4143bc
push str.DeviceID
lea edi, [ebp - 0x84]
call fcn.004145e5
mov dword [ebp - 4], 2
mov eax, dword [eax]
cmp eax, ebx
je 0x413cca
mov ecx, dword [eax]
jmp 0x413ccc
xor ecx, ecx
mov eax, dword [ebp - 0x74]
mov edx, dword [eax]
push ebx
push ebx
lea edi, [ebp - 0x124]
push edi
push ebx
push ecx
push eax
call dword [edx + 0x10]
lea edi, [ebp - 0x84]
mov dword [ebp - 4], esi
call fcn.004145a5
push str.PNPDeviceID
lea edi, [ebp - 0x80]
call fcn.004145e5
mov dword [ebp - 4], 3
mov eax, dword [eax]
cmp eax, ebx
je 0x413d0c
mov eax, dword [eax]
jmp 0x413d0e
xor eax, eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx]
push ebx
push ebx
lea edi, [ebp - 0x144]
push edi
push ebx
push eax
push ecx
call dword [edx + 0x10]
lea edi, [ebp - 0x80]
mov dword [ebp - 4], esi
call fcn.004145a5
push str.Caption
lea edi, [ebp - 0xc8]
call fcn.004145e5
mov dword [ebp - 4], 4
mov eax, dword [eax]
cmp eax, ebx
je 0x413d4e
mov eax, dword [eax]
jmp 0x413d50
xor eax, eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx]
push ebx
push ebx
lea edi, [ebp - 0x134]
push edi
push ebx
push eax
push ecx
call dword [edx + 0x10]
lea edi, [ebp - 0xc8]
mov dword [ebp - 4], esi
call fcn.004145a5
push str.Size
lea edi, [ebp - 0xd0]
call fcn.004145e5
mov dword [ebp - 4], 5
mov eax, dword [eax]
cmp eax, ebx
je 0x413d93
mov eax, dword [eax]
jmp 0x413d95
xor eax, eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx]
push ebx
push ebx
lea edi, [ebp - 0x104]
push edi
push ebx
push eax
push ecx
call dword [edx + 0x10]
lea edi, [ebp - 0xd0]
mov dword [ebp - 4], esi
call fcn.004145a5
xor edi, edi
cmp word [ebp - 0x104], 1
je 0x413e36
cmp word [ebp - 0x104], bx
je 0x413e36
lea eax, [ebp - 0xe4]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0xe4]
push eax
lea esi, [ebp - 0x104]
mov dword [ebp - 4], 6
call fcn.00414513
push 5
push ebx
lea eax, [ebp - 0xe4]
push eax
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
fld qword [ebp - 0xdc]
fdiv qword [0x4242a0]
fld1
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x413e23
call fcn.00415af6
mov edi, eax
jmp 0x413e25
fstp st(0)
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xe4]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push dword [ebp - 0x13c]
push edi
push dword [ebp - 0x12c]
push dword [ebp - 0x11c]
push str._ls_:_Caption:_ls__size:__d_GB_tPNPDeviceId:_ls_n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 0x14
push dword [ebp - 0x13c]
lea ecx, [ebp - 0x7c]
call dword [0x41a924]
mov dword [ebp - 4], 7
push dword [ebp - 0x11c]
lea ecx, [ebp - 0x68]
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 - 0x160]
push 4
push eax
lea ecx, [ebp - 0x68]
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 - 0x68]
mov byte [ebp - 4], 9
call dword [0x41a3b8]
lea ecx, [ebp - 0x160]
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 - 0x30]
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 - 0x68]
push eax
lea ecx, [ebp - 0x30]
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 - 0x30]
call dword [0x41a388]
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x70], ebx
jae 0x413ef3
lea eax, [ebp - 0x2c]
push eax
lea edi, [ebp - 0xc0]
call fcn.004145e5
mov esi, eax
push 0x423fa8
lea edi, [ebp - 0xcc]
mov byte [ebp - 4], 0xb
call fcn.0041454d
mov byte [ebp - 4], 0xc
mov ecx, dword [esi]
cmp ecx, ebx
je 0x413f23
mov ecx, dword [ecx]
jmp 0x413f25
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x413f2f
mov edx, dword [eax]
jmp 0x413f31
xor edx, edx
mov eax, dword [0x42dcc8]
mov esi, dword [eax]
lea edi, [ebp - 0x70]
push edi
push ebx
push 0x30
push ecx
push edx
push eax
call dword [esi + 0x50]
lea edi, [ebp - 0xcc]
mov esi, eax
call fcn.004145a5
lea edi, [ebp - 0xc0]
mov byte [ebp - 4], 0xa
call fcn.004145a5
cmp esi, ebx
jl 0x4142b7
mov dword [ebp - 0x94], ebx
jmp 0x41424d
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
lea ecx, [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x9c]
push ecx
push 1
push 0xffffffffffffffff
push dword [ebp - 0x70]
call dword [eax + 0x10]
cmp dword [ebp - 0x94], ebx
je 0x414256
push str.DeviceID
lea edi, [ebp - 0xa4]
call fcn.004145e5
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
cmp eax, ebx
je 0x413fbb
mov ecx, dword [eax]
jmp 0x413fbd
xor ecx, ecx
mov eax, dword [ebp - 0x9c]
mov edx, dword [eax]
push ebx
push ebx
lea esi, [ebp - 0xf4]
push esi
push ebx
push ecx
push eax
call dword [edx + 0x10]
lea edi, [ebp - 0xa4]
mov byte [ebp - 4], 0xa
call fcn.004145a5
push str.Associators_of_Win32_DiskPartition.DeviceID
lea ecx, [ebp - 0x4c]
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 - 0xec]
lea ecx, [ebp - 0x4c]
call dword [0x41a388]
push str._where_AssocClassWin32_LogicalDiskToPartition
lea ecx, [ebp - 0x4c]
call dword [0x41a388]
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x6c], ebx
jae 0x414021
lea eax, [ebp - 0x48]
push eax
lea edi, [ebp - 0xc4]
call fcn.004145e5
mov esi, eax
push 0x423fa8
lea edi, [ebp - 0xb0]
mov byte [ebp - 4], 0xf
call fcn.0041454d
mov byte [ebp - 4], 0x10
mov ecx, dword [esi]
cmp ecx, ebx
je 0x414051
mov ecx, dword [ecx]
jmp 0x414053
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x41405d
mov edx, dword [eax]
jmp 0x41405f
xor edx, edx
mov eax, dword [0x42dcc8]
mov esi, dword [eax]
lea edi, [ebp - 0x6c]
push edi
push ebx
push 0x30
push ecx
push edx
push eax
call dword [esi + 0x50]
lea edi, [ebp - 0xb0]
mov esi, eax
call fcn.004145a5
lea edi, [ebp - 0xc4]
mov byte [ebp - 4], 0xe
call fcn.004145a5
cmp esi, ebx
jl 0x414342
mov dword [ebp - 0x8c], ebx
jmp 0x414215
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0xb8]
push ecx
push 1
push 0xffffffffffffffff
push dword [ebp - 0x6c]
call dword [eax + 0x10]
cmp dword [ebp - 0x8c], ebx
je 0x41421e
push str.DeviceID
lea edi, [ebp - 0xbc]
call fcn.004145e5
mov byte [ebp - 4], 0x11
mov eax, dword [eax]
cmp eax, ebx
je 0x4140e9
mov ecx, dword [eax]
jmp 0x4140eb
xor ecx, ecx
mov eax, dword [ebp - 0xb8]
mov edx, dword [eax]
push ebx
push ebx
lea esi, [ebp - 0x114]
push esi
push ebx
push ecx
push eax
call dword [edx + 0x10]
lea edi, [ebp - 0xbc]
mov byte [ebp - 4], 0xe
call fcn.004145a5
push dword [ebp - 0xec]
mov esi, dword [sym.imp.MSVCR90.dll_printf]
push str.Disk_:__ls__n
call esi
pop ecx
pop ecx
push dword [ebp - 0xec]
lea ecx, [ebp - 0xa0]
call dword [0x41a924]
mov byte [ebp - 4], 0x12
push dword [ebp - 0x10c]
push str.Disk_Partition:__ls__n
call esi
mov esi, dword [ebp - 0xa8]
mov eax, dword [esi + 8]
pop ecx
xor edi, edi
cmp eax, ebx
pop ecx
mov dword [ebp - 0xb4], eax
jle 0x4141f8
cmp edi, ebx
jl 0x4143b7
cmp edi, dword [esi + 8]
jge 0x4143b7
mov eax, dword [esi + 4]
lea eax, [eax + edi*4]
push eax
lea ecx, [ebp - 0x98]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
push ebx
mov byte [ebp - 4], 0x13
push dword [ebp - 0x98]
lea ecx, [ebp - 0xa0]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
cmp eax, ebx
jl 0x4141db
push dword [ebp - 0x10c]
lea ecx, [ebp - 0x88]
call dword [0x41a924]
mov ecx, dword [ebp - 0xac]
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 0x14
mov eax, dword [ecx + 8]
push edx
push eax
call sub.mfc90u.dll_CStringArray::SetAtGrow_1
lea ecx, [ebp - 0x88]
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 ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x12
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
inc edi
cmp edi, dword [ebp - 0xb4]
jl 0x414164
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0xa0]
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]
cmp dword [ebp - 0x6c], ebx
jne 0x4140a2
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x4c]
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 - 0x70], ebx
jne 0x413f74
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x124]
push eax
call esi
lea eax, [ebp - 0x134]
push eax
call esi
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x30]
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 - 0x68]
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 - 0x78]
cmp eax, ebx
jne 0x413c86
jmp 0x4143bf
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 esi
push 0x414703
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.004143ce
add esp, 0xc
push eax
call fcn.004143ce
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 [0x42dcc8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [0x42dcc4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x30]
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 - 0x68]
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 0x413c74
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 esi
push 0x414703
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.004143ce
add esp, 0xc
push eax
call fcn.004143ce
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 [0x42dcc8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [0x42dcc4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x4c]
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 0x41431a
call sub.mfc90u.dll_AfxThrowInvalidArgException
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
call fcn.00415a3e
ret