Function at 0x451da0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x38f4
call fcn.004fa800
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
jmp 0x451dd7
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x10
jge 0x452065
mov dword [ebp - 0x214], 0
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x1fe
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.004f8090
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
push 0x566dd4
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x451e50
jmp 0x452060
mov dword [ebp - 0x2934], 0
push 0xc
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004f8090
add esp, 0xc
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
push 0x2710
push 0
lea ecx, [ebp - 0x2930]
push ecx
call fcn.004f8090
add esp, 0xc
push 0
lea edx, [ebp - 0x2934]
push edx
push 0x2710
lea eax, [ebp - 0x2930]
push eax
push 0xc
lea ecx, [ebp - 0x220]
push ecx
push 0x2d1400
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x452047
lea eax, [ebp - 0x2930]
mov dword [ebp - 0x310c], eax
lea ecx, [ebp - 0x34f8]
push ecx
push 0
mov edx, dword [ebp - 0x310c]
mov eax, dword [edx + 0xc]
push eax
lea ecx, [ebp - 0x2930]
push ecx
call fcn.00451aa0
add esp, 0x10
lea edx, [ebp - 0x3108]
push edx
push 0
mov eax, dword [ebp - 0x310c]
mov ecx, dword [eax + 0x10]
push ecx
lea edx, [ebp - 0x2930]
push edx
call fcn.00451aa0
add esp, 0x10
lea eax, [ebp - 0x2d20]
push eax
push 0
mov ecx, dword [ebp - 0x310c]
mov edx, dword [ecx + 0x14]
push edx
lea eax, [ebp - 0x2930]
push eax
call fcn.00451aa0
add esp, 0x10
lea ecx, [ebp - 0x38e0]
push ecx
push 1
mov edx, dword [ebp - 0x310c]
mov eax, dword [edx + 0x18]
push eax
lea ecx, [ebp - 0x2930]
push ecx
call fcn.00451aa0
add esp, 0x10
movsx edx, byte [0x599998]
test edx, edx
jne 0x451fc5
movsx eax, byte [ebp - 0x38e0]
push eax
call fcn.004fa343
add esp, 4
test eax, eax
jne 0x451f96
movsx ecx, byte [ebp - 0x38cd]
push ecx
call fcn.004fa343
add esp, 4
test eax, eax
je 0x451fc5
lea edx, [ebp - 0x38e0]
push edx
push 0x599998
call fcn.004fa700
add esp, 8
lea eax, [ebp - 0x3108]
push eax
push 0x599598
call fcn.004fa700
add esp, 8
mov dword [ebp - 8], 1
push 0x2710
push 0
lea ecx, [ebp - 0x2930]
push ecx
call fcn.004f8090
add esp, 0xc
push 0
lea edx, [ebp - 0x2934]
push edx
push 0x2710
lea eax, [ebp - 0x2930]
push eax
push 0
push 0
push 0x700a0
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x45200c
jmp 0x452045
lea edx, [ebp - 0x2930]
mov dword [ebp - 0x38ec], edx
mov eax, dword [ebp - 0x38ec]
xor ecx, ecx
cmp dword [eax + 8], 0xc
sete cl
mov dword [ebp - 0x38f0], ecx
mov edx, dword [ebp - 0x38ec]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x38e8], eax
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 0x38e4], ecx
jmp 0x452053
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38f4], eax
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x451dce
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret