Function at 0x412e10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x1698
call fcn.00458180
mov eax, dword [0x4f238c]
xor eax, esp
mov dword [esp + 0x1694], eax
push esi
push edi
push 0x4e7f03
push 0x400
push 0x4f5790
xor esi, esi
call fcn.004a89b0
add esp, 0xc
lea eax, [esp + 0x74]
push 0x110
push esi
push eax
call fcn.0049e790
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 0x41333c
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 0x412fdf
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 0x412fd8
push 0x210
xorps xmm0, xmm0
mov byte [esp + 0x44], 0
push 0
push 0x4f5b90
movaps xmmword [esp + 0x2c], xmm0
movaps xmmword [esp + 0x3c], xmm0
call fcn.0049e790
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 0x4f5b90
push 0x20
lea eax, [esp + 0x34]
push eax
push 0x7c088
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x412fd8
lea ecx, [esp + 0x11a8]
mov eax, 0x4f5ba8
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, 0x4f5da8
jl 0x412f90
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 0x412e83
test edi, edi
jne 0x413437
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.004135a0
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 0x4131a3
mov dword [esp + 0x10], 0
nop word [eax + eax]
push 0x22d
lea eax, [esp + 0x18c]
push 0
push eax
call fcn.0049e790
mov eax, dword [str.SCSIDISK]
add esp, 0xc
mov dword [esp + 0x18c], eax
mov eax, dword [0x4e8690]
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 0x41318a
cmp byte [esp + 0x1ea], 0
je 0x41318a
lea edx, [esp + 0x1198]
xor eax, eax
lea ecx, [esp + 0x3b2]
cmp edx, ecx
ja 0x41312a
lea edx, [esp + 0x1594]
lea ecx, [esp + 0x1b4]
cmp edx, ecx
jb 0x41312a
nop dword [eax]
inc eax
cmp eax, 0x100
jl 0x413120
jmp 0x413185
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 0x413131
mov esi, 1
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 2
jl 0x413050
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 0x413001
test esi, esi
jne 0x413437
call fcn.00412bf0
test eax, eax
jne 0x413437
mov dword [esp + 0x14], eax
nop
push eax
lea eax, [esp + 0x159c]
push str..PhysicalDrive_d
push eax
call fcn.004135a0
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 0x413325
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 0x413325
push 0x221
call fcn.004a71cd
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 0x413315
lea edx, [esp + 0x1198]
xor ecx, ecx
lea eax, [esi + 0x20e]
cmp edx, eax
lea edx, [esi + 0x10]
ja 0x4132bb
lea eax, [esp + 0x1594]
cmp eax, edx
jb 0x4132bb
nop dword [eax]
inc ecx
cmp ecx, 0x100
jl 0x4132b0
jmp 0x413315
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 0x4132c0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004a2dbe
add esp, 4
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0x10
jl 0x4131d0
jmp 0x413437
mov edi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov dword [esp + 0x14], esi
test esi, esi
jne 0x413437
cmp byte [0x4f5790], 0
jne 0x413437
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.0049e790
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 0x4133c8
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 0x413404
mov eax, esi
shr eax, 1
cmp byte [esp + eax + 0x188], 0
je 0x413404
xor ecx, ecx
mov edx, edi
nop dword [eax]
inc ecx
lea edx, [edx + 2]
cmp ecx, 0x100
jl 0x4133f0
mov dword [esp + 0x10], 1
inc esi
add edi, 0x200
cmp esi, 8
jb 0x4133d1
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 0x413346
mov ecx, dword [esp + 0x169c]
mov eax, 0x4f5790
pop edi
pop esi
xor ecx, esp
call fcn.00457808
mov esp, ebp
pop ebp
ret