Function at 0x640070
Capabilities:
Check os version

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x194
lea esi, [esp + 0x184]
mov dword [esp], esi
mov dword [esp + 4], 0x10
call fcn.007cbac0
mov dword [esp + 4], esi
mov dword [esp], 1
call fcn.0063d6e0
mov eax, dword [esp + 0x18c]
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
sete cl
movzx ecx, cl
cmp eax, ecx
jge 0x640311
mov dword [esp + 4], esi
mov dword [esp], 0x40000000
call fcn.0063d6e0
lea edi, [esp + 0x104]
mov dword [esp], edi
mov dword [esp + 0xc], 0xc
mov dword [esp + 8], str.HFG_n
mov dword [esp + 4], pe_nt_image_headers32
call fcn.0063d700
mov dword [esp], eax
call fcn.007c3e70
mov esi, eax
mov dword [esp], edi
mov dword [esp + 0xc], 0xc
mov dword [esp + 8], str.HFG_n
mov dword [esp + 4], pe_nt_image_headers32
call fcn.0063d700
lea ecx, [esp + 0x188]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.007c5e90
test eax, eax
jne 0x640311
lea eax, [esp + 0x100]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20119
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftVirtual_MachineGuestParameters
mov dword [esp], 0x80000002
call dword [0x80f294]
sub esp, 0x14
mov dword [esp + 0x18], 0
test eax, eax
mov ebx, 0
jne 0x64022e
lea ebp, [esp + 0xfc]
xor ebx, ebx
xor edi, edi
jmp 0x640214
inc edi
mov dword [esp + 0xf8], 0x40
mov eax, dword [esp + 0x100]
lea ecx, [esp + 0xf8]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0xb8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ebp
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.VirtualMachineId
call dword [0x80f298]
sub esp, 0x18
mov esi, eax
mov eax, dword [esp + 0x100]
mov dword [esp], eax
call dword [0x80f29c]
sub esp, 4
mov eax, esi
and eax, 1
inc eax
xor eax, esi
sete al
movzx eax, al
cmp esi, eax
sete al
movzx ebx, al
mov eax, edi
or eax, 2
mov ecx, edi
xor ecx, 2
add ecx, eax
setne al
movzx eax, al
cmp edi, eax
jb 0x6401a0
mov dword [esp + 0x24], 0x94
lea eax, [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_GetVersionExA
sub esp, 4
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete cl
movzx ecx, cl
cmp eax, ecx
je 0x640272
cmp dword [esp + 0x28], 6
jb 0x64026a
jne 0x640272
cmp dword [esp + 0x2c], 1
ja 0x640272
mov dword [esp + 0x18], 1
mov esi, dword [esp + 0x1a8]
test ebx, ebx
jne 0x64030b
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 1]
xor eax, ecx
sete al
movzx eax, al
cmp ecx, eax
je 0x640311
lea eax, [esp + 0x20]
mov dword [esp], eax
call fcn.00643560
test eax, eax
jne 0x640311
mov eax, dword [esp + 0x20]
lea edi, [esp + 0x1c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00643570
test eax, eax
jne 0x6402f1
mov ebx, 0xffffff
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x6402f1
cmp dword [eax], 0x1b
jbe 0x6402dd
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x14]
and eax, ebx
cmp eax, 0x5d1500
je 0x6402ff
mov eax, dword [esp + 0x20]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00643570
test eax, eax
je 0x6402c1
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00644400
jmp 0x640311
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00644400
mov dword [esi], 8
xor eax, eax
add esp, 0x194
pop esi
pop edi
pop ebx
pop ebp
ret