Function at 0x417a00
Capabilities:
Check os version
Get disk information
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x4654c1
mov eax, dword fs:[0]
push eax
sub esp, 0xb98
mov eax, dword [0x485300]
xor eax, esp
mov dword [esp + 0xb94], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485300]
xor eax, esp
push eax
lea eax, [esp + 0xbac]
mov dword fs:[0], eax
mov eax, dword [esp + 0xbbc]
mov dword [esp + 0x30], ecx
mov ecx, 9
mov esi, str..PhysicalDriveN
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov byte [esp + 0x17], bl
mov word [esp + 0x78], 0x20
mov word [esp + 0x7a], 0x3a
mov word [esp + 0x7c], 0x5c
mov word [esp + 0x7e], bx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
xor edi, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
or ebp, 0xffffffff
mov al, byte [esp + 0x17]
cmp al, bl
jne 0x417d09
mov ecx, edi
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x2c]
test ecx, eax
je 0x417cf5
lea eax, [esp + 0x78]
lea edx, [edi + 0x41]
push eax
mov word [esp + 0x7c], dx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
je 0x417adc
cmp eax, 6
jne 0x417cf5
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push 3
push ebx
push 3
lea ecx, [eax + 0x30]
push ebx
lea edx, [esp + 0x98]
add eax, 1
push edx
mov word [esp + 0xbe], cx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, ebp
je 0x417cf5
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
push 0x800
mov dword [esp + 0x78], eax
lea eax, [esp + 0x3ac]
push ebx
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
call fcn.00447890
add esp, 0xc
push ebx
lea ecx, [esp + 0x2c]
push ecx
push 0x800
lea edx, [esp + 0x3b4]
push edx
push 0xc
lea eax, [esp + 0x80]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x417d31
push 0xff
lea ecx, [esp + 0xad]
push ebx
push ecx
mov byte [esp + 0xb4], bl
call fcn.00447890
push 0xff
lea edx, [esp + 0x1b9]
push ebx
push edx
mov byte [esp + 0x1c0], bl
call fcn.00447890
push 0xff
lea eax, [esp + 0x2c5]
push ebx
push eax
mov byte [esp + 0x2cc], bl
call fcn.00447890
mov eax, dword [esp + 0x3dc]
push ebx
lea edi, [esp + 0x1d0]
lea ecx, [esp + 0x3d0]
call fcn.004172a0
mov eax, dword [esp + 0x3e4]
push ebx
lea edi, [esp + 0x2d4]
lea ecx, [esp + 0x3d4]
call fcn.004172a0
mov eax, dword [esp + 0x3ec]
push 1
lea edi, [esp + 0xd8]
lea ecx, [esp + 0x3d8]
call fcn.004172a0
movsx ecx, byte [esp + 0xd8]
push ecx
call fcn.00444789
add esp, 0x34
test eax, eax
jne 0x417c41
movsx edx, byte [esp + 0xbb]
push edx
call fcn.00444789
add esp, 4
test eax, eax
je 0x417cea
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x38]
call fcn.004033a0
mov ecx, dword [esp + 0x20]
push ebp
push ebx
push eax
mov dword [esp + 0xbc0], ebx
call fcn.00403700
lea ecx, [esp + 0x34]
mov dword [esp + 0xbb4], ebp
call fcn.004033e0
lea ecx, [esp + 0x1a8]
push ecx
lea ecx, [esp + 0x38]
call fcn.004033a0
mov ecx, dword [esp + 0x30]
push ebp
push ebx
push eax
mov dword [esp + 0xbc0], 1
call fcn.00403700
lea ecx, [esp + 0x34]
mov dword [esp + 0xbb4], ebp
call fcn.004033e0
lea edx, [esp + 0x2a8]
push edx
lea ecx, [esp + 0x54]
call fcn.004033a0
mov ecx, dword [esp + 0x24]
push ebp
push ebx
push eax
mov dword [esp + 0xbc0], 2
call fcn.00403700
lea ecx, [esp + 0x50]
mov dword [esp + 0xbb4], ebp
call fcn.004033e0
mov byte [esp + 0x17], 1
mov edi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
add edi, 1
cmp edi, 0x20
mov dword [esp + 0x18], edi
jl 0x417a9a
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0xbac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb94]
xor ecx, esp
call fcn.0044266a
add esp, 0xba4
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x417cee