Function at 0x419960
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x1698
call fcn.0049ff70
mov eax, dword [0x53307c]
xor eax, esp
mov dword [esp + 0x1694], eax
push esi
push edi
push 0x522d7a
push 0x400
push 0x5363a0
xor esi, esi
call fcn.004f01f9
add esp, 0xc
lea eax, [esp + 0x74]
push 0x110
push esi
push eax
call fcn.004e7890
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 0x419e8c
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 0x419b2f
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 0x419b28
push 0x210
xorps xmm0, xmm0
mov byte [esp + 0x44], 0
push 0
push 0x5367a0
movaps xmmword [esp + 0x2c], xmm0
movaps xmmword [esp + 0x3c], xmm0
call fcn.004e7890
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 0x5367a0
push 0x20
lea eax, [esp + 0x34]
push eax
push 0x7c088
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x419b28
lea ecx, [esp + 0x11a8]
mov eax, 0x5367b8
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, 0x5369b8
jl 0x419ae0
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 0x4199d3
test edi, edi
jne 0x419f87
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.0041a0f0
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 0x419cf3
mov dword [esp + 0x10], 0
nop word [eax + eax]
push 0x22d
lea eax, [esp + 0x18c]
push 0
push eax
call fcn.004e7890
mov eax, dword [str.SCSIDISK]
add esp, 0xc
mov dword [esp + 0x18c], eax
mov eax, dword [0x527460]
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 0x419cda
cmp byte [esp + 0x1ea], 0
je 0x419cda
lea edx, [esp + 0x1198]
xor eax, eax
lea ecx, [esp + 0x3b2]
cmp edx, ecx
ja 0x419c7a
lea edx, [esp + 0x1594]
lea ecx, [esp + 0x1b4]
cmp edx, ecx
jb 0x419c7a
nop dword [eax]
inc eax
cmp eax, 0x100
jl 0x419c70
jmp 0x419cd5
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 0x419c81
mov esi, 1
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 2
jl 0x419ba0
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 0x419b51
test esi, esi
jne 0x419f87
call fcn.00419740
test eax, eax
jne 0x419f87
mov dword [esp + 0x14], eax
nop
push eax
lea eax, [esp + 0x159c]
push str..PhysicalDrive_d
push eax
call fcn.0041a0f0
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 0x419e75
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 0x419e75
push 0x221
call fcn.004e9b6b
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 0x419e65
lea edx, [esp + 0x1198]
xor ecx, ecx
lea eax, [esi + 0x20e]
cmp edx, eax
lea edx, [esi + 0x10]
ja 0x419e0b
lea eax, [esp + 0x1594]
cmp eax, edx
jb 0x419e0b
nop dword [eax]
inc ecx
cmp ecx, 0x100
jl 0x419e00
jmp 0x419e65
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 0x419e10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004edf01
add esp, 4
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0x10
jl 0x419d20
jmp 0x419f87
mov edi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov dword [esp + 0x14], esi
test esi, esi
jne 0x419f87
cmp byte [0x5363a0], 0
jne 0x419f87
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.004e7890
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 0x419f18
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 0x419f54
mov eax, esi
shr eax, 1
cmp byte [esp + eax + 0x188], 0
je 0x419f54
xor ecx, ecx
mov edx, edi
nop dword [eax]
inc ecx
lea edx, [edx + 2]
cmp ecx, 0x100
jl 0x419f40
mov dword [esp + 0x10], 1
inc esi
add edi, 0x200
cmp esi, 8
jb 0x419f21
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 0x419e96
mov ecx, dword [esp + 0x169c]
mov eax, 0x5363a0
pop edi
pop esi
xor ecx, esp
call fcn.0049e964
mov esp, ebp
pop ebp
ret