Function at 0x417410
Capabilities:
Check os version
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x465561
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x485300]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485300]
xor eax, esp
push eax
lea eax, [esp + 0x2f4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x304]
mov dword [esp + 0x2c], ecx
mov ecx, 9
mov esi, str..PhysicalDriveN
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edx
mov byte [esp + 0x1b], 0
mov word [esp + 0xac], 0x20
mov word [esp + 0xae], 0x3a
mov word [esp + 0xb0], 0x5c
mov word [esp + 0xb2], bx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov dword [esp + 0x24], eax
xor esi, esi
mov al, byte [esp + 0x1b]
test al, al
jne 0x4176f3
mov ecx, ebx
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x24]
test ecx, eax
je 0x4176e3
lea eax, [esp + 0xac]
lea edx, [ebx + 0x41]
push eax
mov word [esp + 0xb0], dx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
je 0x4174f4
cmp eax, 6
jne 0x4176e3
push 0
push 0
push 3
push 0
push 3
lea ecx, [esi + 0x30]
push 0xc0000000
lea edx, [esp + 0xcc]
add esi, 1
push edx
mov word [esp + 0xf2], cx
mov dword [esp + 0x3c], esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4176e3
xor eax, eax
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x20]
push eax
push 0x18
lea ecx, [esp + 0x44]
push ecx
push 0
push 0
push 0x74080
push ebp
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov al, byte [esp + 0x3b]
test al, al
jbe 0x4176d8
mov cl, bl
shr al, cl
push 0x210
lea edx, [esp + 0xe0]
and al, 0x10
neg al
sbb al, al
and al, 0xb5
add al, 0xec
mov byte [esp + 0x38], al
xor eax, eax
push eax
push edx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov byte [esp + 0xb4], al
call fcn.00447890
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0xec]
push ecx
lea edi, [esp + 0x30]
mov cl, bl
lea eax, [esp + 0x9c]
mov esi, ebp
call fcn.00417040
add esp, 0x14
test al, al
je 0x4176d8
cmp dword [esp + 0xdc], 0x2e
jbe 0x4176d8
push 0x13
push 0xa
lea ecx, [esp + 0xf4]
lea esi, [esp + 0x58]
call fcn.004170b0
add esp, 8
mov ecx, dword [esp + 0x28]
or edi, 0xffffffff
push edi
push 0
push eax
mov dword [esp + 0x308], 0
call fcn.00403700
mov ecx, esi
mov dword [esp + 0x2fc], edi
call fcn.004033e0
push 0x2e
push 0x1b
lea ecx, [esp + 0xf4]
lea esi, [esp + 0x58]
call fcn.004170b0
add esp, 8
mov ecx, dword [esp + 0x2c]
push edi
push 0
push eax
mov dword [esp + 0x308], 1
call fcn.00403700
mov ecx, esi
mov dword [esp + 0x2fc], edi
call fcn.004033e0
push 0x1a
push 0x17
lea ecx, [esp + 0xf4]
lea esi, [esp + 0x74]
call fcn.004170b0
add esp, 8
mov ecx, dword [esp + 0x30]
push edi
push 0
push eax
mov dword [esp + 0x308], 2
call fcn.00403700
mov ecx, esi
mov dword [esp + 0x2fc], edi
call fcn.004033e0
mov byte [esp + 0x1b], 1
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [esp + 0x20]
add ebx, 1
cmp ebx, 0x20
jl 0x4174ac
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0x2f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.0044266a
add esp, 0x2ec
ret