Function at 0x5ad2cc
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x4d
push 0
push 0
dec ecx
jne 0x5ad2d4
push ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5ad5dc
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x22c]
mov eax, dword [ebp - 4]
call fcn.0040a83c
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x228]
mov edx, 0x5ad5f4
call fcn.00405594
mov eax, dword [ebp - 0x228]
call fcn.004c6770
mov dword [ebp - 0xc], 0xffffd8f0
cmp dword [ebp - 8], 0xffffffff
je 0x5ad334
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x5ad380
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.005a8144
lea edx, [ebp - 0x234]
call fcn.0040a83c
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
mov edx, 0x5ad610
call fcn.00405594
mov eax, dword [ebp - 0x230]
call fcn.00405748
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x5ad5b4
mov dword [ebp - 0xc], 0xffffd8ef
lea eax, [ebp - 0x214]
xor ecx, ecx
mov edx, 0x200
call fcn.00403450
lea eax, [ebp - 0x221]
xor ecx, ecx
mov edx, 0xd
call fcn.00403450
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 0x5ad3ff
cmp byte [ebp - 0x214], 0
jbe 0x5ad409
xor eax, eax
mov al, byte [ebp - 0x20c]
mov dword [ebp - 0xc], eax
jmp 0x5ad409
call sub.kernel32.dll_GetLastError_1
neg eax
mov dword [ebp - 0xc], eax
push 0x5ad62c
lea edx, [ebp - 0x23c]
xor eax, eax
mov al, byte [ebp - 0x214]
call fcn.0040a83c
push dword [ebp - 0x23c]
push 0x5ad63c
lea edx, [ebp - 0x240]
xor eax, eax
mov al, byte [ebp - 0x213]
call fcn.0040a83c
push dword [ebp - 0x240]
push 0x5ad63c
lea edx, [ebp - 0x244]
xor eax, eax
mov al, byte [ebp - 0x212]
call fcn.0040a83c
push dword [ebp - 0x244]
push 0x5ad63c
lea edx, [ebp - 0x248]
xor eax, eax
mov al, byte [ebp - 0x211]
call fcn.0040a83c
push dword [ebp - 0x248]
push 0x5ad63c
lea edx, [ebp - 0x24c]
xor eax, eax
mov al, byte [ebp - 0x210]
call fcn.0040a83c
push dword [ebp - 0x24c]
push 0x5ad63c
lea edx, [ebp - 0x250]
xor eax, eax
mov al, byte [ebp - 0x20f]
call fcn.0040a83c
push dword [ebp - 0x250]
push 0x5ad63c
lea edx, [ebp - 0x254]
xor eax, eax
mov al, byte [ebp - 0x20e]
call fcn.0040a83c
push dword [ebp - 0x254]
push 0x5ad63c
lea edx, [ebp - 0x258]
xor eax, eax
mov al, byte [ebp - 0x20d]
call fcn.0040a83c
push dword [ebp - 0x258]
push 0x5ad63c
lea edx, [ebp - 0x25c]
xor eax, eax
mov al, byte [ebp - 0x20c]
call fcn.0040a83c
push dword [ebp - 0x25c]
push 0x5ad63c
lea edx, [ebp - 0x260]
xor eax, eax
mov al, byte [ebp - 0x20b]
call fcn.0040a83c
push dword [ebp - 0x260]
push 0x5ad63c
lea edx, [ebp - 0x264]
xor eax, eax
mov al, byte [ebp - 0x20a]
call fcn.0040a83c
push dword [ebp - 0x264]
push 0x5ad63c
lea edx, [ebp - 0x268]
xor eax, eax
mov al, byte [ebp - 0x209]
call fcn.0040a83c
push dword [ebp - 0x268]
push 0x5ad648
lea edx, [ebp - 0x26c]
mov eax, dword [ebp - 0xc]
call fcn.0040a83c
push dword [ebp - 0x26c]
lea eax, [ebp - 0x238]
mov edx, 0x1a
call fcn.00405608
mov eax, dword [ebp - 0x238]
call fcn.004c6770
cmp dword [ebp - 8], 0xffffffff
jne 0x5ad5b4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, 0x5ad658
call fcn.004c6770
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ad5e3
lea eax, [ebp - 0x26c]
mov edx, 0x12
call fcn.0040529c
ret