Function at 0x40e9bb
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e7cd
mov eax, dword fs:[0]
push eax
mov eax, 0x2d3c
call fcn.0041c5d0
mov eax, dword [0x46b034]
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 edi, ebx
call fcn.0041008c
mov edx, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2d2c]
call fcn.004095af
cmp dword [eax + 0x14], 8
jb 0x40ea19
mov eax, dword [eax]
push ebx
push eax
lea eax, [ebp - 0x5f8]
push eax
call fcn.0040609e
add esp, 0xc
lea ecx, [ebp - 0x2d2c]
call fcn.00401dcb
lea ecx, [ebp - 0x2d44]
call fcn.00404bf8
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 esi, eax
cmp esi, 0xffffffff
je 0x40ec4b
push 0xc
lea eax, [ebp - 0x2d14]
mov dword [ebp - 0x2d48], ebx
push ebx
push eax
call fcn.0041d260
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.0041d260
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 esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40eb92
push 0x3e8
lea eax, [ebp - 0x3f8]
push 0
push eax
call fcn.0041d260
mov edx, dword [ebp - 0x2cfc]
lea ecx, [ebp - 0x2d08]
add esp, 0xc
push 0x4910c0
push 0
call fcn.0040e862
mov edx, dword [ebp - 0x2cf8]
lea ecx, [ebp - 0x2d08]
push 0x4914c0
push 0
call fcn.0040e862
mov edx, dword [ebp - 0x2cf0]
lea eax, [ebp - 0x3f8]
push eax
push 1
lea ecx, [ebp - 0x2d08]
call fcn.0040e862
push 0x4914c0
push 0x4918c0
call fcn.00428ee0
add esp, 0x20
cmp byte [0x490ab0], 0
jne 0x40eb84
movzx eax, byte [ebp - 0x3f8]
push eax
call fcn.00429b20
pop ecx
test eax, eax
jne 0x40eb6f
movzx eax, byte [ebp - 0x3e5]
push eax
call fcn.00429b20
pop ecx
test eax, eax
je 0x40eb84
lea eax, [ebp - 0x3f8]
push eax
push 0x490ab0
call fcn.00428ee0
pop ecx
pop ecx
jmp 0x40eb94
cmp byte [0x4918c0], 0
je 0x40eb94
xor edi, edi
inc edi
jmp 0x40eb94
call ebx
push 0x2710
lea eax, [ebp - 0x2d08]
push 0
push eax
call fcn.0041d260
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 esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40ec42
push 0x3e8
lea eax, [ebp - 0x3f8]
push 0
push eax
call fcn.0041d260
add esp, 0xc
lea eax, [ebp - 0x2cf8]
push eax
lea eax, [ebp - 0x3f8]
push eax
call fcn.00428ee0
cmp byte [0x490ab0], 0
pop ecx
pop ecx
jne 0x40ec44
movsx eax, byte [ebp - 0x3f8]
push eax
call fcn.00429b20
pop ecx
test eax, eax
jne 0x40ec2a
movsx eax, byte [ebp - 0x3e5]
push eax
call fcn.00429b20
pop ecx
test eax, eax
je 0x40ec44
lea eax, [ebp - 0x3f8]
push eax
push 0x490ab0
call fcn.00428ee0
pop ecx
xor edi, edi
pop ecx
inc edi
jmp 0x40ec44
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
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.0041b4ed
leave
ret