Function at 0x4180e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x1698
call fcn.004dd480
mov eax, dword [0x52d324]
xor eax, esp
mov dword [esp + 0x1694], eax
push esi
push edi
push 0x51e9f6
push 0x400
push 0x530090
xor esi, esi
call fcn.004e787e
add esp, 0xc
lea eax, [esp + 0x74]
push 0x110
push esi
push eax
call fcn.004df150
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 0x41860c
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 0x4182af
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 0x4182a8
push 0x210
xorps xmm0, xmm0
mov byte [esp + 0x44], 0
push 0
push 0x530490
movaps xmmword [esp + 0x2c], xmm0
movaps xmmword [esp + 0x3c], xmm0
call fcn.004df150
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 0x530490
push 0x20
lea eax, [esp + 0x34]
push eax
push 0x7c088
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4182a8
lea ecx, [esp + 0x11a8]
mov eax, 0x5304a8
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, 0x5306a8
jl 0x418260
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 0x418153
test edi, edi
jne 0x418707
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.00418870
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 0x418473
mov dword [esp + 0x10], 0
nop word [eax + eax]
push 0x22d
lea eax, [esp + 0x18c]
push 0
push eax
call fcn.004df150
mov eax, dword [str.SCSIDISK]
add esp, 0xc
mov dword [esp + 0x18c], eax
mov eax, dword [0x522cf8]
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 0x41845a
cmp byte [esp + 0x1ea], 0
je 0x41845a
lea edx, [esp + 0x1198]
xor eax, eax
lea ecx, [esp + 0x3b2]
cmp edx, ecx
ja 0x4183fa
lea edx, [esp + 0x1594]
lea ecx, [esp + 0x1b4]
cmp edx, ecx
jb 0x4183fa
nop dword [eax]
inc eax
cmp eax, 0x100
jl 0x4183f0
jmp 0x418455
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 0x418401
mov esi, 1
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 2
jl 0x418320
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 0x4182d1
test esi, esi
jne 0x418707
call fcn.00417ec0
test eax, eax
jne 0x418707
mov dword [esp + 0x14], eax
nop
push eax
lea eax, [esp + 0x159c]
push str..PhysicalDrive_d
push eax
call fcn.00418870
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 0x4185f5
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 0x4185f5
push 0x221
call fcn.004e6fbc
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 0x4185e5
lea edx, [esp + 0x1198]
xor ecx, ecx
lea eax, [esi + 0x20e]
cmp edx, eax
lea edx, [esi + 0x10]
ja 0x41858b
lea eax, [esp + 0x1594]
cmp eax, edx
jb 0x41858b
nop dword [eax]
inc ecx
cmp ecx, 0x100
jl 0x418580
jmp 0x4185e5
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 0x418590
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004e2a1e
add esp, 4
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0x10
jl 0x4184a0
jmp 0x418707
mov edi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov dword [esp + 0x14], esi
test esi, esi
jne 0x418707
cmp byte [0x530090], 0
jne 0x418707
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.004df150
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 0x418698
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 0x4186d4
mov eax, esi
shr eax, 1
cmp byte [esp + eax + 0x188], 0
je 0x4186d4
xor ecx, ecx
mov edx, edi
nop dword [eax]
inc ecx
lea edx, [edx + 2]
cmp ecx, 0x100
jl 0x4186c0
mov dword [esp + 0x10], 1
inc esi
add edi, 0x200
cmp esi, 8
jb 0x4186a1
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 0x418616
mov ecx, dword [esp + 0x169c]
mov eax, 0x530090
pop edi
pop esi
xor ecx, esp
call fcn.004dc214
mov esp, ebp
pop ebp
ret