Function at 0x40de43
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x4150d3
call sub.MSVCRT.dll__EH_prolog
sub esp, 0xd4c
push ebx
xor ebx, ebx
push edi
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
cmp byte [ebp - 0xd], bl
jne 0x40e0f9
push 0x200
lea eax, [ebp - 0x558]
push ebx
push eax
call sub.MSVCRT.dll_memset
push dword [ebp - 0x14]
lea eax, [ebp - 0x558]
push str..PhysicalDrive_d
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x1c
lea eax, [ebp - 0x558]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x40e0ec
push 0xc
lea eax, [ebp - 0x28]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
call sub.MSVCRT.dll_memset
mov edi, 0x800
lea eax, [ebp - 0xd58]
push edi
push ebx
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 0xd58]
push edi
push eax
lea eax, [ebp - 0x28]
push 0xc
push eax
push 0x2d1400
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40e0dd
lea eax, [ebp - 0xd58]
test eax, eax
je 0x40e0e3
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x157]
mov byte [ebp - 0x158], bl
push 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x257]
mov byte [ebp - 0x258], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x357]
mov byte [ebp - 0x358], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x258]
push eax
push ebx
push dword [ebp - 0xd48]
lea eax, [ebp - 0xd58]
push eax
call fcn.0040d8cc
lea eax, [ebp - 0x358]
push eax
push ebx
push dword [ebp - 0xd44]
lea eax, [ebp - 0xd58]
push eax
call fcn.0040d8cc
lea eax, [ebp - 0x158]
push eax
push 1
pop edi
lea eax, [ebp - 0xd58]
push edi
push dword [ebp - 0xd40]
push eax
call fcn.0040d8cc
movsx eax, byte [ebp - 0x158]
push eax
call dword [sym.imp.MSVCRT.dll_isalnum]
add esp, 0x34
test eax, eax
jne 0x40dfd7
movsx eax, byte [ebp - 0x145]
push eax
call dword [sym.imp.MSVCRT.dll_isalnum]
test eax, eax
pop ecx
je 0x40e0e3
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x58], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x158]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [eax]
lea eax, [ebp - 0x58]
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
or dword [ebp - 4], 0xffffffff
push edi
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x38], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x258]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [eax]
lea eax, [ebp - 0x38]
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
or dword [ebp - 4], 0xffffffff
push edi
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x48], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x358]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x358]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x48]
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
or dword [ebp - 4], 0xffffffff
push edi
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov byte [ebp - 0xd], 1
jmp 0x40e0e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x10
jl 0x40de5d
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret