Function at 0x494a10
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2cdc
call fcn.004a0ea0
push ebx
push esi
push edi
xor edi, edi
lea eax, [esp + 0x3d8]
push edi
push 0x5c3b24
push eax
mov ebx, edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3d8]
push edi
push edi
push 3
push edi
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
je 0x494d22
push 0x2710
xorps xmm0, xmm0
mov dword [esp + 0x14], edi
lea eax, [esp + 0x5dc]
movq qword [esp + 0x20], xmm0
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.00530990
add esp, 0xc
lea eax, [esp + 0x10]
push edi
push eax
push 0x2710
lea eax, [esp + 0x5e4]
push eax
push 0xc
lea eax, [esp + 0x30]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x494d1b
push 0x80
lea eax, [esp + 0x35c]
push edi
push eax
call fcn.00530990
push 0x80
lea eax, [esp + 0x268]
push edi
push eax
call fcn.00530990
push 0x80
lea eax, [esp + 0x1f4]
push edi
push eax
call fcn.00530990
push 0x80
lea eax, [esp + 0x300]
push edi
push eax
call fcn.00530990
mov edx, dword [esp + 0x614]
lea eax, [esp + 0x208]
add esp, 0x30
push eax
push ecx
lea ecx, [esp + 0x5e0]
call fcn.004947d0
mov edx, dword [esp + 0x5f0]
lea eax, [esp + 0x260]
add esp, 8
push eax
push ecx
lea ecx, [esp + 0x5e0]
call fcn.004947d0
mov edx, dword [esp + 0x5f4]
lea eax, [esp + 0x2e0]
add esp, 8
push eax
push ecx
lea ecx, [esp + 0x5e0]
call fcn.004947d0
mov edx, dword [esp + 0x5f8]
lea eax, [esp + 0x360]
add esp, 8
push eax
push ecx
lea ecx, [esp + 0x5e0]
call fcn.004947d0
push 0x1a0
lea eax, [esp + 0x3c]
mov dword [esp + 0x1dc], edi
xorps xmm0, xmm0
push edi
push eax
movlpd qword [esp + 0x3c], xmm0
call fcn.00530990
lea ecx, [esp + 0x1ec]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x494bb5
sub ecx, edx
je 0x494bd4
xor ecx, ecx
mov al, byte [esp + ecx + 0x1d8]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x4f], al
test al, al
jne 0x494bc2
lea ecx, [esp + 0x258]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x494be0
sub ecx, edx
je 0x494c1e
lea edx, [esp + 0x258]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x494bf4
lea edi, [esp + 0x50]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x494c02
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
xor edi, edi
xor ecx, ecx
mov al, byte [esp + ecx + 0x2d8]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x14f], al
test al, al
jne 0x494c20
xor ecx, ecx
nop word [eax + eax]
mov al, byte [esp + ecx + 0x358]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0xcf], al
test al, al
jne 0x494c40
lea ecx, [esp + 0xd0]
call fcn.00494940
lea ecx, [esp + 0x50]
call fcn.00494940
lea ecx, [esp + 0x150]
call fcn.00494940
push 0x2710
lea eax, [esp + 0x5dc]
push 0
push eax
call fcn.00530990
add esp, 0xc
lea eax, [esp + 0x10]
push 0
push eax
push 0x2710
lea eax, [esp + 0x5e4]
push eax
push 0
push 0
push 0x700a0
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x494d1b
cmp dword [esp + 0x5e0], 0xc
mov eax, dword [esp + 0x5f0]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5f4]
mov dword [esp + 0x2c], eax
jne 0x494d1b
lea edx, [esp + 0xd0]
mov dword [esp + 0x1d0], 2
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x494cf0
sub edx, ecx
xor ecx, ecx
test edx, edx
jle 0x494d12
nop
movsx ax, byte [esp + ecx + 0xd0]
mov word [ebx + ecx*2], ax
inc ecx
cmp ecx, edx
jl 0x494d00
xor eax, eax
mov word [ebx + edx*2], ax
lea edi, [eax + 1]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret