Function at 0x100fd0ef
Capabilities:
Get storage device properties

Disassembly:
push ebp
sub esp, 0xc0c
lea ebp, [esp - 4]
mov eax, dword [0x101b01e4]
xor eax, ebp
mov dword [ebp + 0xc0c], eax
push 0x54
mov eax, 0x1017b85a
call fcn.1014d21b
mov eax, dword [ebp + 0xc18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc1c]
xor ebx, ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc20]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
or edi, 0xffffffff
cmp byte [ebp - 0xd], bl
jne 0x100fd32e
push 0x100
lea eax, [ebp + 0x80c]
push ebx
push eax
call fcn.10149460
push dword [ebp - 0x14]
mov esi, 0xff
push str..PhysicalDrive_d
lea eax, [ebp + 0x80c]
push esi
push eax
call fcn.100fcbe6
add esp, 0x1c
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp + 0x80c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x100fd321
push 0xc
lea eax, [ebp]
push ebx
push eax
mov dword [ebp - 0x20], ebx
call fcn.10149460
push 0x800
lea eax, [ebp + 0xc]
push ebx
push eax
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
call fcn.10149460
add esp, 0x18
push ebx
lea eax, [ebp - 0x20]
push eax
push 0x800
lea eax, [ebp + 0xc]
push eax
push 0xc
lea eax, [ebp]
push eax
push 0x2d1400
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x100fd312
push esi
lea eax, [ebp + 0xb0d]
push ebx
push eax
mov byte [ebp + 0xb0c], bl
call fcn.10149460
push esi
lea eax, [ebp + 0xa0d]
push ebx
push eax
mov byte [ebp + 0xa0c], bl
call fcn.10149460
push esi
lea eax, [ebp + 0x90d]
push ebx
push eax
mov byte [ebp + 0x90c], bl
call fcn.10149460
lea eax, [ebp + 0xa0c]
push eax
push ebx
push dword [ebp + 0x1c]
lea eax, [ebp + 0xc]
push eax
call fcn.100fc9eb
lea eax, [ebp + 0x90c]
push eax
push ebx
push dword [ebp + 0x20]
lea eax, [ebp + 0xc]
push eax
call fcn.100fc9eb
add esp, 0x44
lea eax, [ebp + 0xb0c]
push eax
xor esi, esi
inc esi
push esi
push dword [ebp + 0x24]
lea eax, [ebp + 0xc]
push eax
call fcn.100fc9eb
movsx eax, byte [ebp + 0xb0c]
push eax
call fcn.1014b67d
add esp, 0x14
test eax, eax
jne 0x100fd28a
movsx eax, byte [ebp + 0xb1f]
push eax
call fcn.1014b67d
test eax, eax
pop ecx
je 0x100fd318
lea eax, [ebp + 0xb0c]
push eax
lea ecx, [ebp - 0x44]
call fcn.100025a0
mov ecx, dword [ebp - 0x28]
push edi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10001ec0
push ebx
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], edi
call fcn.10001800
lea eax, [ebp + 0xa0c]
push eax
lea ecx, [ebp - 0x44]
call fcn.100025a0
mov ecx, dword [ebp - 0x24]
push edi
push ebx
push eax
mov dword [ebp - 4], esi
call fcn.10001ec0
push ebx
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], edi
call fcn.10001800
lea eax, [ebp + 0x90c]
push eax
lea ecx, [ebp - 0x60]
call fcn.100025a0
mov ecx, dword [ebp - 0x1c]
push edi
push ebx
push eax
mov dword [ebp - 4], 2
call fcn.10001ec0
push ebx
push esi
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], edi
call fcn.10001800
mov byte [ebp - 0xd], 1
jmp 0x100fd318
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x10
jl 0x100fd139
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc0c]
xor ecx, ebp
call fcn.10149c5e
add ebp, 0xc10
leave
ret