Function at 0x1001dd70
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2ce4
call fcn.100fae50
mov eax, dword [0x1040706c]
xor eax, esp
mov dword [esp + 0x2ce0], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
push edi
mov dword [esp + 0x14], ecx
xor edi, edi
nop dword [eax]
push edi
push str..PhysicalDrive_d
lea eax, [esp + 0x3e0]
push 0x100
push eax
call fcn.1001ea50
add esp, 0x10
lea eax, [esp + 0x3d8]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001e08f
push 0x2710
lea eax, [esp + 0x5dc]
mov dword [esp + 0x14], 0
push 0
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.101d2900
add esp, 0xc
lea eax, [esp + 0x10]
push 0
push eax
push 0x2710
lea eax, [esp + 0x5e4]
push eax
push 0xc
lea eax, [esp + 0x30]
push eax
push 0x2d1400
push esi
call ebx
test eax, eax
je 0x1001e074
push 0x80
lea eax, [esp + 0x35c]
push 0
push eax
call fcn.101d2900
add esp, 0xc
lea eax, [esp + 0x258]
push 0x80
push 0
push eax
call fcn.101d2900
add esp, 0xc
lea eax, [esp + 0x1d8]
push 0x80
push 0
push eax
call fcn.101d2900
add esp, 0xc
lea eax, [esp + 0x2d8]
push 0x80
push 0
push eax
call fcn.101d2900
add esp, 0xc
lea eax, [esp + 0x1d8]
push eax
push 0
push dword [esp + 0x5ec]
lea eax, [esp + 0x5e4]
push eax
call fcn.1001dbf0
lea eax, [esp + 0x258]
push eax
push 0
push dword [esp + 0x5f0]
lea eax, [esp + 0x5e4]
push eax
call fcn.1001dbf0
lea eax, [esp + 0x2d8]
push eax
push 0
push dword [esp + 0x5f4]
lea eax, [esp + 0x5e4]
push eax
call fcn.1001dbf0
lea eax, [esp + 0x358]
push eax
push 1
push dword [esp + 0x5f8]
lea eax, [esp + 0x5e4]
push eax
call fcn.1001dbf0
push 0x1a0
lea eax, [esp + 0x34]
mov dword [esp + 0x1d4], 0
xorps xmm0, xmm0
push 0
push eax
movlpd qword [esp + 0x34], xmm0
call fcn.101d2900
lea ecx, [esp + 0x1e4]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001df48
sub ecx, edx
je 0x1001df6d
lea eax, [esp + 0x1d8]
push eax
lea eax, [esp + 0x54]
push 0x80
push eax
call fcn.101e4db5
add esp, 0xc
lea eax, [esp + 0x258]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001df77
sub eax, edx
je 0x1001df9c
lea eax, [esp + 0x258]
push eax
lea eax, [esp + 0x54]
push 0x80
push eax
call fcn.101e4e0f
add esp, 0xc
lea eax, [esp + 0x2d8]
push eax
lea eax, [esp + 0x154]
push 0x80
push eax
call fcn.101e4db5
add esp, 0xc
lea eax, [esp + 0x358]
push eax
lea eax, [esp + 0xd4]
push 0x80
push eax
call fcn.101e4db5
add esp, 0xc
lea eax, [esp + 0xd0]
push eax
call fcn.1001e0b0
lea eax, [esp + 0x50]
push eax
call fcn.1001e0b0
lea eax, [esp + 0x150]
push eax
call fcn.1001e0b0
push 0x2710
lea eax, [esp + 0x5dc]
push 0
push eax
call fcn.101d2900
add esp, 0xc
lea eax, [esp + 0x10]
push 0
push eax
push 0x2710
lea eax, [esp + 0x5e4]
push eax
push 0
push 0
push 0x700a0
push esi
call ebx
test eax, eax
je 0x1001e08f
mov eax, dword [esp + 0x5f0]
mov ecx, 2
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5f4]
mov dword [esp + 0x2c], eax
xor eax, eax
cmp dword [esp + 0x5e0], 0xc
cmove eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1d0], eax
lea eax, [esp + 0x28]
push eax
call fcn.1001e6b0
jmp 0x1001e088
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nDeviceIOControl_IOCTL_STORAGE_QUERY_PROPERTY_error___d_n
call fcn.1001ea20
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, 0x10
jl 0x1001dda0
mov ecx, dword [esp + 0x2cec]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100f99ca
mov esp, ebp
pop ebp
ret