Function at 0x7d57ec
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x7d57f5
mov eax, dword [ebp - 4]
add esp, 0xfffff3d8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c2c], ecx
mov dword [ebp - 0x2c24], ecx
mov dword [ebp - 0x2c28], ecx
mov dword [ebp - 0x2c1c], ecx
mov dword [ebp - 0x2c20], ecx
mov dword [ebp - 0x2c14], ecx
mov dword [ebp - 0x2c18], ecx
mov dword [ebp - 0x2c0c], ecx
mov dword [ebp - 0x2c10], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x7d5b0f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x2bf8], 0
cmp esi, 0xffffffff
je 0x7d5ae4
xor eax, eax
push ebp
push 0x7d5add
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2bf7]
xor ecx, ecx
mov edx, 0x27f7
call fcn.004081cc
lea eax, [ebp - 0x400]
xor ecx, ecx
mov edx, 0x400
call fcn.004081cc
xor eax, eax
mov dword [ebp - 0x400], eax
xor eax, eax
mov dword [ebp - 0x3fc], eax
push 0
lea eax, [ebp - 0x2bfc]
push eax
push 0x27f7
lea eax, [ebp - 0x2bf7]
push eax
push 0x400
lea eax, [ebp - 0x400]
push eax
push 0x2d1400
push esi
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x7d5a4d
cmp dword [ebx + 0x20], 0
jne 0x7d5968
mov edi, dword [ebp - 0x2beb]
test edi, edi
jbe 0x7d5920
lea eax, [ebp - 0x2c10]
lea edx, [ebp + edi - 0x2bf7]
call fcn.0040ba20
mov eax, dword [ebp - 0x2c10]
lea edx, [ebp - 0x2c0c]
call fcn.00426e1c
mov edx, dword [ebp - 0x2c0c]
lea eax, [ebx + 0x20]
call fcn.0040af2c
mov edi, dword [ebp - 0x2be7]
test edi, edi
jbe 0x7d5968
push dword [ebx + 0x20]
push 0x7d5b30
lea eax, [ebp - 0x2c18]
lea edx, [ebp + edi - 0x2bf7]
call fcn.0040ba20
mov eax, dword [ebp - 0x2c18]
lea edx, [ebp - 0x2c14]
call fcn.00426e1c
push dword [ebp - 0x2c14]
lea eax, [ebx + 0x20]
mov edx, 3
call fcn.0040bcdc
lea edx, [ebp - 0x2c20]
mov eax, dword [ebx + 0x20]
call fcn.00426e1c
mov eax, dword [ebp - 0x2c20]
lea edx, [ebp - 0x2c1c]
call fcn.0065dde8
mov edx, dword [ebp - 0x2c1c]
lea eax, [ebx + 0x20]
call fcn.0040af2c
cmp dword [ebx + 0x24], 0
jne 0x7d59db
cmp dword [ebp - 0x2be3], 0
jbe 0x7d59db
lea eax, [ebp - 0x2c28]
mov edx, dword [ebp - 0x2be3]
lea edx, [ebp + edx - 0x2bf7]
call fcn.0040ba20
mov eax, dword [ebp - 0x2c28]
lea edx, [ebp - 0x2c24]
call fcn.00426e1c
mov edx, dword [ebp - 0x2c24]
lea eax, [ebx + 0x24]
call fcn.0040af2c
cmp dword [ebx + 0x1c], 0
jne 0x7d5a23
cmp dword [ebp - 0x2bdf], 0x27f7
jae 0x7d5a23
cmp dword [ebp - 0x2bdf], 0
jbe 0x7d5a23
lea ecx, [ebp - 0x2c2c]
mov edx, 0x27f7
mov edi, dword [ebp - 0x2bdf]
sub edx, edi
lea eax, [ebp + edi - 0x2bf7]
call fcn.007d5508
mov edx, dword [ebp - 0x2c2c]
lea eax, [ebx + 0x1c]
call fcn.0040bac0
mov eax, dword [ebp - 0x2bdb]
mov dword [ebx + 0x50], eax
cmp dword [ebx + 0x48], 0
jne 0x7d5a3c
movzx eax, byte [ebp - 0x2bef]
mov dword [ebx + 0x48], eax
movzx eax, byte [ebp - 0x2bed]
mov byte [ebx + 0x54], al
mov byte [ebp - 0x2bf8], 1
lea eax, [ebp - 0x2c08]
xor ecx, ecx
mov edx, 0xc
call fcn.004081cc
lea eax, [ebp - 0x400]
xor ecx, ecx
mov edx, 0x400
call fcn.004081cc
mov dword [ebp - 0x400], 7
xor eax, eax
mov dword [ebp - 0x3fc], eax
push 0
lea eax, [ebp - 0x2bfc]
push eax
push 0xc
lea eax, [ebp - 0x2c08]
push eax
push 0x400
lea eax, [ebp - 0x400]
push eax
push 0x2d1400
push esi
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x7d5ac3
movzx eax, byte [ebp - 0x2c00]
cmp al, 1
sbb eax, eax
neg eax
mov byte [ebx + 0x38c], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7d5ae4
call sub.kernel32.dll_GetLastError
mov dword [0x810b88], eax
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7d5b16
lea eax, [ebp - 0x2c2c]
call fcn.0040ab70
lea eax, [ebp - 0x2c28]
mov edx, 8
call fcn.0040abac
pop eax
jmp eax