Function at 0x40f38c
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497dfe
mov eax, dword fs:[0]
push eax
mov eax, 0x2d3c
call fcn.00427b00
mov eax, dword [0x4c8094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [ebp - 0x2d44]
mov edx, str.SmaBS15QuDNQZ56R49NQrLM9_1
mov esi, ebx
call fcn.0040cf07
mov edx, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2d2c]
call fcn.0040ac87
cmp dword [eax + 0x14], 8
jb 0x40f3ea
mov eax, dword [eax]
push ebx
push eax
lea eax, [ebp - 0x5f8]
push eax
call fcn.004074c4
add esp, 0xc
lea ecx, [ebp - 0x2d2c]
push ebx
push 1
call fcn.00401636
push ebx
push 1
lea ecx, [ebp - 0x2d44]
call fcn.00405b74
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x5f8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40f622
push 0xc
lea eax, [ebp - 0x2d14]
mov dword [ebp - 0x2d48], ebx
push ebx
push eax
call fcn.00440a80
add esp, 0xc
mov dword [ebp - 0x2d14], ebx
lea eax, [ebp - 0x2d08]
mov dword [ebp - 0x2d10], ebx
push 0x2710
push ebx
push eax
call fcn.00440a80
add esp, 0xc
lea eax, [ebp - 0x2d48]
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x2d08]
push eax
push 0xc
lea eax, [ebp - 0x2d14]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f569
push 0x3e8
lea eax, [ebp - 0x3f8]
push 0
push eax
call fcn.00440a80
mov edx, dword [ebp - 0x2cfc]
lea ecx, [ebp - 0x2d08]
add esp, 0xc
push 0x4f2f20
push 0
call fcn.0040f222
mov edx, dword [ebp - 0x2cf8]
lea ecx, [ebp - 0x2d08]
push 0x4f3320
push 0
call fcn.0040f222
mov edx, dword [ebp - 0x2cf0]
lea eax, [ebp - 0x3f8]
push eax
push 1
lea ecx, [ebp - 0x2d08]
call fcn.0040f222
push 0x4f3320
push 0x4f3720
call fcn.0044dc20
add esp, 0x20
cmp byte [0x4f2910], 0
jne 0x40f55b
movzx eax, byte [ebp - 0x3f8]
push eax
call fcn.0044f21f
pop ecx
test eax, eax
jne 0x40f546
movzx eax, byte [ebp - 0x3e5]
push eax
call fcn.0044f21f
pop ecx
test eax, eax
je 0x40f55b
lea eax, [ebp - 0x3f8]
push eax
push 0x4f2910
call fcn.0044dc20
pop ecx
pop ecx
jmp 0x40f56b
cmp byte [0x4f3720], 0
je 0x40f56b
xor esi, esi
inc esi
jmp 0x40f56b
call ebx
push 0x2710
lea eax, [ebp - 0x2d08]
push 0
push eax
call fcn.00440a80
add esp, 0xc
lea eax, [ebp - 0x2d48]
xor ecx, ecx
push ecx
push eax
push 0x2710
lea eax, [ebp - 0x2d08]
push eax
push ecx
push ecx
push 0x2d0c10
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40f619
push 0x3e8
lea eax, [ebp - 0x3f8]
push 0
push eax
call fcn.00440a80
add esp, 0xc
lea eax, [ebp - 0x2cf8]
push eax
lea eax, [ebp - 0x3f8]
push eax
call fcn.0044dc20
cmp byte [0x4f2910], 0
pop ecx
pop ecx
jne 0x40f61b
movsx eax, byte [ebp - 0x3f8]
push eax
call fcn.0044f21f
pop ecx
test eax, eax
jne 0x40f601
movsx eax, byte [ebp - 0x3e5]
push eax
call fcn.0044f21f
pop ecx
test eax, eax
je 0x40f61b
lea eax, [ebp - 0x3f8]
push eax
push 0x4f2910
call fcn.0044dc20
pop ecx
xor esi, esi
pop ecx
inc esi
jmp 0x40f61b
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426855
mov esp, ebp
pop ebp
ret