Function at 0x423540
Capabilities:
Check os version

Disassembly:
mov eax, 0x17ac
call sub.ntdll.dll__chkstk
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x17a4], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 4
mov dword [esp + 0x18], esi
call sub.MFC80U.DLL_Ordinal_762
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x42357c
mov dword [eax], vtable.CSymLink.0
mov ebx, eax
jmp 0x42357e
xor ebx, ebx
push 0xffe
lea eax, [esp + 0x7b6]
push ebp
push eax
mov word [esp + 0x7bc], bp
call sub.ntdll.dll_memset
mov eax, dword [0x4dbf78]
mov ecx, dword [str.Device]
mov edx, dword [0x4dbf74]
add esp, 0xc
mov dword [esp + 0x748], ecx
mov ecx, dword [0x4dbf7c]
mov dword [esp + 0x750], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x758], ecx
push 0x800
mov dword [esp + 0x754], edx
mov edx, dword [ebx]
mov edx, dword [edx + 8]
lea ecx, [esp + 0x7b8]
push ecx
lea eax, [esp + 0x754]
push eax
mov ecx, ebx
mov dword [esp + 0x20], ebp
call edx
mov edi, eax
cmp edi, 0xffffffff
jne 0x423680
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
call edx
mov eax, 1
test byte [0x4f1904], al
jne 0x423643
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], edi
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0xaf
mov ecx, str..dyndisk.cpp
add esi, 8
call fcn.00422e30
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Failed_to_ISymLink.QueryFirstDirectoryItem.
push 0x4f18dc
call eax
add esp, 0xc
xor eax, eax
jmp 0x4238e7
push 0xe
lea ecx, [esp + 0x7b4]
push str.HarddiskVolume
push ecx
call dword [sym.imp.ntdll.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x42372e
lea eax, [esp + 0x7b0]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4236b0
sub eax, edx
sar eax, 1
cmp eax, 0x12
jae 0x42372e
push 0x618
lea edx, [esp + 0x134]
push ebp
push edx
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [esp + 0x7b0]
push eax
lea ecx, [esp + 0x74c]
push ecx
lea edx, [esp + 0x138]
push str._s_s
push edx
call dword [sym.imp.MSVCR80.dll__swprintf]
add esp, 0x10
lea eax, [esp + 0x130]
jmp 0x423710
movzx ecx, word [eax]
mov word [eax + 0x208], cx
add eax, 2
cmp cx, bp
jne 0x423710
lea eax, [esp + 0x130]
call fcn.00425070
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
push edi
lea ecx, [esp + 0x14]
push ecx
push 0x800
lea edx, [esp + 0x7bc]
push edx
mov ecx, ebx
call eax
test eax, eax
jne 0x423680
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push edi
mov ecx, ebx
call eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x1c], 6
jb 0x423783
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
jmp 0x4238e2
push 0xffe
lea ecx, [esp + 0x7b6]
push ebp
push ecx
mov word [esp + 0x7bc], bp
call sub.ntdll.dll_memset
mov edx, dword [ebx]
mov edx, dword [edx + 8]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov ecx, 0x16
mov esi, str.DeviceHarddiskDmVolumesPhysicalDmVolumes
lea edi, [esp + 0x75c]
rep movsd dword es:[edi], dword [esi]
push 0x800
lea ecx, [esp + 0x7b8]
push ecx
lea eax, [esp + 0x764]
push eax
mov ecx, ebx
mov dword [esp + 0x20], ebp
call edx
mov edi, eax
cmp edi, 0xffffffff
jne 0x423830
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
call edx
call fcn.0041e870
mov edi, eax
mov esi, dword [edi]
push 0xd8
mov ecx, str..dyndisk.cpp
add esi, 8
call fcn.00422e30
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 0x4238e7
push 0xb
lea ecx, [esp + 0x7b4]
push str.BlockVolume
push ecx
call dword [sym.imp.ntdll.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4238ac
push 0x618
lea edx, [esp + 0x134]
push ebp
push edx
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [esp + 0x7b0]
push eax
lea ecx, [esp + 0x75c]
push ecx
lea edx, [esp + 0x138]
push str._s_s
push edx
call dword [sym.imp.MSVCR80.dll__swprintf]
add esp, 0x10
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x33c]
call fcn.00424660
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x130]
call fcn.00425070
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
push edi
lea eax, [esp + 0x14]
push eax
push 0x800
lea ecx, [esp + 0x7bc]
push ecx
mov ecx, ebx
call edx
test eax, eax
jne 0x423830
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
call edx
mov eax, 1
mov ecx, dword [esp + 0x17b4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00462b77
add esp, 0x17ac
ret