Function at 0x51c610
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x34
mov eax, dword [0x58bea8]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
push 0x448
push 0
push esi
call fcn.0052b220
mov ebp, dword [0x547218]
add esp, 0xc
push str.._a:
lea eax, [esp + 0x20]
push eax
call ebp
mov cl, byte [esp + 0x44]
add byte [esp + 0x20], cl
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
lea edx, [esp + 0x34]
push edx
call dword [0x547220]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x51c689
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0052b2eb
add esp, 0x34
ret 8
push edi
push 0x2000
push 0
call dword [0x547224]
push 0x2000
mov edi, eax
push 0
push edi
call fcn.0052b220
add esp, 0xc
xor eax, eax
push eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], al
lea eax, [esp + 0x14]
push eax
push 0x1000
push edi
push 0xc
lea ecx, [esp + 0x28]
push ecx
push 0x2d1400
push ebx
call dword [0x54718c]
test eax, eax
jne 0x51c703
test edi, edi
je 0x51c6e5
push edi
call dword [0x547228]
push ebx
call dword [0x54728c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0052b2eb
add esp, 0x34
ret 8
push ebx
call dword [0x54728c]
mov eax, dword [edi + 0x18]
test eax, eax
je 0x51c717
add eax, edi
push eax
push esi
call ebp
mov eax, dword [edi + 0x10]
test eax, eax
je 0x51c72a
add eax, edi
push eax
lea edx, [esi + 0x100]
push edx
call ebp
mov eax, dword [edi + 0x14]
test eax, eax
je 0x51c73d
add eax, edi
push eax
lea eax, [esi + 0x200]
push eax
call ebp
mov eax, dword [edi + 0xc]
test eax, eax
je 0x51c750
add eax, edi
push eax
lea ecx, [esi + 0x300]
push ecx
call ebp
xor edx, edx
cmp byte [edi + 0xa], dl
setne dl
mov dword [esi + 0x444], edx
mov eax, dword [edi + 0x1c]
dec eax
cmp eax, 0xc
ja case.default.0x51c76b
jmp dword [eax*4 + 0x51c918]
push str.SCSI
lea eax, [esi + 0x404]
push eax
call ebp
mov dword [esi + 0x400], 1
jmp 0x51c8f7
push str.ATAPI
lea ecx, [esi + 0x404]
push ecx
call ebp
mov dword [esi + 0x400], 2
jmp 0x51c8f7
push 0x56aa14
lea edx, [esi + 0x404]
push edx
call ebp
mov dword [esi + 0x400], 3
jmp 0x51c8f7
push str.IEEE1394
lea eax, [esi + 0x404]
push eax
call ebp
mov dword [esi + 0x400], 4
jmp 0x51c8f7
push str.BusTypeSsa
lea ecx, [esi + 0x404]
push ecx
call ebp
mov dword [esi + 0x400], 5
jmp 0x51c8f7
push str.BusTypeFibre
lea edx, [esi + 0x404]
push edx
call ebp
mov dword [esi + 0x400], 6
jmp 0x51c8f7
push 0x56a9e8
lea eax, [esi + 0x404]
push eax
call ebp
mov dword [esi + 0x400], 7
jmp 0x51c8f7
push str.RAID
lea ecx, [esi + 0x404]
push ecx
call ebp
mov dword [esi + 0x400], 8
jmp 0x51c8f7
push str.iSCSI
lea edx, [esi + 0x404]
push edx
call ebp
mov dword [esi + 0x400], 9
jmp 0x51c8f7
push 0x56a9d4
lea eax, [esi + 0x404]
push eax
call ebp
mov dword [esi + 0x400], 0xa
jmp 0x51c8f7
push str.SerialATA
lea ecx, [esi + 0x404]
push ecx
call ebp
mov dword [esi + 0x400], 0xb
jmp 0x51c8f7
push 0x56a9c4
lea edx, [esi + 0x404]
push edx
call ebp
mov dword [esi + 0x400], 0xc
jmp 0x51c8f7
push 0x56a9c0
lea eax, [esi + 0x404]
push eax
call ebp
mov dword [esi + 0x400], 0xd
jmp 0x51c8f7
push 0x547850
lea ecx, [esi + 0x404]
push ecx
call ebp
mov dword [esi + 0x400], 0
push edi
call dword [0x547228]
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0052b2eb
add esp, 0x34
ret 8