Function at 0x1000d78d
Capabilities:
Get storage device properties

Disassembly:
push 0xd64
mov eax, 0x1005fca5
call fcn.10046e1e
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd64], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xd68], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0xd70], eax
mov byte [ebp - 0xd55], bl
mov dword [ebp - 0xd5c], ebx
cmp byte [ebp - 0xd55], bl
jne 0x1000da93
push 0x200
lea eax, [ebp - 0x510]
push ebx
push eax
call fcn.100464a0
push dword [ebp - 0xd5c]
mov esi, 0xff
push str..PhysicalDrive_d
lea eax, [ebp - 0x510]
push esi
push eax
call fcn.1000dcdb
add esp, 0x1c
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x510]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xd60], eax
cmp eax, 0xffffffff
je 0x1000da80
xor eax, eax
lea edi, [ebp - 0xd38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x800
push edi
lea eax, [ebp - 0xd10]
push ebx
push eax
mov dword [ebp - 0xd6c], ebx
mov dword [ebp - 0xd38], ebx
mov dword [ebp - 0xd34], ebx
call fcn.100464a0
add esp, 0xc
push ebx
lea eax, [ebp - 0xd6c]
push eax
push edi
lea eax, [ebp - 0xd10]
push eax
push 0xc
lea eax, [ebp - 0xd38]
push eax
push 0x2d1400
push dword [ebp - 0xd60]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1000da6e
push esi
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.100464a0
push esi
lea eax, [ebp - 0x20f]
push ebx
push eax
mov byte [ebp - 0x210], bl
call fcn.100464a0
push esi
lea eax, [ebp - 0x30f]
push ebx
push eax
mov byte [ebp - 0x310], bl
call fcn.100464a0
mov eax, dword [ebp - 0xd00]
push ebx
lea esi, [ebp - 0x210]
lea ecx, [ebp - 0xd10]
call fcn.1000d382
mov eax, dword [ebp - 0xcfc]
push ebx
lea esi, [ebp - 0x310]
lea ecx, [ebp - 0xd10]
call fcn.1000d382
call fcn.10014cb0
cmp eax, 0xb
setl al
movzx eax, al
push eax
mov eax, dword [ebp - 0xcf8]
lea esi, [ebp - 0x110]
lea ecx, [ebp - 0xd10]
call fcn.1000d382
movsx eax, byte [ebp - 0x110]
push eax
call fcn.10044571
add esp, 0x34
test eax, eax
jne 0x1000d948
movsx eax, byte [ebp - 0xfd]
push eax
call fcn.10044571
pop ecx
test eax, eax
je 0x1000da74
lea eax, [ebp - 0x110]
mov dword [ebp - 0xd18], 0xf
mov dword [ebp - 0xd1c], ebx
mov byte [ebp - 0xd2c], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1000d967
sub eax, esi
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0xd2c]
call fcn.10003a09
mov edi, dword [ebp - 0xd64]
lea esi, [ebp - 0xd2c]
mov dword [ebp - 4], ebx
call fcn.10007d65
or dword [ebp - 4], 0xffffffff
xor edi, edi
push ebx
inc edi
push edi
mov ecx, esi
call fcn.10003d0e
lea eax, [ebp - 0x210]
mov dword [ebp - 0xd18], 0xf
mov dword [ebp - 0xd1c], ebx
mov byte [ebp - 0xd2c], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1000d9c6
sub eax, esi
push eax
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0xd2c]
call fcn.10003a09
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0xd68]
lea esi, [ebp - 0xd2c]
call fcn.10007d65
or dword [ebp - 4], 0xffffffff
push ebx
push 1
mov ecx, esi
call fcn.10003d0e
lea eax, [ebp - 0x310]
mov dword [ebp - 0xd40], 0xf
mov dword [ebp - 0xd44], ebx
mov byte [ebp - 0xd54], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1000da23
sub eax, esi
push eax
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0xd54]
call fcn.10003a09
mov edi, dword [ebp - 0xd70]
lea esi, [ebp - 0xd54]
mov dword [ebp - 4], 2
call fcn.10007d65
or dword [ebp - 4], 0xffffffff
push ebx
push 1
mov ecx, esi
call fcn.10003d0e
mov byte [ebp - 0xd55], 1
jmp 0x1000da74
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xd60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0xd5c]
cmp dword [ebp - 0xd5c], 0x10
jl 0x1000d7c5
mov al, byte [ebp - 0xd55]
call fcn.10046e68
ret