Function at 0x460b10
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c41fb
mov eax, dword fs:[0]
push eax
mov eax, 0x3800
call fcn.004aa1a0
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x3804], eax
mov dword [ebp - 0x37fc], ebx
mov dword [ebp - 0x37f8], edi
jmp 0x460b60
push 0x101
lea ecx, [ebp - 0x11c]
push ebx
push ecx
call fcn.00497ad0
push edi
lea edx, [ebp - 0x11c]
push str..PhysicalDrive_d
push edx
call fcn.00493c9a
add esp, 0x18
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x3808], esi
cmp esi, 0xffffffff
je 0x460e18
xor eax, eax
push 0x2710
lea ecx, [ebp - 0x37cc]
push ebx
mov dword [ebp - 0x37d8], eax
mov dword [ebp - 0x37d4], eax
push ecx
mov dword [ebp - 0x3800], ebx
mov dword [ebp - 0x37d0], eax
mov dword [ebp - 0x37d8], ebx
mov dword [ebp - 0x37d4], ebx
call fcn.00497ad0
add esp, 0xc
push ebx
lea edx, [ebp - 0x3800]
push edx
push 0x2710
lea eax, [ebp - 0x37cc]
push eax
push 0xc
lea ecx, [ebp - 0x37d8]
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x460e0b
push 0x3e7
lea edx, [ebp - 0x503]
push ebx
push edx
mov byte [ebp - 0x504], bl
call fcn.00497ad0
push 0x3e7
lea eax, [ebp - 0x8eb]
push ebx
push eax
mov byte [ebp - 0x8ec], bl
call fcn.00497ad0
push 0x3e7
lea ecx, [ebp - 0xcd3]
push ebx
push ecx
mov byte [ebp - 0xcd4], bl
call fcn.00497ad0
push 0x3e7
lea edx, [ebp - 0x10bb]
push ebx
push edx
mov byte [ebp - 0x10bc], bl
call fcn.00497ad0
mov eax, dword [ebp - 0x37c0]
push ebx
lea edi, [ebp - 0xcd4]
lea ecx, [ebp - 0x37cc]
call fcn.004609a0
mov eax, dword [ebp - 0x37bc]
push ebx
lea edi, [ebp - 0x8ec]
lea ecx, [ebp - 0x37cc]
call fcn.004609a0
mov eax, dword [ebp - 0x37b8]
push ebx
lea edi, [ebp - 0x10bc]
lea ecx, [ebp - 0x37cc]
call fcn.004609a0
mov eax, dword [ebp - 0x37b4]
push 1
lea edi, [ebp - 0x504]
lea ecx, [ebp - 0x37cc]
call fcn.004609a0
add esp, 0x40
cmp byte [0x501e60], bl
jne 0x460dcc
movsx eax, byte [ebp - 0x504]
push eax
call fcn.004945ed
add esp, 4
test eax, eax
jne 0x460d15
movsx ecx, byte [ebp - 0x4f1]
push ecx
call fcn.004945ed
add esp, 4
test eax, eax
je 0x460dcc
xor eax, eax
jmp 0x460d20
mov cl, byte [ebp + eax - 0x504]
mov byte [eax + 0x501e60], cl
inc eax
cmp cl, bl
jne 0x460d20
xor eax, eax
jmp 0x460d40
mov cl, byte [ebp + eax - 0x8ec]
mov byte [eax + 0x501a60], cl
inc eax
cmp cl, bl
jne 0x460d40
mov eax, 0x501e60
mov dword [ebp - 0x37e0], 0xf
mov dword [ebp - 0x37e4], ebx
mov byte [ebp - 0x37f4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x460d70
sub eax, edx
mov edi, eax
mov eax, 0x501e60
lea esi, [ebp - 0x37f4]
call fcn.00403cd0
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x3804]
mov ecx, esi
call fcn.004610a0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x37e0], 0x10
jb 0x460dba
mov edx, dword [ebp - 0x37f4]
push edx
call fcn.00490a16
add esp, 4
mov esi, dword [ebp - 0x3808]
mov dword [ebp - 0x37fc], 1
xor ebx, ebx
push 0x2710
lea eax, [ebp - 0x37cc]
push ebx
push eax
call fcn.00497ad0
add esp, 0xc
push ebx
lea ecx, [ebp - 0x3800]
push ecx
push 0x2710
lea edx, [ebp - 0x37cc]
push edx
push ebx
push ebx
push 0x700a0
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [ebp - 0x37f8]
jmp 0x460e11
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
mov dword [ebp - 0x37f8], edi
cmp edi, 0x10
jl 0x460b60
mov eax, dword [ebp - 0x37fc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret