Function at 0x4272b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x1698
call fcn.004f4060
mov eax, dword [0x54735c]
xor eax, esp
mov dword [esp + 0x1694], eax
push esi
push edi
push 0x536330
push 0x400
push 0x54a4d0
xor esi, esi
call fcn.004fe504
add esp, 0xc
lea eax, [esp + 0x74]
push 0x110
push esi
push eax
call fcn.004f53d0
add esp, 0xc
mov dword [esp + 0x70], 0x114
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x80], 2
jne 0x4277dc
xor edi, edi
mov dword [esp + 0x10], esi
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x15b0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42747f
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0x18
lea eax, [esp + 0x5c]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x74080
push esi
movaps xmmword [esp + 0x70], xmm0
movq qword [esp + 0x80], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov al, byte [esp + 0x53]
mov byte [esp + 0x1b], al
test al, al
je 0x427478
push 0x210
xorps xmm0, xmm0
mov byte [esp + 0x44], 0
push 0
push 0x54a8d0
movaps xmmword [esp + 0x2c], xmm0
movaps xmmword [esp + 0x3c], xmm0
call fcn.004f53d0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov al, dl
mov byte [esp + 0x25], 1
and al, 1
mov word [esp + 0x27], 0
or al, 0xfa
mov byte [esp + 0x2c], dl
shl al, 4
mov cl, dl
mov byte [esp + 0x29], al
mov al, byte [esp + 0x1b]
shr al, cl
and al, 0x10
mov dword [esp + 0x20], 0x200
neg al
push 0
sbb al, al
and al, 0xb5
add al, 0xec
mov byte [esp + 0x2e], al
lea eax, [esp + 0x18]
push eax
push 0x210
push 0x54a8d0
push 0x20
lea eax, [esp + 0x34]
push eax
push 0x7c088
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x427478
lea ecx, [esp + 0x11a8]
mov eax, 0x54a8e8
nop dword [eax + eax]
movq xmm1, qword [eax - 8]
lea ecx, [ecx + 0x40]
xorps xmm0, xmm0
punpcklwd xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movq xmm1, qword [eax]
punpcklwd xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movq xmm1, qword [eax + 8]
punpcklwd xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movq xmm1, qword [eax + 0x10]
add eax, 0x20
punpcklwd xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp eax, 0x54aae8
jl 0x427430
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x10
jl 0x427323
test edi, edi
jne 0x4278d7
xor esi, esi
xor eax, eax
mov dword [esp + 0x14], eax
push eax
lea eax, [esp + 0x159c]
push str..Scsi_d:
push eax
call fcn.00427a40
add esp, 0xc
lea eax, [esp + 0x1598]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x427643
mov dword [esp + 0x10], 0
nop word [eax + eax]
push 0x22d
lea eax, [esp + 0x18c]
push 0
push eax
call fcn.004f53d0
mov eax, dword [str.SCSIDISK]
add esp, 0xc
mov dword [esp + 0x18c], eax
mov eax, dword [0x53aa60]
mov dword [esp + 0x190], eax
mov eax, dword [esp + 0x10]
push 0
mov byte [esp + 0x1b4], al
lea eax, [esp + 0x20]
push eax
push 0x22d
lea eax, [esp + 0x194]
mov dword [esp + 0x194], 0x1c
push eax
push 0x3c
push eax
push 0x4d008
push edi
mov dword [esp + 0x1b4], 0x2710
mov dword [esp + 0x1c0], 0x211
mov dword [esp + 0x1b8], 0x1b0501
mov byte [esp + 0x1ce], 0xec
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42762a
cmp byte [esp + 0x1ea], 0
je 0x42762a
lea edx, [esp + 0x1198]
xor eax, eax
lea ecx, [esp + 0x3b2]
cmp edx, ecx
ja 0x4275ca
lea edx, [esp + 0x1594]
lea ecx, [esp + 0x1b4]
cmp edx, ecx
jb 0x4275ca
nop dword [eax]
inc eax
cmp eax, 0x100
jl 0x4275c0
jmp 0x427625
lea ecx, [esp + 0x1c4]
movq xmm1, qword [ecx - 0x10]
lea ecx, [ecx + 0x20]
xorps xmm0, xmm0
punpcklwd xmm1, xmm0
movups xmmword [esp + eax*4 + 0x1198], xmm1
movq xmm1, qword [ecx - 0x28]
punpcklwd xmm1, xmm0
movups xmmword [esp + eax*4 + 0x11a8], xmm1
movq xmm1, qword [ecx - 0x20]
punpcklwd xmm1, xmm0
movups xmmword [esp + eax*4 + 0x11b8], xmm1
movq xmm1, qword [ecx - 0x18]
punpcklwd xmm1, xmm0
movups xmmword [esp + eax*4 + 0x11c8], xmm1
add eax, 0x10
cmp eax, 0x100
jl 0x4275d1
mov esi, 1
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 2
jl 0x4274f0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0x10
jl 0x4274a1
test esi, esi
jne 0x4278d7
call fcn.00427090
test eax, eax
jne 0x4278d7
mov dword [esp + 0x14], eax
nop
push eax
lea eax, [esp + 0x159c]
push str..PhysicalDrive_d
push eax
call fcn.00427a40
add esp, 0xc
lea eax, [esp + 0x1598]
push 0
push 0
push 3
push 0
push 7
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4277c5
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x18
lea eax, [esp + 0x5c]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x74080
push edi
movaps xmmword [esp + 0x70], xmm0
movq qword [esp + 0x80], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4277c5
push 0x221
call fcn.004fb5e7
add esp, 4
mov esi, eax
lea eax, [esp + 0x1c]
push 0
push eax
push 0x221
push esi
push 0x21
push esi
push 0x7c088
mov byte [esi + 0xa], 0xec
push edi
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4277b5
lea edx, [esp + 0x1198]
xor ecx, ecx
lea eax, [esi + 0x20e]
cmp edx, eax
lea edx, [esi + 0x10]
ja 0x42775b
lea eax, [esp + 0x1594]
cmp eax, edx
jb 0x42775b
nop dword [eax]
inc ecx
cmp ecx, 0x100
jl 0x427750
jmp 0x4277b5
add edx, 0x10
nop
movq xmm1, qword [edx - 0x10]
lea edx, [edx + 0x20]
xorps xmm0, xmm0
punpcklwd xmm1, xmm0
movups xmmword [esp + ecx*4 + 0x1198], xmm1
movq xmm1, qword [edx - 0x28]
punpcklwd xmm1, xmm0
movups xmmword [esp + ecx*4 + 0x11a8], xmm1
movq xmm1, qword [edx - 0x20]
punpcklwd xmm1, xmm0
movups xmmword [esp + ecx*4 + 0x11b8], xmm1
movq xmm1, qword [edx - 0x18]
punpcklwd xmm1, xmm0
movups xmmword [esp + ecx*4 + 0x11c8], xmm1
add ecx, 0x10
cmp ecx, 0x100
jl 0x427760
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004f85ad
add esp, 4
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0x10
jl 0x427670
jmp 0x4278d7
mov edi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov dword [esp + 0x14], esi
test esi, esi
jne 0x4278d7
cmp byte [0x54a4d0], 0
jne 0x4278d7
push 0x100
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push 0x100c
lea eax, [esp + 0x18c]
push esi
push eax
call fcn.004f53d0
add esp, 0xc
push esi
push 0x4000000
push esi
push esi
push esi
push esi
push str..IDE21201.VXD
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x427868
push 0
lea eax, [esp + 0x20]
push eax
push 4
lea eax, [esp + 0x194]
push eax
push 0
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea edi, [esp + 0x194]
cmp byte [esp + esi + 0x18c], 0
je 0x4278a4
mov eax, esi
shr eax, 1
cmp byte [esp + eax + 0x188], 0
je 0x4278a4
xor ecx, ecx
mov edx, edi
nop dword [eax]
inc ecx
lea edx, [edx + 2]
cmp ecx, 0x100
jl 0x427890
mov dword [esp + 0x10], 1
inc esi
add edi, 0x200
cmp esi, 8
jb 0x427871
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call edi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0xa
jl 0x4277e6
mov ecx, dword [esp + 0x169c]
mov eax, 0x54a4d0
pop edi
pop esi
xor ecx, esp
call fcn.004f313b
mov esp, ebp
pop ebp
ret