Function at 0x491250
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a80d
mov eax, dword fs:[0]
push eax
sub esp, 0xbcc
mov eax, dword [0x4c1600]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x45], 0
mov word [ebp - 0x1c], 0x20
mov word [ebp - 0x1a], 0x3a
mov word [ebp - 0x18], 0x5c
mov word [ebp - 0x16], 0
mov ecx, 9
mov esi, str..PhysicalDriveN
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
jmp 0x4912cc
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x20
jge 0x4915c7
movzx ecx, byte [ebp - 0x45]
test ecx, ecx
jne 0x4915c7
mov dword [ebp - 0x58], 0
mov edx, 1
mov ecx, dword [ebp - 0x50]
shl edx, cl
and edx, dword [ebp - 0x10]
jne 0x4912fa
jmp 0x4912c3
mov eax, dword [ebp - 0x50]
add eax, 0x41
mov word [ebp - 0x1c], ax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 3
je 0x49131f
cmp dword [ebp - 0x54], 6
je 0x49131f
jmp 0x4912c3
mov edx, dword [ebp - 0x4c]
add edx, 0x30
mov word [ebp - 0x22], dx
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
push 0
push 0
push 3
push 0
push 3
push 0
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0xffffffff
jne 0x491356
jmp 0x4915c2
mov dword [ebp - 0x868], 0
push 0xc
push 0
lea edx, [ebp - 0x64]
push edx
call fcn.00452150
add esp, 0xc
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
push 0x800
push 0
lea eax, [ebp - 0x864]
push eax
call fcn.00452150
add esp, 0xc
push 0
lea ecx, [ebp - 0x868]
push ecx
push 0x800
lea edx, [ebp - 0x864]
push edx
push 0xc
lea eax, [ebp - 0x64]
push eax
push 0x2d1400
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4915b2
lea edx, [ebp - 0x864]
mov dword [ebp - 0x86c], edx
cmp dword [ebp - 0x86c], 0
je 0x4915b0
mov byte [ebp - 0xb6c], 0
push 0xff
push 0
lea eax, [ebp - 0xb6b]
push eax
call fcn.00452150
add esp, 0xc
mov byte [ebp - 0xa6c], 0
push 0xff
push 0
lea ecx, [ebp - 0xa6b]
push ecx
call fcn.00452150
add esp, 0xc
mov byte [ebp - 0x96c], 0
push 0xff
push 0
lea edx, [ebp - 0x96b]
push edx
call fcn.00452150
add esp, 0xc
lea eax, [ebp - 0xa6c]
push eax
push 0
mov ecx, dword [ebp - 0x86c]
mov edx, dword [ecx + 0x10]
push edx
lea eax, [ebp - 0x864]
push eax
call fcn.0048e9b0
add esp, 0x10
lea ecx, [ebp - 0x96c]
push ecx
push 0
mov edx, dword [ebp - 0x86c]
mov eax, dword [edx + 0x14]
push eax
lea ecx, [ebp - 0x864]
push ecx
call fcn.0048e9b0
add esp, 0x10
lea edx, [ebp - 0xb6c]
push edx
push 1
mov eax, dword [ebp - 0x86c]
mov ecx, dword [eax + 0x18]
push ecx
lea edx, [ebp - 0x864]
push edx
call fcn.0048e9b0
add esp, 0x10
movsx eax, byte [ebp - 0xb6c]
push eax
call fcn.00453b19
add esp, 4
test eax, eax
jne 0x4914c8
movsx ecx, byte [ebp - 0xb59]
push ecx
call fcn.00453b19
add esp, 4
test eax, eax
je 0x4915b0
lea edx, [ebp - 0xb6c]
push edx
lea ecx, [ebp - 0xb88]
call fcn.00409910
mov dword [ebp - 0xbc4], eax
mov eax, dword [ebp - 0xbc4]
mov dword [ebp - 0xbc8], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xbc8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb88]
call fcn.00409a80
lea edx, [ebp - 0xa6c]
push edx
lea ecx, [ebp - 0xba4]
call fcn.00409910
mov dword [ebp - 0xbcc], eax
mov eax, dword [ebp - 0xbcc]
mov dword [ebp - 0xbd0], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0xbd0]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00402650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xba4]
call fcn.00409a80
lea edx, [ebp - 0x96c]
push edx
lea ecx, [ebp - 0xbc0]
call fcn.00409910
mov dword [ebp - 0xbd4], eax
mov eax, dword [ebp - 0xbd4]
mov dword [ebp - 0xbd8], eax
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0xbd8]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00402650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc0]
call fcn.00409a80
mov byte [ebp - 0x45], 1
jmp 0x4915b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4912c3
mov al, byte [ebp - 0x45]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00451d4e
mov esp, ebp
pop ebp
ret