Function at 0x451a90
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60e723
mov eax, dword fs:[0]
push eax
mov eax, 0x295c
call fcn.0052e070
mov eax, dword [0x6c0924]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2800], 0
lea ecx, [ebp - 0x2784]
call fcn.00405d30
mov dword [ebp - 4], 0
push 0x2710
push 0
lea eax, [ebp - 0x2760]
push eax
call fcn.005b1170
add esp, 0xc
mov dword [ebp - 0x2804], 0
mov dword [ebp - 0x27ec], 0
jmp 0x451b16
mov ecx, dword [ebp - 0x27ec]
add ecx, 1
mov dword [ebp - 0x27ec], ecx
cmp dword [ebp - 0x27ec], 0x10
jge 0x451e74
push 0x40
push 0
lea edx, [ebp - 0x50]
push edx
call fcn.005b1170
add esp, 0xc
mov eax, dword [ebp - 0x27ec]
push eax
push 0x62e8a0
lea ecx, [ebp - 0x50]
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 - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x27e8], eax
cmp dword [ebp - 0x27e8], 0xffffffff
jne 0x451b73
jmp 0x451b07
xor eax, eax
mov dword [ebp - 0x276c], eax
mov dword [ebp - 0x2768], eax
mov dword [ebp - 0x2764], eax
push 0
lea ecx, [ebp - 0x2804]
push ecx
push 0x2710
lea edx, [ebp - 0x2760]
push edx
push 0xc
lea eax, [ebp - 0x276c]
push eax
push 0x2d1400
mov ecx, dword [ebp - 0x27e8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x451cf2
call fcn.00478bf0
mov dword [ebp - 0x27f0], eax
push 1
mov edx, dword [ebp - 0x27f0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x27f0]
mov edx, dword [eax + 8]
call edx
mov byte [ebp - 0x2808], al
cmp byte [ebp - 0x2808], 1
je 0x451bf3
jmp 0x451ced
push 0x62e8c8
lea ecx, [ebp - 0x27b4]
call fcn.00408710
mov byte [ebp - 4], 1
push 0x62e90c
lea ecx, [ebp - 0x279c]
call fcn.00408710
mov byte [ebp - 4], 2
call fcn.00478bf0
mov dword [ebp - 0x27f4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x62e910
lea eax, [ebp - 0x281c]
push eax
call fcn.0040b9a0
add esp, 0xc
mov dword [ebp - 0x280c], eax
mov ecx, dword [ebp - 0x280c]
mov dword [ebp - 0x2810], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2810]
push edx
push 0x836
lea eax, [ebp - 0x27b4]
push eax
lea ecx, [ebp - 0x279c]
push ecx
lea ecx, [ebp - 0x28d0]
call fcn.0040d3b0
mov dword [ebp - 0x2814], eax
mov edx, dword [ebp - 0x2814]
mov dword [ebp - 0x2818], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2818]
call fcn.0040b2a0
push eax
mov eax, dword [ebp - 0x27f4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x27f4]
mov eax, dword [edx + 0x1c]
call eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28d0]
call fcn.0040e140
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x281c]
call fcn.00405df0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x279c]
call fcn.00405e70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x27b4]
call fcn.00405e70
jmp 0x451e74
lea ecx, [ebp - 0x2760]
mov dword [ebp - 0x2820], ecx
mov edx, dword [ebp - 0x2820]
mov eax, dword [edx + 0x18]
lea ecx, [ebp + eax - 0x2760]
push ecx
lea ecx, [ebp - 0x2784]
call fcn.00408780
call fcn.00478bf0
mov dword [ebp - 0x27f8], eax
push 1
mov edx, dword [ebp - 0x27f8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x27f8]
mov edx, dword [eax + 8]
call edx
mov byte [ebp - 0x2824], al
cmp byte [ebp - 0x2824], 1
je 0x451d4e
jmp 0x451e4d
push 0x62e930
lea ecx, [ebp - 0x27e4]
call fcn.00408710
mov byte [ebp - 4], 5
push 0x62e92c
lea ecx, [ebp - 0x27cc]
call fcn.00408710
mov byte [ebp - 4], 6
call fcn.00478bf0
mov dword [ebp - 0x27fc], eax
lea ecx, [ebp - 0x2784]
call fcn.00408d90
push eax
push str.disk_serial_number:__s
lea eax, [ebp - 0x2838]
push eax
call fcn.0040b9a0
add esp, 0xc
mov dword [ebp - 0x2828], eax
mov ecx, dword [ebp - 0x2828]
mov dword [ebp - 0x282c], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x282c]
push edx
push 0x83d
lea eax, [ebp - 0x27e4]
push eax
lea ecx, [ebp - 0x27cc]
push ecx
lea ecx, [ebp - 0x2968]
call fcn.0040d3b0
mov dword [ebp - 0x2830], eax
mov edx, dword [ebp - 0x2830]
mov dword [ebp - 0x2834], edx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2834]
call fcn.0040b2a0
push eax
mov eax, dword [ebp - 0x27fc]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x27fc]
mov eax, dword [edx + 0x1c]
call eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2968]
call fcn.0040e140
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2838]
call fcn.00405df0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x27cc]
call fcn.00405e70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x27e4]
call fcn.00405e70
cmp dword [ebp - 0x27e8], 0xffffffff
je 0x451e6f
mov ecx, dword [ebp - 0x27e8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x27e8], 0
jmp 0x451e74
jmp 0x451b07
lea edx, [ebp - 0x2784]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405cb0
mov eax, dword [ebp - 0x2800]
or eax, 1
mov dword [ebp - 0x2800], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2784]
call fcn.00405e70
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret