Function at 0x408450
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502d25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
mov dword [ebp - 0x14], 0
mov ecx, 0x546d80
call fcn.00501f54
push str.._
lea ecx, [ebp - 0x18]
call fcn.0040d120
mov dword [ebp - 4], 0
movzx eax, byte [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040cf00
push 0x52c384
lea ecx, [ebp - 0x18]
call fcn.0040cf30
push 0
push 0
push 3
push 0
push 3
push 0
lea ecx, [ebp - 0x18]
call fcn.0040d2e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x408504
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
push 0x52bedb
mov ecx, dword [ebp + 8]
call fcn.00403f50
mov ecx, dword [ebp - 0x14]
or ecx, 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040d100
mov eax, dword [ebp + 8]
jmp 0x408740
xor edx, edx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
xor eax, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
push 0
lea ecx, [ebp - 0x28]
push ecx
push 8
lea edx, [ebp - 0x64]
push edx
push 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x2d1400
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x408577
mov ecx, dword [ebp + 8]
call fcn.00403fe0
mov edx, dword [ebp - 0x14]
or edx, 1
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040d100
mov eax, dword [ebp + 8]
jmp 0x408740
lea ecx, [ebp - 0xe]
call fcn.0040c3f0
push eax
mov eax, dword [ebp - 0x60]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040c3b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.0040c2c0
mov dword [ebp - 0x2c], eax
push 0
lea ecx, [ebp - 0x70]
call fcn.0040c290
mov dword [ebp - 0x30], eax
push 0
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
push eax
push 0xc
lea ecx, [ebp - 0x7c]
push ecx
push 0x2d1400
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x408608
mov ecx, dword [ebp + 8]
call fcn.00403fe0
mov eax, dword [ebp - 0x14]
or eax, 1
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0040c390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040d100
mov eax, dword [ebp + 8]
jmp 0x408740
push 0
lea ecx, [ebp - 0x70]
call fcn.0040c290
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0x70]
call fcn.0040c2c0
cmp dword [ebp - 0x24], eax
jb 0x40865f
mov ecx, dword [ebp + 8]
call fcn.00403fe0
mov eax, dword [ebp - 0x14]
or eax, 1
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0040c390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040d100
mov eax, dword [ebp + 8]
jmp 0x408740
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0040c340
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x38]
call fcn.0040c200
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0040c2f0
mov edx, dword [eax]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0xd]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.0040f140
add esp, 0x10
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x70]
call fcn.0040c2f0
push eax
lea ecx, [ebp - 0x48]
call fcn.0040c240
movzx eax, al
test eax, eax
je 0x4086fe
mov ecx, dword [ebp + 8]
call fcn.00403fe0
mov ecx, dword [ebp - 0x14]
or ecx, 1
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0040c390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040d100
mov eax, dword [ebp + 8]
jmp 0x408740
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x70]
call fcn.0040c290
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403f50
mov ecx, dword [ebp - 0x14]
or ecx, 1
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0040c390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040d100
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret