Function at 0x1322f454
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd9c
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x1322f712
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
push edi
mov edi, ebx
mov esi, 0x1322f728
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
push edi
lea edi, [ebx + 0x14]
mov esi, 0x1322f73c
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
pop edi
mov eax, dword [0x1322f764]
mov dword [ebx + 0x3c], eax
mov eax, dword [0x1322f768]
mov dword [ebx + 0x40], eax
xor eax, eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x4c], eax
xor eax, eax
mov dword [ebx + 0x50], eax
lea edx, [ebp - 0x258]
movzx eax, byte [ebp + 8]
call fcn.13149b04
mov ecx, dword [ebp - 0x258]
lea eax, [ebp - 4]
mov edx, 0x1322f774
call fcn.13144f50
push 0
push 0
push 3
push 0
push 3
push 0
mov eax, dword [ebp - 4]
call fcn.131450c8
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x1322f6e5
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0xc], 0xffffffff
jne 0x1322f535
call fcn.13144668
jmp 0x1322f6ec
xor eax, eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x26], 0
lea esi, [ebp - 0x251]
mov eax, 0x22c
mov dword [esi + 4], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 4]
push eax
push esi
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x1322f652
lea esi, [ebp - 0x251]
mov eax, 0x22d
sub eax, dword [esi + 0x18]
call fcn.13142f14
mov edi, eax
lea edx, [ebp - 0x260]
mov eax, dword [esi + 0x18]
lea eax, [ebp + eax - 0x251]
call fcn.1314a9b4
mov eax, dword [ebp - 0x260]
lea edx, [ebp - 0x25c]
call fcn.1322f788
mov edx, dword [ebp - 0x25c]
mov eax, edi
call fcn.1314a818
mov eax, 0x22d
sub eax, dword [esi + 0x10]
call fcn.13142f14
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x10]
lea edx, [ebp + eax - 0x251]
mov eax, dword [ebp - 0x14]
call fcn.1314a7ac
mov eax, 0x22d
sub eax, dword [esi + 0x14]
call fcn.13142f14
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
lea edx, [ebp + eax - 0x251]
mov eax, dword [ebp - 0x18]
call fcn.1314a7ac
movzx eax, byte [edi]
call fcn.1322f9bc
test al, al
jne 0x1322f622
movzx eax, byte [edi + 0x13]
call fcn.1322f9bc
test al, al
je 0x1322f652
mov eax, ebx
mov edx, edi
call fcn.1314a7ac
lea eax, [ebx + 0x14]
mov edx, dword [ebp - 0x14]
call fcn.1314a7ac
lea eax, [ebx + 0x3c]
mov edx, dword [ebp - 0x18]
call fcn.1314a7ac
mov dword [ebp - 8], 0xffffffff
call fcn.13144668
jmp 0x1322f6ec
xor eax, eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x26], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0x22d
lea eax, [ebp - 0x251]
push eax
push 0
push 0
push 0x2d0c10
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x1322f6ce
lea esi, [ebp - 0x251]
lea eax, [ebp - 0x264]
movzx edx, byte [esi + 0x10]
call fcn.13144e30
mov edx, dword [ebp - 0x264]
mov eax, edi
call fcn.1314a818
movzx eax, byte [edi]
call fcn.1322f9bc
test al, al
jne 0x1322f6be
movzx eax, byte [edi + 0x13]
call fcn.1322f9bc
test al, al
je 0x1322f6ce
mov eax, ebx
mov edx, edi
call fcn.1314a7ac
mov dword [ebp - 8], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1322f6ec
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1322f719
lea eax, [ebp - 0x264]
mov edx, 4
call fcn.13144c4c
lea eax, [ebp - 4]
call fcn.13144c28
ret