Function at 0x40cf00
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x416594
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4c
push ebx
push ebp
push esi
xor al, al
push edi
xor ebx, ebx
xor ebp, ebp
mov byte [esp + 0x13], al
or edi, 0xffffffff
lea esp, [esp]
cmp al, bl
jne 0x40d182
push 0x200
lea eax, [esp + 0x360]
push ebx
push eax
call sub.MSVCR80.dll_memset
push ebp
push str..PhysicalDrive_d
lea ecx, [esp + 0x370]
push 0xff
push ecx
call fcn.0040ca50
add esp, 0x1c
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea edx, [esp + 0x374]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
je 0x40d172
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x800
mov dword [esp + 0x24], eax
lea eax, [esp + 0x560]
push ebx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0x800
lea edx, [esp + 0x568]
push edx
push 0xc
lea eax, [esp + 0x2c]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40d165
push 0xff
lea ecx, [esp + 0x61]
push ebx
push ecx
mov byte [esp + 0x68], bl
call sub.MSVCR80.dll_memset
push 0xff
lea edx, [esp + 0x26d]
push ebx
push edx
mov byte [esp + 0x274], bl
call sub.MSVCR80.dll_memset
push 0xff
lea eax, [esp + 0x179]
push ebx
push eax
mov byte [esp + 0x180], bl
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x590]
lea ecx, [esp + 0x280]
push ecx
push ebx
push edx
lea eax, [esp + 0x58c]
push eax
call fcn.0040c830
mov edx, dword [esp + 0x5a4]
lea ecx, [esp + 0x190]
push ecx
push ebx
push edx
lea eax, [esp + 0x59c]
push eax
call fcn.0040c830
mov edx, dword [esp + 0x5b8]
add esp, 0x44
lea ecx, [esp + 0x5c]
push ecx
push 1
push edx
lea eax, [esp + 0x568]
push eax
call fcn.0040c830
movsx ecx, byte [esp + 0x6c]
push ecx
call dword [sym.imp.MSVCR80.dll_isalnum]
add esp, 0x14
test eax, eax
jne 0x40d0b1
movsx edx, byte [esp + 0x6f]
push edx
call dword [sym.imp.MSVCR80.dll_isalnum]
add esp, 4
test eax, eax
je 0x40d16b
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0xd6c]
push eax
mov dword [esp + 0xd68], ebx
call dword [sym.imp.MSVCP80.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x24]
mov dword [esp + 0xd64], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x25c]
push ecx
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0xd70]
push eax
mov dword [esp + 0xd68], 1
call dword [sym.imp.MSVCP80.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x24]
mov dword [esp + 0xd64], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea edx, [esp + 0x15c]
push edx
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0xd74]
push eax
mov dword [esp + 0xd68], 2
call dword [sym.imp.MSVCP80.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x40]
mov dword [esp + 0xd64], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x13], 1
jmp 0x40d16b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
add ebp, 1
cmp ebp, 0x10
jl 0x40cf30
mov ecx, dword [esp + 0xd5c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd58
ret