Function at 0x402484
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449d25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc74
push edi
mov byte [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
jmp 0x4024c5
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0x10
jge 0x4027ee
mov ecx, dword [ebp - 0x110]
and ecx, 0xff
test ecx, ecx
jne 0x4027ee
mov dword [ebp - 0x118], 0
push 0x100
push 0
lea edx, [ebp - 0x10c]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x114]
push eax
push str..PhysicalDrive_d
push 0xff
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push 0
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
jne 0x402554
jmp 0x4027e9
mov dword [ebp - 0x11c], 0
push 0xc
push 0
lea eax, [ebp - 0x128]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
push 0x800
push 0
lea ecx, [ebp - 0x928]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea edx, [ebp - 0x11c]
push edx
push 0x800
lea eax, [ebp - 0x928]
push eax
push 0xc
lea ecx, [ebp - 0x128]
push ecx
push 0x2d1400
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4027d6
lea eax, [ebp - 0x928]
mov dword [ebp - 0x92c], eax
cmp dword [ebp - 0x92c], 0
je 0x4027d4
mov byte [ebp - 0xb2c], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0xb2b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0xc2c], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0xc2b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0xa2c], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0xa2b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0xc2c]
push ecx
push 0
mov edx, dword [ebp - 0x92c]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp - 0x928]
push ecx
call fcn.00401b27
add esp, 0x10
lea edx, [ebp - 0xa2c]
push edx
push 0
mov eax, dword [ebp - 0x92c]
mov ecx, dword [eax + 0x14]
push ecx
lea edx, [ebp - 0x928]
push edx
call fcn.00401b27
add esp, 0x10
lea eax, [ebp - 0xb2c]
push eax
push 1
mov ecx, dword [ebp - 0x92c]
mov edx, dword [ecx + 0x18]
push edx
lea eax, [ebp - 0x928]
push eax
call fcn.00401b27
add esp, 0x10
movsx ecx, byte [ebp - 0xb2c]
push ecx
call dword [sym.imp.MSVCRT.dll_isalnum]
add esp, 4
test eax, eax
jne 0x4026cb
movsx edx, byte [ebp - 0xb19]
push edx
call dword [sym.imp.MSVCRT.dll_isalnum]
add esp, 4
test eax, eax
je 0x4027d4
lea eax, [ebp - 0xc40]
push eax
lea ecx, [ebp - 0xb2c]
push ecx
lea ecx, [ebp - 0xc3c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov dword [ebp - 0xc6c], eax
mov edx, dword [ebp - 0xc6c]
mov dword [ebp - 0xc70], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc70]
push eax
mov ecx, dword [ebp + 8]
call dword [0x44c388]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc3c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0xc54]
push ecx
lea edx, [ebp - 0xc2c]
push edx
lea ecx, [ebp - 0xc50]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov dword [ebp - 0xc74], eax
mov eax, dword [ebp - 0xc74]
mov dword [ebp - 0xc78], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0xc78]
push ecx
mov ecx, dword [ebp + 0xc]
call dword [0x44c388]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc50]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea edx, [ebp - 0xc68]
push edx
lea eax, [ebp - 0xa2c]
push eax
lea ecx, [ebp - 0xc64]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov dword [ebp - 0xc7c], eax
mov ecx, dword [ebp - 0xc7c]
mov dword [ebp - 0xc80], ecx
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0xc80]
push edx
mov ecx, dword [ebp + 0x10]
call dword [0x44c388]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc64]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 0x110], 1
jmp 0x4027dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4024b6
mov al, byte [ebp - 0x110]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret