Function at 0x5287b0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x4d
push 0
push 0
dec ecx
jne 0x5287b8
push ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x528ac0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x22c]
mov eax, dword [ebp - 4]
call fcn.0040a2d8
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x228]
mov edx, 0x528ad8
call fcn.00405414
mov eax, dword [ebp - 0x228]
call fcn.0049839c
mov dword [ebp - 0xc], 0xffffd8f0
cmp dword [ebp - 8], 0xffffffff
je 0x528818
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x528864
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.00524050
lea edx, [ebp - 0x234]
call fcn.0040a2d8
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
mov edx, 0x528af4
call fcn.00405414
mov eax, dword [ebp - 0x230]
call fcn.004055c8
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x528a98
mov dword [ebp - 0xc], 0xffffd8ef
lea eax, [ebp - 0x214]
xor ecx, ecx
mov edx, 0x200
call fcn.0040345c
lea eax, [ebp - 0x221]
xor ecx, ecx
mov edx, 0xd
call fcn.0040345c
mov byte [ebp - 0x221], 8
push 0
lea eax, [ebp - 0x14]
push eax
push 0x200
lea eax, [ebp - 0x214]
push eax
push 0xd
lea eax, [ebp - 0x221]
push eax
push 0x2d1400
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_DeviceIoControl
test eax, eax
je 0x5288e3
cmp byte [ebp - 0x214], 0
jbe 0x5288ed
xor eax, eax
mov al, byte [ebp - 0x20c]
mov dword [ebp - 0xc], eax
jmp 0x5288ed
call sub.KERNEL32.DLL_GetLastError
neg eax
mov dword [ebp - 0xc], eax
push 0x528b10
lea edx, [ebp - 0x23c]
xor eax, eax
mov al, byte [ebp - 0x214]
call fcn.0040a2d8
push dword [ebp - 0x23c]
push 0x528b20
lea edx, [ebp - 0x240]
xor eax, eax
mov al, byte [ebp - 0x213]
call fcn.0040a2d8
push dword [ebp - 0x240]
push 0x528b20
lea edx, [ebp - 0x244]
xor eax, eax
mov al, byte [ebp - 0x212]
call fcn.0040a2d8
push dword [ebp - 0x244]
push 0x528b20
lea edx, [ebp - 0x248]
xor eax, eax
mov al, byte [ebp - 0x211]
call fcn.0040a2d8
push dword [ebp - 0x248]
push 0x528b20
lea edx, [ebp - 0x24c]
xor eax, eax
mov al, byte [ebp - 0x210]
call fcn.0040a2d8
push dword [ebp - 0x24c]
push 0x528b20
lea edx, [ebp - 0x250]
xor eax, eax
mov al, byte [ebp - 0x20f]
call fcn.0040a2d8
push dword [ebp - 0x250]
push 0x528b20
lea edx, [ebp - 0x254]
xor eax, eax
mov al, byte [ebp - 0x20e]
call fcn.0040a2d8
push dword [ebp - 0x254]
push 0x528b20
lea edx, [ebp - 0x258]
xor eax, eax
mov al, byte [ebp - 0x20d]
call fcn.0040a2d8
push dword [ebp - 0x258]
push 0x528b20
lea edx, [ebp - 0x25c]
xor eax, eax
mov al, byte [ebp - 0x20c]
call fcn.0040a2d8
push dword [ebp - 0x25c]
push 0x528b20
lea edx, [ebp - 0x260]
xor eax, eax
mov al, byte [ebp - 0x20b]
call fcn.0040a2d8
push dword [ebp - 0x260]
push 0x528b20
lea edx, [ebp - 0x264]
xor eax, eax
mov al, byte [ebp - 0x20a]
call fcn.0040a2d8
push dword [ebp - 0x264]
push 0x528b20
lea edx, [ebp - 0x268]
xor eax, eax
mov al, byte [ebp - 0x209]
call fcn.0040a2d8
push dword [ebp - 0x268]
push 0x528b2c
lea edx, [ebp - 0x26c]
mov eax, dword [ebp - 0xc]
call fcn.0040a2d8
push dword [ebp - 0x26c]
lea eax, [ebp - 0x238]
mov edx, 0x1a
call fcn.00405488
mov eax, dword [ebp - 0x238]
call fcn.0049839c
cmp dword [ebp - 8], 0xffffffff
jne 0x528a98
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, 0x528b3c
call fcn.0049839c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x528ac7
lea eax, [ebp - 0x26c]
mov edx, 0x12
call fcn.0040512c
ret