Function at 0x45e8c0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd40
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0xd40], eax
mov esi, ecx
mov dword [ebp - 0xd38], 0
xor bl, bl
nop
test bl, bl
jne 0x45eca8
push 0x200
lea eax, [ebp - 0x50c]
push 0
push eax
call sub.MSVCR120.dll_memset
push dword [ebp - 0xd38]
lea eax, [ebp - 0x50c]
push str..PhysicalDrive_d
push 0xffffffffffffffff
push 0xff
push eax
call dword [sym.imp.MSVCR120.dll__snwprintf_s]
add esp, 0x20
lea eax, [ebp - 0x50c]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xd3c], eax
cmp eax, 0xffffffff
je 0x45ec92
push 0x800
xorps xmm0, xmm0
mov dword [ebp - 0xd10], 0
lea eax, [ebp - 0xd0c]
movq qword [ebp - 0xd1c], xmm0
push 0
push eax
mov dword [ebp - 0xd14], 0
mov dword [ebp - 0xd1c], 0
mov dword [ebp - 0xd18], 0
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0xd10]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd0c]
push eax
push 0xc
lea eax, [ebp - 0xd1c]
push eax
push 0x2d1400
push dword [ebp - 0xd3c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45ec80
push 0xff
lea eax, [ebp - 0x10b]
mov byte [ebp - 0x10c], bl
push 0
push eax
call sub.MSVCR120.dll_memset
push 0xff
lea eax, [ebp - 0x20b]
mov byte [ebp - 0x20c], bl
push 0
push eax
call sub.MSVCR120.dll_memset
push 0xff
lea eax, [ebp - 0x30b]
mov byte [ebp - 0x30c], bl
push 0
push eax
call sub.MSVCR120.dll_memset
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x20c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.0045e1d0
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x30c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.0045e1d0
mov edx, dword [ebp - 0xcf4]
lea eax, [ebp - 0x10c]
push eax
push 1
lea ecx, [ebp - 0xd0c]
call fcn.0045e1d0
movsx eax, byte [ebp - 0x10c]
push eax
call dword [sym.imp.MSVCR120.dll_isalnum]
add esp, 0x40
test eax, eax
jne 0x45ea9c
movsx eax, byte [ebp - 0xf9]
push eax
call dword [sym.imp.MSVCR120.dll_isalnum]
add esp, 4
test eax, eax
je 0x45ec86
cmp byte [ebp - 0x10c], 0
mov dword [ebp - 0xd20], 0xf
mov dword [ebp - 0xd24], 0
mov byte [ebp - 0xd34], 0
jne 0x45eac4
xor ecx, ecx
jmp 0x45ead9
lea ecx, [ebp - 0x10c]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45ead0
sub ecx, edx
push ecx
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xd34]
call fcn.00403381
lea eax, [ebp - 0xd34]
cmp esi, eax
je 0x45eb26
cmp dword [esi + 0x14], 0x10
jb 0x45eb07
push dword [esi]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea eax, [ebp - 0xd34]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov byte [esi], 0
call fcn.00402f06
cmp dword [ebp - 0xd20], 0x10
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x45eb40
push dword [ebp - 0xd34]
call ebx
add esp, 4
cmp byte [ebp - 0x20c], 0
mov dword [ebp - 0xd20], 0xf
mov dword [ebp - 0xd24], 0
mov byte [ebp - 0xd34], 0
jne 0x45eb68
xor ecx, ecx
jmp 0x45eb7a
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45eb71
sub ecx, edx
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xd34]
call fcn.00403381
lea eax, [ebp - 0xd34]
cmp edi, eax
je 0x45ebc3
cmp dword [edi + 0x14], 0x10
jb 0x45eba4
push dword [edi]
call ebx
add esp, 4
lea eax, [ebp - 0xd34]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov ecx, edi
push eax
mov byte [edi], 0
call fcn.00402f06
cmp dword [ebp - 0xd20], 0x10
jb 0x45ebd7
push dword [ebp - 0xd34]
call ebx
add esp, 4
cmp byte [ebp - 0x30c], 0
mov dword [ebp - 0xd20], 0xf
mov dword [ebp - 0xd24], 0
mov byte [ebp - 0xd34], 0
jne 0x45ebff
xor eax, eax
jmp 0x45ec11
lea eax, [ebp - 0x30c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45ec08
sub eax, edx
push eax
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0xd34]
call fcn.00403381
mov ebx, dword [ebp - 0xd40]
lea eax, [ebp - 0xd34]
cmp ebx, eax
je 0x45ec64
cmp dword [ebx + 0x14], 0x10
jb 0x45ec45
push dword [ebx]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea eax, [ebp - 0xd34]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov ecx, ebx
push eax
mov byte [ebx], 0
call fcn.00402f06
cmp dword [ebp - 0xd20], 0x10
jb 0x45ec7c
push dword [ebp - 0xd34]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov bl, 1
jmp 0x45ec86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xd3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xd38]
inc ecx
mov dword [ebp - 0xd38], ecx
cmp ecx, 0x10
jl 0x45e8f0
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret