Function at 0x427730
Capabilities:
Check os version

Disassembly:
mov eax, 0x21a0
call sub.ntdll.dll__chkstk
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0x219c], eax
mov eax, dword [esp + 0x21a4]
push ebx
push ebp
push esi
push edi
push 4
mov dword [esp + 0x24], eax
call sub.MFC80U.DLL_Ordinal_762
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x427775
mov ebx, eax
mov dword [eax], vtable.CSymLink.0
mov dword [esp + 0x18], ebx
jmp 0x42777b
mov dword [esp + 0x18], ebp
mov ebx, ebp
push 0xffe
lea ecx, [esp + 0x1ae]
push ebp
push ecx
mov word [esp + 0x1b4], bp
call sub.ntdll.dll_memset
mov ecx, dword [0x4e7db0]
mov edx, dword [str.Device]
mov eax, dword [0x4e7dac]
add esp, 0xc
mov dword [esp + 0x148], ecx
mov dword [esp + 0x140], edx
mov edx, dword [0x4e7db4]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x150], edx
push 0x800
lea edx, [esp + 0x1b0]
push edx
mov dword [esp + 0x150], eax
mov eax, dword [ebx]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x14c]
push ecx
mov ecx, ebx
mov dword [esp + 0x24], ebp
call edx
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
jne 0x427867
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
push esi
mov ecx, ebx
call edx
mov eax, 1
test byte [0x503544], al
jne 0x427838
or dword [0x503544], eax
push 0x4732e0
mov dword [0x503520], 0x4e7bc8
mov dword [0x503524], esi
call fcn.0046d920
add esp, 4
mov esi, dword [0x503520]
push 0x91
add esi, 8
call fcn.00427290
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Failed_to_ISymLink.QueryFirstDirectoryItem.
push 0x503520
call eax
add esp, 0xc
xor eax, eax
jmp 0x427b72
push 0xe
lea ecx, [esp + 0x1ac]
push str.HarddiskVolume
push ecx
call dword [sym.imp.ntdll.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x427979
lea eax, [esp + 0x1a8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x427891
sub eax, edx
sar eax, 1
cmp eax, 0x12
jae 0x427979
push 0xffe
lea edx, [esp + 0x11ae]
push ebp
push edx
mov word [esp + 0x11b4], bp
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [esp + 0x1a8]
push eax
lea ecx, [esp + 0x144]
push ecx
lea edx, [esp + 0x11b0]
push str._s_s
push edx
call dword [sym.imp.MSVCR80.dll__swprintf]
add esp, 0x10
lea ecx, [esp + 0x11a8]
call fcn.00427f30
test eax, eax
je 0x427979
push 0x6ac
call sub.MFC80U.DLL_Ordinal_762
add esp, 4
push 0x6ac
mov esi, eax
push ebp
push esi
mov dword [esp + 0x30], esi
call sub.ntdll.dll_memset
lea eax, [esp + 0x11b4]
lea edi, [esi + 0x90]
mov edx, edi
mov ecx, eax
add esp, 0xc
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bp
jne 0x427936
sub esi, edi
mov eax, edi
lea edx, [esi + 0x298]
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bp
jne 0x427950
mov esi, dword [esp + 0x20]
add esi, 4
lea ebx, [esp + 0x24]
call fcn.0042ba20
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
xor ebp, ebp
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
push esi
lea eax, [esp + 0x18]
push eax
push 0x800
lea ecx, [esp + 0x1b4]
push ecx
mov ecx, ebx
call edx
test eax, eax
jne 0x427867
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
push esi
mov ecx, ebx
call edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x2c], 6
jae 0x427b6d
push 0xffe
lea ecx, [esp + 0x1ae]
push ebp
push ecx
mov word [esp + 0x1b4], bp
call sub.ntdll.dll_memset
mov edx, dword [ebx]
mov edx, dword [edx + 8]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
mov ecx, 0x16
mov esi, str.DeviceHarddiskDmVolumesPhysicalDmVolumes
lea edi, [esp + 0x154]
rep movsd dword es:[edi], dword [esi]
push 0x800
lea ecx, [esp + 0x1b0]
push ecx
lea eax, [esp + 0x15c]
push eax
mov ecx, ebx
mov dword [esp + 0x24], ebp
call edx
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x427a60
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
push ebp
mov ecx, ebx
call edx
call fcn.004205a0
mov edi, eax
mov esi, dword [edi]
push 0xbf
add esi, 8
call fcn.00427290
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Failed_to_ISymLink.QueryFirstDirectoryItem.
push edi
call eax
add esp, 0xc
xor eax, eax
jmp 0x427b72
push 0xb
lea ecx, [esp + 0x1ac]
push str.BlockVolume
push ecx
call dword [sym.imp.ntdll.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x427b3f
push 0xffe
push eax
lea edx, [esp + 0x11b2]
push edx
mov word [esp + 0x11b4], ax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [esp + 0x1a8]
push eax
lea ecx, [esp + 0x154]
push ecx
lea edx, [esp + 0x11b0]
push str._s_s
push edx
call dword [sym.imp.MSVCR80.dll__swprintf]
add esp, 0x10
lea ecx, [esp + 0x11a8]
call fcn.00427f30
test eax, eax
je 0x427b3f
push 0x6ac
call sub.MFC80U.DLL_Ordinal_762
add esp, 4
push 0x6ac
mov edi, eax
push 0
push edi
mov dword [esp + 0x28], edi
call sub.ntdll.dll_memset
lea eax, [esp + 0x11b4]
lea ecx, [edi + 0x90]
mov esi, ecx
mov edx, eax
add esp, 0xc
sub esi, edx
lea ebx, [ebx]
movzx edx, word [eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x427b10
add edi, 0x298
push edi
call fcn.00427b90
mov esi, dword [esp + 0x20]
add esi, 4
lea ebx, [esp + 0x1c]
call fcn.0042ba20
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
push ebp
lea ecx, [esp + 0x18]
push ecx
push 0x800
lea edx, [esp + 0x1b4]
push edx
mov ecx, ebx
call eax
test eax, eax
jne 0x427a60
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push ebp
mov ecx, ebx
call eax
mov eax, 1
mov ecx, dword [esp + 0x21ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046d6fd
add esp, 0x21a0
ret 4