Function at 0x47c340
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fe2d
mov eax, dword fs:[0]
push eax
sub esp, 0xd94
mov eax, dword [0x4d2a20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x215], 0
mov dword [ebp - 0x21c], 0
jmp 0x47c38d
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0x10
jge 0x47c69c
movzx ecx, byte [ebp - 0x215]
test ecx, ecx
jne 0x47c69c
mov dword [ebp - 0x220], 0
push 0x200
push 0
lea edx, [ebp - 0x214]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x21c]
push eax
push str..PhysicalDrive_d
push 0xff
lea ecx, [ebp - 0x214]
push ecx
call fcn.0044e810
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push 0
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0xffffffff
jne 0x47c416
jmp 0x47c697
mov dword [ebp - 0xa30], 0
push 0xc
push 0
lea eax, [ebp - 0x22c]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
push 0x800
push 0
lea ecx, [ebp - 0xa2c]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
lea edx, [ebp - 0xa30]
push edx
push 0x800
lea eax, [ebp - 0xa2c]
push eax
push 0xc
lea ecx, [ebp - 0x22c]
push ecx
push 0x2d1400
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x47c684
lea eax, [ebp - 0xa2c]
mov dword [ebp - 0xa34], eax
cmp dword [ebp - 0xa34], 0
je 0x47c682
mov byte [ebp - 0xd34], 0
push 0xff
push 0
lea ecx, [ebp - 0xd33]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov byte [ebp - 0xc34], 0
push 0xff
push 0
lea edx, [ebp - 0xc33]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov byte [ebp - 0xb34], 0
push 0xff
push 0
lea eax, [ebp - 0xb33]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xc34]
push ecx
push 0
mov edx, dword [ebp - 0xa34]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp - 0xa2c]
push ecx
call fcn.0047b7d0
add esp, 0x10
lea edx, [ebp - 0xb34]
push edx
push 0
mov eax, dword [ebp - 0xa34]
mov ecx, dword [eax + 0x14]
push ecx
lea edx, [ebp - 0xa2c]
push edx
call fcn.0047b7d0
add esp, 0x10
lea eax, [ebp - 0xd34]
push eax
push 1
mov ecx, dword [ebp - 0xa34]
mov edx, dword [ecx + 0x18]
push edx
lea eax, [ebp - 0xa2c]
push eax
call fcn.0047b7d0
add esp, 0x10
movsx ecx, byte [ebp - 0xd34]
push ecx
call sub.MSVCR80.dll_isalnum
add esp, 4
test eax, eax
jne 0x47c597
movsx edx, byte [ebp - 0xd21]
push edx
call sub.MSVCR80.dll_isalnum
add esp, 4
test eax, eax
je 0x47c682
lea eax, [ebp - 0xd34]
push eax
lea ecx, [ebp - 0xd50]
call fcn.00406abb
mov dword [ebp - 0xd8c], eax
mov ecx, dword [ebp - 0xd8c]
mov dword [ebp - 0xd90], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xd90]
push edx
mov ecx, dword [ebp + 8]
call fcn.00427b22
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd50]
call fcn.00406b99
lea eax, [ebp - 0xc34]
push eax
lea ecx, [ebp - 0xd6c]
call fcn.00406abb
mov dword [ebp - 0xd94], eax
mov ecx, dword [ebp - 0xd94]
mov dword [ebp - 0xd98], ecx
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0xd98]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00427b22
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd6c]
call fcn.00406b99
lea eax, [ebp - 0xb34]
push eax
lea ecx, [ebp - 0xd88]
call fcn.00406abb
mov dword [ebp - 0xd9c], eax
mov ecx, dword [ebp - 0xd9c]
mov dword [ebp - 0xda0], ecx
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0xda0]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.00427b22
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd88]
call fcn.00406b99
mov byte [ebp - 0x215], 1
jmp 0x47c68a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47c37e
mov al, byte [ebp - 0x215]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047676d
mov esp, ebp
pop ebp
ret