Function at 0x45b420
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bc274
mov eax, dword fs:[0]
push eax
mov eax, 0x3054
call fcn.0061ac20
mov eax, dword [0x78d5fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3038], ecx
mov byte [ebp - 0x302d], 0
mov dword [ebp - 0x3044], 0
mov dword [ebp - 0x303c], 0
mov eax, dword [ebp - 0x3044]
push eax
push str..PhysicalDrive_d
push 0x100
lea ecx, [ebp - 0x110]
push ecx
call fcn.0044c440
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push 0
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x303c], eax
cmp dword [ebp - 0x303c], 0xffffffff
jne 0x45b4c3
mov al, byte [ebp - 0x302d]
jmp 0x45b70e
mov dword [ebp - 0x3048], 0
push 0xc
push 0
lea eax, [ebp - 0x2ffc]
push eax
call fcn.00653fd0
add esp, 0xc
mov dword [ebp - 0x2ffc], 0
mov dword [ebp - 0x2ff8], 0
push 0x2710
push 0
lea ecx, [ebp - 0x2ff0]
push ecx
call fcn.00653fd0
add esp, 0xc
push 0
lea edx, [ebp - 0x3048]
push edx
push 0x2710
mov eax, 1
imul ecx, eax, 0
lea edx, [ebp + ecx - 0x2ff0]
push edx
push 0xc
lea eax, [ebp - 0x2ffc]
push eax
push 0x2d1400
mov ecx, dword [ebp - 0x303c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x45b552
mov al, byte [ebp - 0x302d]
jmp 0x45b70e
lea edx, [ebp - 0x2ff0]
mov dword [ebp - 0x3040], edx
mov dword [ebp - 0x3034], 0
mov dword [ebp - 0x304c], 1
lea eax, [ebp - 0x304c]
mov dword [ebp - 0x3050], eax
mov ecx, dword [ebp - 0x3050]
movsx edx, byte [ecx]
test edx, edx
je 0x45b597
mov dword [ebp - 0x3034], 0
jmp 0x45b5a1
mov dword [ebp - 0x3034], 1
lea eax, [ebp - 0x4f8]
push eax
mov ecx, dword [ebp - 0x3034]
push ecx
mov edx, dword [ebp - 0x3040]
mov eax, dword [edx + 0x18]
push eax
lea ecx, [ebp - 0x2ff0]
push ecx
mov ecx, dword [ebp - 0x3038]
call fcn.0045bfe0
lea edx, [ebp - 0x8e0]
push edx
mov eax, dword [ebp - 0x3034]
push eax
mov ecx, dword [ebp - 0x3040]
mov edx, dword [ecx + 0x10]
push edx
lea eax, [ebp - 0x2ff0]
push eax
mov ecx, dword [ebp - 0x3038]
call fcn.0045bfe0
mov ecx, dword [ebp - 0x3038]
add ecx, 0x228
mov dword [ebp - 0x3054], ecx
push 0
mov ecx, dword [ebp - 0x3054]
call fcn.004518f0
movsx edx, byte [eax]
test edx, edx
jne 0x45b6fb
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x4f8]
push edx
call fcn.006637e0
add esp, 4
test eax, eax
jne 0x45b65d
mov eax, 1
imul ecx, eax, 0x13
movsx edx, byte [ebp + ecx - 0x4f8]
push edx
call fcn.006637e0
add esp, 4
test eax, eax
je 0x45b6fb
lea eax, [ebp - 0x4f8]
push eax
lea ecx, [ebp - 0x302c]
call fcn.00451ad0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x8e0]
push ecx
lea ecx, [ebp - 0x3014]
call fcn.00451ad0
mov byte [ebp - 4], 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3058], esp
lea edx, [ebp - 0x302c]
push edx
call fcn.00451b60
mov dword [ebp - 0x305c], eax
mov byte [ebp - 4], 2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3060], esp
lea eax, [ebp - 0x3014]
push eax
call fcn.00451b60
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3038]
call fcn.0045bed0
mov byte [ebp - 0x302d], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3014]
call fcn.00451a30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x302c]
call fcn.00451a30
mov ecx, dword [ebp - 0x303c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x302d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0061abe2
mov esp, ebp
pop ebp
ret