Function at 0x494a24
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x494a2d
mov eax, dword [ebp - 4]
add esp, 0xfffff884
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2780], edx
mov dword [ebp - 0x277c], edx
mov dword [ebp - 0x2778], edx
mov dword [ebp - 0x2774], edx
mov dword [ebp - 0x2770], edx
mov dword [ebp - 0x276c], edx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x494ccc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404e80
mov byte [ebp - 5], 0
xor ebx, ebx
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2768], ebx
mov byte [ebp - 0x2764], 0
lea edx, [ebp - 0x2768]
xor ecx, ecx
mov eax, 0x494ce4
call fcn.0040abd0
push 0
push 0
push 3
push 0
push 3
push 0
mov eax, dword [ebp - 4]
call fcn.00405310
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x494c96
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x28
call fcn.004036e8
push 0
lea eax, [ebp - 0x10]
push eax
push 0x28
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x700a0
push esi
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x494c90
cmp byte [ebp - 0x48], 0xc
jne 0x494c90
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2760]
xor ecx, ecx
mov edx, 4
call fcn.004036e8
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0xc
call fcn.004036e8
push 0
lea eax, [ebp - 0x10]
push eax
push 0x2710
lea eax, [ebp - 0x2760]
push eax
push 0xc
lea eax, [ebp - 0x28]
push eax
push 0x2d1400
push esi
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x494c90
lea eax, [ebp - 0x2760]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
push dword [edi]
push 0x494d00
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea eax, [ebp - 0x276c]
call fcn.00409d04
push dword [ebp - 0x276c]
mov eax, edi
mov edx, 3
call fcn.00405214
push dword [edi]
push 0x494d14
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x1c]
lea eax, [edx + eax]
lea edx, [ebp - 0x2770]
call fcn.0040a6e0
push dword [ebp - 0x2770]
mov eax, edi
mov edx, 3
call fcn.00405214
push dword [edi]
push 0x494d30
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x1c]
lea eax, [edx + eax]
lea edx, [ebp - 0x2774]
call fcn.0040a6e0
push dword [ebp - 0x2774]
mov eax, edi
mov edx, 3
call fcn.00405214
push dword [edi]
push 0x494d4c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x1c]
lea eax, [edx + eax]
lea edx, [ebp - 0x2778]
call fcn.0040a6e0
push dword [ebp - 0x2778]
mov eax, edi
mov edx, 3
call fcn.00405214
push dword [edi]
push 0x494d6c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x1c]
lea eax, [edx + eax]
lea edx, [ebp - 0x277c]
call fcn.0040a6e0
push dword [ebp - 0x277c]
mov eax, edi
mov edx, 3
call fcn.00405214
push dword [edi]
push 0x494d8c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2780]
call fcn.00409d04
push dword [ebp - 0x2780]
mov eax, edi
mov edx, 3
call fcn.00405214
mov byte [ebp - 5], 1
push esi
call sub.kernel32.dll_CloseHandle
cmp byte [ebp - 5], 0
jne 0x494ca6
inc ebx
cmp ebx, 0x10
jne 0x494a89
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494cd3
lea eax, [ebp - 0x2780]
mov edx, 6
call fcn.00404ea4
lea eax, [ebp - 4]
call fcn.00404e80
ret