Function at 0x5e1458
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x4d
push 0
push 0
dec ecx
jne 0x5e1460
push ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5e1768
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x22c]
mov eax, dword [ebp - 4]
call fcn.0040a78c
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x228]
mov edx, 0x5e1780
call fcn.00405598
mov eax, dword [ebp - 0x228]
call fcn.004c938c
mov dword [ebp - 0xc], 0xffffd8f0
cmp dword [ebp - 8], 0xffffffff
je 0x5e14c0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x5e150c
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.005dbe4c
lea edx, [ebp - 0x234]
call fcn.0040a78c
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
mov edx, 0x5e179c
call fcn.00405598
mov eax, dword [ebp - 0x230]
call fcn.0040574c
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x5e1740
mov dword [ebp - 0xc], 0xffffd8ef
lea eax, [ebp - 0x214]
xor ecx, ecx
mov edx, 0x200
call fcn.00403464
lea eax, [ebp - 0x221]
xor ecx, ecx
mov edx, 0xd
call fcn.00403464
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 0x5e158b
cmp byte [ebp - 0x214], 0
jbe 0x5e1595
xor eax, eax
mov al, byte [ebp - 0x20c]
mov dword [ebp - 0xc], eax
jmp 0x5e1595
call sub.kernel32.dll_GetLastError_1
neg eax
mov dword [ebp - 0xc], eax
push 0x5e17b8
lea edx, [ebp - 0x23c]
xor eax, eax
mov al, byte [ebp - 0x214]
call fcn.0040a78c
push dword [ebp - 0x23c]
push 0x5e17c8
lea edx, [ebp - 0x240]
xor eax, eax
mov al, byte [ebp - 0x213]
call fcn.0040a78c
push dword [ebp - 0x240]
push 0x5e17c8
lea edx, [ebp - 0x244]
xor eax, eax
mov al, byte [ebp - 0x212]
call fcn.0040a78c
push dword [ebp - 0x244]
push 0x5e17c8
lea edx, [ebp - 0x248]
xor eax, eax
mov al, byte [ebp - 0x211]
call fcn.0040a78c
push dword [ebp - 0x248]
push 0x5e17c8
lea edx, [ebp - 0x24c]
xor eax, eax
mov al, byte [ebp - 0x210]
call fcn.0040a78c
push dword [ebp - 0x24c]
push 0x5e17c8
lea edx, [ebp - 0x250]
xor eax, eax
mov al, byte [ebp - 0x20f]
call fcn.0040a78c
push dword [ebp - 0x250]
push 0x5e17c8
lea edx, [ebp - 0x254]
xor eax, eax
mov al, byte [ebp - 0x20e]
call fcn.0040a78c
push dword [ebp - 0x254]
push 0x5e17c8
lea edx, [ebp - 0x258]
xor eax, eax
mov al, byte [ebp - 0x20d]
call fcn.0040a78c
push dword [ebp - 0x258]
push 0x5e17c8
lea edx, [ebp - 0x25c]
xor eax, eax
mov al, byte [ebp - 0x20c]
call fcn.0040a78c
push dword [ebp - 0x25c]
push 0x5e17c8
lea edx, [ebp - 0x260]
xor eax, eax
mov al, byte [ebp - 0x20b]
call fcn.0040a78c
push dword [ebp - 0x260]
push 0x5e17c8
lea edx, [ebp - 0x264]
xor eax, eax
mov al, byte [ebp - 0x20a]
call fcn.0040a78c
push dword [ebp - 0x264]
push 0x5e17c8
lea edx, [ebp - 0x268]
xor eax, eax
mov al, byte [ebp - 0x209]
call fcn.0040a78c
push dword [ebp - 0x268]
push 0x5e17d4
lea edx, [ebp - 0x26c]
mov eax, dword [ebp - 0xc]
call fcn.0040a78c
push dword [ebp - 0x26c]
lea eax, [ebp - 0x238]
mov edx, 0x1a
call fcn.0040560c
mov eax, dword [ebp - 0x238]
call fcn.004c938c
cmp dword [ebp - 8], 0xffffffff
jne 0x5e1740
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, 0x5e17e4
call fcn.004c938c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e176f
lea eax, [ebp - 0x26c]
mov edx, 0x12
call fcn.004052b0
ret