Function at 0x465510
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50db30
mov eax, dword fs:[0]
push eax
sub esp, 0xd8c
mov eax, dword [0x550144]
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
mov dword [ebp - 0xd98], ecx
xor ebx, ebx
xor esi, esi
nop dword [eax + eax]
push 0x200
lea eax, [ebp - 0x510]
push 0
push eax
call fcn.004e0230
add esp, 0xc
lea eax, [ebp - 0x510]
push esi
push str..PhysicalDrive_d
push 0xffffffffffffffff
push 0xff
push eax
call fcn.0044aba0
add esp, 0x14
lea eax, [ebp - 0x510]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x465838
push 0x800
lea eax, [ebp - 0xd10]
mov dword [ebp - 0xd94], 0
push 0
push eax
mov dword [ebp - 0xd14], 0
mov dword [ebp - 0xd1c], 0
mov dword [ebp - 0xd18], 0
call fcn.004e0230
add esp, 0xc
lea eax, [ebp - 0xd94]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd10]
push eax
push 0xc
lea eax, [ebp - 0xd1c]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x465831
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004e0230
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x100
push 0
push eax
call fcn.004e0230
add esp, 0xc
lea eax, [ebp - 0x310]
push 0x100
push 0
push eax
call fcn.004e0230
mov edx, dword [ebp - 0xd00]
lea eax, [ebp - 0x210]
add esp, 0xc
lea ecx, [ebp - 0xd10]
push eax
push 0
call fcn.00464af0
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x310]
push eax
push 0
lea ecx, [ebp - 0xd10]
call fcn.00464af0
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x110]
push eax
push 1
lea ecx, [ebp - 0xd10]
call fcn.00464af0
movsx eax, byte [ebp - 0x110]
push eax
call fcn.004f4b58
add esp, 0x1c
test eax, eax
jne 0x4656d2
movsx eax, byte [ebp - 0xfd]
push eax
call fcn.004f4b58
add esp, 4
test eax, eax
je 0x465831
mov dword [ebp - 0xd8c], 0
mov dword [ebp - 0xd74], 0
mov dword [ebp - 0xd5c], 0
mov dword [ebp - 0xd44], 0
mov dword [ebp - 0xd90], esi
mov dword [ebp - 0xd7c], 0
mov dword [ebp - 0xd78], 0xf
mov byte [ebp - 0xd8c], 0
mov dword [ebp - 0xd64], 0
mov dword [ebp - 0xd60], 0xf
mov byte [ebp - 0xd74], 0
mov dword [ebp - 0xd4c], 0
mov dword [ebp - 0xd48], 0xf
mov byte [ebp - 0xd5c], 0
mov dword [ebp - 0xd34], 0
mov dword [ebp - 0xd30], 0xf
mov byte [ebp - 0xd44], 0
mov dword [ebp - 0xd2c], 0
mov dword [ebp - 0xd28], 0
mov dword [ebp - 0xd24], 0
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 0
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4657a0
sub eax, edx
lea ecx, [ebp - 0xd5c]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0044c0b0
lea ecx, [ebp - 0x210]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4657c5
sub ecx, edx
lea eax, [ebp - 0x210]
push ecx
push eax
lea ecx, [ebp - 0xd8c]
call fcn.0044c0b0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4657f0
sub ecx, edx
lea eax, [ebp - 0x310]
push ecx
push eax
lea ecx, [ebp - 0xd74]
call fcn.0044c0b0
mov ecx, dword [ebp - 0xd98]
lea eax, [ebp - 0xd90]
push eax
call fcn.0045d4f0
lea ecx, [ebp - 0xd90]
mov dword [ebp - 4], 0xffffffff
inc ebx
call fcn.00450510
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x10
jl 0x465550
mov eax, ebx
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.004de46d
mov esp, ebp
pop ebp
ret