Function at 0x1002a992
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37cc
call fcn.100c8250
mov eax, dword [0x10158f9c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, ecx
xor ebx, ebx
push ebx
push str..PhysicalDrive_d
mov dword [ebp - 0x37c8], eax
mov esi, 0x100
lea edi, [eax + 0x800]
mov dword [ebp - 0x37cc], ebx
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.10017d26
add esp, 0x10
lea eax, [ebp - 0x104]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1002aa26
mov ecx, esi
mov eax, edi
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x1002a9fd
lea eax, [ebp - 0x104]
push eax
push 0x150
push str._d_ReadPhysicalDriveInNTWithZeroRights_ERROR_CreateFileA__s__returned_INVALID_HANDLE_VALUE
push esi
push edi
call fcn.10017d26
add esp, 0x14
jmp 0x1002abe7
xor eax, eax
push 0x2710
push eax
mov dword [ebp - 0x37b8], eax
mov dword [ebp - 0x37bc], eax
mov dword [ebp - 0x37c4], eax
mov dword [ebp - 0x37c0], eax
lea eax, [ebp - 0x37b4]
push eax
call fcn.100c95b0
add esp, 0xc
lea eax, [ebp - 0x37b8]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x37b4]
push eax
push 0xc
lea eax, [ebp - 0x37c4]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1002abbe
lea eax, [ebp - 0xcbc]
push eax
lea eax, [ebp - 0x37b4]
push eax
push ecx
push dword [ebp - 0x37a8]
call fcn.1002a853
lea eax, [ebp - 0x8d4]
push eax
lea eax, [ebp - 0x37b4]
push eax
push ecx
push dword [ebp - 0x37a4]
call fcn.1002a853
lea eax, [ebp - 0x10a4]
push eax
lea eax, [ebp - 0x37b4]
push eax
push ecx
push dword [ebp - 0x37a0]
call fcn.1002a853
lea eax, [ebp - 0x4ec]
push eax
lea eax, [ebp - 0x37b4]
push eax
push ecx
push dword [ebp - 0x379c]
call fcn.1002a853
mov eax, dword [ebp - 0x37c8]
cmp byte [eax], 0
jne 0x1002ab67
movsx ax, byte [ebp - 0x4ec]
movzx eax, ax
push eax
call fcn.100d3cc5
pop ecx
test eax, eax
jne 0x1002ab26
movsx ax, byte [ebp - 0x4d9]
movzx eax, ax
push eax
call fcn.100d3cc5
pop ecx
test eax, eax
je 0x1002ab67
lea eax, [ebp - 0x4ec]
push eax
push 0x400
push dword [ebp - 0x37c8]
call fcn.100d3cdb
lea eax, [ebp - 0x8d4]
push eax
mov eax, dword [ebp - 0x37c8]
add eax, 0x400
push 0x400
push eax
call fcn.100d3cdb
add esp, 0x18
mov dword [ebp - 0x37cc], 1
push 0x2710
lea eax, [ebp - 0x37b4]
push 0
push eax
call fcn.100c95b0
add esp, 0xc
lea eax, [ebp - 0x37b8]
xor ecx, ecx
push ecx
push eax
push 0x2710
lea eax, [ebp - 0x37b4]
push eax
push ecx
push ecx
push 0x700a0
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1002abe0
mov eax, edi
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x1002aba7
lea eax, [ebp - 0x104]
push eax
push str._s_ReadPhysicalDriveInNTWithZeroRights_ERROR_DeviceIoControl____IOCTL_DISK_GET_DRIVE_GEOMETRY_EX__returned_0
jmp 0x1002abd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, edi
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x1002abc8
push ecx
push str.DeviceIOControl_IOCTL_STORAGE_QUERY_PROPERTY_error___d_n
push edi
call fcn.1002b24c
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x37cc]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100c7413
leave
ret