Function at 0x47ce50
Capabilities:
Get storage device properties

Disassembly:
push ebp
lea ebp, [esp - 0x33dc]
mov eax, 0x33dc
call fcn.004f0260
push 0xffffffffffffffff
push 0x50f15f
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5706b0]
xor eax, ebp
mov dword [ebp + 0x33d8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x14]
xor edi, edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edi
call fcn.00418f60
cmp eax, edi
je 0x47d26e
test dword [ebx + 8], 0x2000000
mov esi, eax
je 0x47cebd
mov ebx, dword [esi + 0x40]
jmp 0x47cecc
xor ebx, ebx
inc ebx
cmp dword [esi + 0x44], ebx
jne 0x47ceca
cmp dword [esi + 0x40], edi
jne 0x47cecc
xor ebx, ebx
xor eax, eax
cmp dword [esi + 0x58], edi
sete al
cmp dword [esi + 0x5c], 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x47cf38
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00463342
test eax, eax
je 0x47cf38
push edi
lea eax, [ebp - 0x20]
push eax
push 0x200
lea eax, [ebp + 0x31d8]
push eax
push 0xc
lea eax, [ebp + 0x30c8]
push eax
push 0x2d1400
push dword [ebp - 0x14]
mov dword [ebp + 0x30c8], edi
mov dword [ebp + 0x30cc], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, edi
je 0x47cf2f
mov eax, dword [ebp + 0x31f4]
mov dword [esi + 0x5c], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esi + 0x5c], 0x11
sete al
and eax, dword [ebp - 0x18]
test ebx, eax
je 0x47d25a
cmp dword [esi + 0x4c], 0xffffffff
je 0x47cf58
cmp dword [esi + 0x50], 0xffffffff
jne 0x47cfab
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00463342
test eax, eax
je 0x47cfab
push edi
lea eax, [ebp - 0x20]
push eax
push 0x200
lea eax, [ebp + 0x31d8]
push eax
push edi
push edi
push 0x41018
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, edi
je 0x47cfa2
movzx eax, byte [ebp + 0x31dc]
mov dword [esi + 0x4c], eax
movzx eax, byte [ebp + 0x31de]
mov dword [esi + 0x50], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x47d25a
cmp dword [esi + 0x50], 0xffffffff
je 0x47d25a
push eax
push str..Scsi_d:
lea eax, [ebp + 0x30d4]
push 0x104
push eax
call fcn.004ef078
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push 0xc0000000
lea eax, [ebp + 0x30d4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x47d25a
mov ebx, 0x2098
push ebx
lea eax, [ebp]
push edi
push eax
call fcn.004ef550
push 8
lea eax, [ebp + 4]
push str.NvmeMini
push eax
mov dword [ebp + 0x10], 0xe0002000
call fcn.004f0490
add esp, 0x18
or dword [ebp + 0x38], 0xffffffff
push 2
pop eax
push edi
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x84], eax
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp]
push eax
push 0x98
push eax
push 0x4d008
push dword [ebp - 0x18]
mov dword [ebp], 0x1c
mov dword [ebp + 0xc], 0x1e
mov dword [ebp + 0x18], 0x7c
mov dword [ebp + 0x5c], 0x7f0002
mov dword [ebp + 0x88], edi
mov dword [ebp + 0x8c], edi
mov dword [ebp + 0x94], ebx
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x47d12d
mov eax, dword [ebp + 0x80]
shr eax, 0x11
and eax, 0xff
jne 0x47d251
movzx ebx, byte [ebp + 0x9a]
movzx eax, byte [ebp + 0x99]
shl ebx, 8
or ebx, eax
sub ebx, 0x111
cmp ebx, edi
jle 0x47d251
cmp dword [esi + 0x28], edi
jne 0x47d122
push 0x168
call fcn.004dccf9
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
cmp ecx, edi
je 0x47d0ed
push edi
call fcn.004686cf
jmp 0x47d0ef
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x51cde0
mov dword [esi + 0x28], eax
add eax, 4
push 0x100
push eax
call fcn.004ef010
mov eax, dword [esi + 0x28]
add esp, 0xc
mov dword [ebp - 0x10], eax
call fcn.00451ca2
push dword [ebp - 0x10]
mov ecx, dword [eax + 0x30]
call fcn.004562f8
mov dword [ebp - 0x10], ebx
fild dword [ebp - 0x10]
jmp 0x47d230
mov ebx, 0x1030
push ebx
lea eax, [ebp + 0x2098]
push edi
push eax
call fcn.004ef550
add esp, 0xc
or dword [ebp + 0x20ac], 0xffffffff
push 2
pop eax
push edi
mov dword [ebp + 0x20a4], eax
mov dword [ebp + 0x20a8], eax
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp + 0x2098]
push eax
push ebx
push eax
push 0x2d1400
push dword [ebp - 0x18]
mov dword [ebp + 0x2098], 0x31
mov dword [ebp + 0x209c], edi
mov dword [ebp + 0x20a0], 3
mov dword [ebp + 0x20b0], 0x28
mov dword [ebp + 0x20b4], 0x1000
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, edi
je 0x47d251
movzx ebx, byte [ebp + 0x20ca]
movzx eax, byte [ebp + 0x20c9]
shl ebx, 8
or ebx, eax
sub ebx, 0x111
cmp ebx, edi
jle 0x47d251
cmp dword [esi + 0x28], edi
jne 0x47d22a
push 0x168
call fcn.004dccf9
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
cmp eax, edi
je 0x47d1f5
push edi
mov ecx, eax
call fcn.004686cf
jmp 0x47d1f7
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x51cde0
mov dword [esi + 0x28], eax
add eax, 4
push 0x100
push eax
call fcn.004ef010
mov eax, dword [esi + 0x28]
add esp, 0xc
mov dword [ebp - 0x10], eax
call fcn.00451ca2
push dword [ebp - 0x10]
mov ecx, dword [eax + 0x30]
call fcn.004562f8
mov dword [ebp - 0x10], ebx
fild dword [ebp - 0x10]
mov eax, dword [esi + 0x28]
push 1
mov dword [eax + 0x148], ebx
test ebx, ebx
jge 0x47d245
fadd dword [0x544c00]
push ecx
mov ecx, dword [esi + 0x28]
fstp dword [esp]
call fcn.004681bd
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.00418f80
cmp eax, edi
je 0x47d26e
mov ebx, dword [ebp - 0x1c]
jmp 0x47cead
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x33d8]
xor ecx, ebp
call fcn.004edcb6
add ebp, 0x33dc
leave
ret