Function at 0x492860
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d30
call fcn.005514a0
mov eax, dword [0x60f074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x2d28], eax
test eax, eax
je 0x492b22
mov eax, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2d24], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d10], ebx
mov dword [ebp - 0x2d14], esi
mov dword [ebp - 0x2d30], edi
mov dword [ebp - 0x2d2c], eax
nop dword [eax]
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x5ec]
push 0x200
push eax
call fcn.004923f0
add esp, 0x10
lea eax, [ebp - 0x5ec]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call edi
mov edi, eax
mov dword [ebp - 0x2d1c], edi
cmp edi, 0xffffffff
je 0x492af9
push 0x2710
lea eax, [ebp - 0x2cfc]
mov dword [ebp - 0x2d20], 0
push 0
push eax
mov dword [ebp - 0x2d00], 0
mov dword [ebp - 0x2d08], 0
mov dword [ebp - 0x2d04], 0
call fcn.0056f6e0
add esp, 0xc
lea eax, [ebp - 0x2d20]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push edi
call dword [ebp - 0x2d24]
test eax, eax
je 0x492aee
push 0x3e7
lea eax, [ebp - 0x3eb]
push 0
push eax
call fcn.0056f6e0
mov eax, dword [ebp - 0x2ce4]
add esp, 0xc
mov byte [ebp - 0x3ec], 0
test eax, eax
jle 0x492ac5
lea edi, [ebp - 0x2cfc]
xor bh, bh
xor esi, esi
mov ecx, 1
add edi, eax
mov dword [ebp - 0x2d0c], ecx
mov eax, edi
mov dword [ebp - 0x2d18], eax
mov al, byte [eax]
test al, al
je 0x492a75
movsx eax, al
push eax
call fcn.0057b82d
mov bl, al
movsx eax, bl
push eax
call fcn.00577716
mov cl, byte [ebp + esi - 0x3ec]
add esp, 8
test eax, eax
movzx edx, bl
mov eax, 0x30
cmovne edx, eax
shl cl, 4
inc bh
mov byte [ebp + esi - 0x3ec], cl
lea eax, [edx - 0x30]
cmp al, 9
jbe 0x492a0c
lea eax, [edx - 0x61]
cmp al, 5
ja 0x492a44
lea eax, [edx - 0x57]
or cl, al
mov byte [ebp + esi - 0x3ec], cl
cmp bh, 2
jne 0x492a38
test cl, cl
je 0x492a2e
movsx eax, cl
push eax
call fcn.005776e2
add esp, 4
test eax, eax
je 0x492a44
inc esi
xor bh, bh
mov byte [ebp + esi - 0x3ec], bh
mov eax, dword [ebp - 0x2d18]
inc eax
jmp 0x4929b4
mov dword [ebp - 0x2d0c], 1
xor esi, esi
mov bl, byte [edi]
test bl, bl
je 0x492a75
movsx eax, bl
push eax
call fcn.005776e2
add esp, 4
test eax, eax
je 0x492a71
mov byte [ebp + esi - 0x3ec], bl
inc esi
inc edi
jmp 0x492a50
xor ecx, ecx
jmp 0x492a7b
mov ecx, dword [ebp - 0x2d0c]
xor edi, edi
test ecx, ecx
cmovne edi, esi
xor edx, edx
mov byte [ebp + edi - 0x3ec], 0
test edi, edi
jle 0x492ab3
mov cl, byte [ebp + edx - 0x3ec]
mov al, byte [ebp + edx - 0x3eb]
mov byte [ebp + edx - 0x3ec], al
mov byte [ebp + edx - 0x3eb], cl
add edx, 2
cmp edx, edi
jl 0x492a90
mov edi, dword [ebp - 0x2d1c]
mov esi, dword [ebp - 0x2d14]
mov ebx, dword [ebp - 0x2d10]
push ecx
lea eax, [ebp - 0x3ec]
mov edx, 0x64
push eax
push ecx
mov ecx, dword [ebp - 0x2d28]
call fcn.00492470
test eax, eax
mov eax, 1
cmove ebx, eax
mov dword [ebp - 0x2d10], ebx
push edi
call dword [ebp - 0x2d2c]
test ebx, ebx
jne 0x492b0f
mov edi, dword [ebp - 0x2d30]
inc esi
mov dword [ebp - 0x2d14], esi
cmp esi, 0x10
jl 0x4928c0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550156
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00550156
mov esp, ebp
pop ebp
ret