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

Disassembly:
push 0xffffffffffffffff
push 0x465508
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x485300]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485300]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x20], ecx
mov ecx, 9
mov esi, str..PhysicalDriveN
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
xor bl, bl
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
mov byte [esp + 0x1b], bl
mov word [esp + 0x8c], 0x20
mov word [esp + 0x8e], 0x3a
mov word [esp + 0x90], 0x5c
mov word [esp + 0x92], 0
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
xor esi, esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], esi
xor edi, edi
test bl, bl
jne 0x4179cc
mov ecx, esi
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x30]
test ecx, eax
je 0x4179bc
lea eax, [esp + 0x8c]
lea edx, [esi + 0x41]
push eax
mov word [esp + 0x90], dx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
je 0x417807
cmp eax, 6
jne 0x4179bc
push 0
push 0
push 3
push 0
push 7
lea ecx, [edi + 0x30]
push 0xc0000000
lea edx, [esp + 0xac]
add edi, 1
push edx
mov word [esp + 0xd2], cx
mov dword [esp + 0x40], edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4179b8
mov edi, dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
xor eax, eax
push 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
mov dword [esp + 0x54], eax
lea eax, [esp + 0x2c]
push eax
push 0x18
lea ecx, [esp + 0x48]
push ecx
push 0
push 0
push 0x74080
push ebx
mov dword [esp + 0x48], 0
call edi
test eax, eax
je 0x4179ad
push 0x221
call fcn.00444acc
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4179ad
push 0
lea edx, [esp + 0x30]
push edx
push 0x221
push ebp
push 0x21
push ebp
push 0x7c088
push ebx
mov byte [ebp + 0xa], 0xec
mov dword [esp + 0x4c], 0
call edi
test eax, eax
je 0x4179a4
mov eax, dword [ebp]
lea edi, [ebp + 0x10]
test edi, edi
je 0x4179a4
cmp eax, 0x2e
jbe 0x4179a4
push 0x13
push 0xa
mov ecx, edi
lea esi, [esp + 0x5c]
call fcn.004170b0
add esp, 8
mov ecx, dword [esp + 0x38]
push 0xffffffffffffffff
push 0
push eax
mov dword [esp + 0xd8], 0
call fcn.00403700
mov ecx, esi
mov dword [esp + 0xcc], 0xffffffff
call fcn.004033e0
push 0x2e
push 0x1b
mov ecx, edi
lea esi, [esp + 0x5c]
call fcn.004170b0
add esp, 8
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push 0
push eax
mov dword [esp + 0xd8], 1
call fcn.00403700
mov ecx, esi
mov dword [esp + 0xcc], 0xffffffff
call fcn.004033e0
push 0x1a
push 0x17
mov ecx, edi
lea esi, [esp + 0x78]
call fcn.004170b0
add esp, 8
mov ecx, dword [esp + 0x34]
push 0xffffffffffffffff
push 0
push eax
mov dword [esp + 0xd8], 2
call fcn.00403700
mov ecx, esi
mov dword [esp + 0xcc], 0xffffffff
call fcn.004033e0
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x1b], 1
push ebp
call fcn.00444833
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [esp + 0x24]
mov bl, byte [esp + 0x1b]
add esi, 1
cmp esi, 0x20
mov dword [esp + 0x1c], esi
jl 0x4177c3
mov al, bl
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0044266a
add esp, 0xbc
ret