Function at 0x6435d0
Capabilities:
Check os version

Disassembly:
jmp 0x646cf0
push ebp
push ebx
push edi
push esi
sub esp, 0x1c8
mov dword [esp + 0x24], 0x94
lea eax, [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_GetVersionExA
sub esp, 4
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
sete cl
movzx ecx, cl
cmp eax, ecx
je 0x646ef8
cmp dword [esp + 0x28], 5
jb 0x646d3f
jne 0x646ef8
cmp dword [esp + 0x2c], 1
ja 0x646ef8
mov dword [esp + 0x1bc], 0xffffffff
mov esi, dword [0x80f294]
lea eax, [esp + 0xb8]
mov dword [esp], eax
mov dword [esp + 0xc], 0x2f
mov dword [esp + 8], str.VLva
mov dword [esp + 4], 0x104
call fcn.0063d700
lea ecx, [esp + 0x1bc]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp], 0x80000002
call esi
sub esp, 0x14
xor ebp, ebp
mov edi, 0x70001
test eax, eax
jne 0x647236
mov ecx, eax
or ecx, 2
xor eax, 2
add eax, ecx
je 0x647236
mov eax, dword [esp + 0x1bc]
lea ebx, [esp + 0x1c4]
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x1c0]
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SMBiosData
call dword [0x80f298]
sub esp, 0x18
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
sete cl
movzx ecx, cl
cmp eax, ecx
jne 0x647236
mov dword [esp + 4], 0x34
mov dword [esp], 1
call fcn.00493840
mov esi, eax
mov edi, 0xc
test esi, esi
jne 0x646e46
mov eax, 3
sub eax, esi
xor eax, esi
jne 0x647238
mov eax, dword [esp + 0x1c4]
mov word [esi + 0x1a], ax
movzx ecx, ax
add ecx, 7
add eax, 7
and eax, 7
sub ecx, eax
mov dword [esp + 4], ecx
mov dword [esp], 1
call fcn.00493840
mov dword [esi + 0x28], eax
test eax, eax
je 0x647238
mov ecx, dword [esp + 0x1bc]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c0]
mov dword [esp + 0xc], eax
mov dword [esp], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], str.SMBiosData
call dword [0x80f298]
sub esp, 0x18
test eax, eax
mov edi, 0x70001
jne 0x647238
mov eax, dword [esp + 0x1c4]
add eax, 0xfffffff8
mov ecx, dword [esi + 0x28]
lea edx, [ecx + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.007ca0c0
mov eax, dword [esi + 0x28]
movzx ecx, byte [eax]
cmp ecx, 0x7f
jne 0x6471b6
xor eax, eax
mov ecx, 0xffffffff
jmp 0x646fb0
mov eax, dword [0x80f2b8]
test eax, eax
jne 0x646f16
mov ecx, eax
not ecx
and ecx, 1
add ecx, eax
je 0x646f16
mov edi, 0x70001
jmp 0x6472a8
mov dword [esp + 4], 0x34
mov dword [esp], 1
call fcn.00493840
mov esi, eax
mov edi, 0xc
test esi, esi
je 0x6472a8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x52534d42
call dword [0x80f2b8]
sub esp, 0x10
test eax, eax
jne 0x646fc6
xor edi, edi
jmp 0x646f8c
mov eax, edi
or eax, 2
mov ecx, edi
xor ecx, 2
add ecx, eax
setne al
movzx eax, al
add edi, eax
mov dword [esp], esi
call fcn.004936c0
mov eax, edi
imul eax, eax
and eax, 3
cmp eax, 2
sbb eax, eax
and eax, 1
cmp edi, eax
jb 0x646f70
mov edi, 0x70001
jmp 0x6472a8
inc eax
movzx edx, word [esi + 0x20]
dec ecx
mov edi, eax
and edi, 1
xor edi, ecx
setne bl
movzx edi, bl
cmp eax, edi
jb 0x646faa
jmp 0x647226
mov word [esi + 0x1a], ax
movzx ecx, ax
add ecx, 7
add eax, 7
and eax, 7
sub ecx, eax
mov dword [esp + 4], ecx
mov dword [esp], 1
call fcn.00493840
mov dword [esi + 0x28], eax
test eax, eax
je 0x6472a0
mov cl, 1
test cl, cl
je 0x6472a0
movzx ecx, word [esi + 0x1a]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x52534d42
call dword [0x80f2b8]
sub esp, 0x10
mov edi, eax
xor ebx, ebx
mov ebp, 0xffffffff
cmp edi, 8
jb 0x647195
movzx eax, word [esi + 0x1a]
cmp edi, eax
ja 0x647195
add edi, 0xfffffff8
mov eax, dword [esi + 0x28]
lea ecx, [eax + 8]
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.007ca0c0
mov word [esi + 0x1a], di
mov eax, edi
and eax, 0xfffc
xor ebx, ebx
cmp eax, 3
ja 0x647079
mov al, 1
test al, al
mov ebp, 0
jne 0x6472ca
mov eax, dword [esi + 0x28]
mov dword [esp + 0x20], eax
movzx eax, di
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
movzx edx, byte [eax + ebx]
cmp edx, 0x7f
jne 0x6470a3
mov edi, 3
sub edi, edx
xor edi, edx
jne 0x6472b5
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + ebx + 1]
lea edx, [eax + ebx + 2]
cmp edx, dword [esp + 0x1c]
ja 0x64715e
mov ebp, edx
and ebp, 1
inc ebp
xor ebp, edx
je 0x64715e
add eax, ebx
nop word [eax + eax]
mov ecx, dword [esp + 0x20]
movzx ebx, byte [ecx + eax]
mov ebp, ebx
and ebp, 1
inc ebp
xor ebp, ebx
sete cl
mov ebp, eax
or ebp, 2
mov edi, eax
xor edi, 2
add edi, ebp
setne ch
movzx ebp, ch
add ebp, eax
movzx ecx, cl
cmp ebx, ecx
jne 0x647121
mov ecx, dword [esp + 0x20]
movzx ecx, byte [ecx + ebp]
mov edi, ecx
imul edi, edi
and edi, 3
cmp edi, 3
sete byte [esp + 0x1b]
xor ebx, ebx
movzx edi, byte [esp + 0x1b]
cmp ecx, edi
je 0x64715a
mov edx, eax
add edx, 3
cmp edx, dword [esp + 0x1c]
mov eax, ebp
jbe 0x6470d0
jmp 0x64715e
mov eax, ebx
not eax
and eax, 1
add eax, ebx
setne al
movzx eax, al
add ebx, eax
movzx eax, word [esi + 0x20]
mov ecx, 3
sub ecx, eax
xor ecx, eax
setne cl
movzx ecx, cl
add ecx, eax
mov word [esi + 0x20], cx
test ebx, ebx
je 0x647130
lea eax, [edx + 4]
xor ebp, ebp
cmp eax, dword [esp + 0x1c]
mov ebx, edx
jbe 0x647087
jmp 0x6472ca
inc ebx
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call fcn.004936c0
mov dword [esp], esi
call fcn.004936c0
dec ebp
test ebx, ebx
jne 0x6471ac
mov eax, ebx
and eax, 1
xor eax, ebp
jne 0x647180
mov edi, 0x70001
jmp 0x6472a8
mov edi, 0x70001
jmp 0x6472a8
mov ecx, eax
mov edx, 0xffffffff
jmp 0x6471c6
movzx edi, byte [ecx + 1]
add edi, ecx
add edx, 1
jb 0x6471c0
add edi, 2
mov ecx, edi
jmp 0x6471e1
inc ecx
cmp byte [ecx - 2], 0
jne 0x6471e0
cmp byte [ecx - 1], 0
jne 0x6471e0
movzx edx, word [esi + 0x1a]
add edx, eax
cmp ecx, edx
ja 0x64722b
movzx edi, word [esi + 0x20]
mov edx, edi
or edx, 2
mov ebx, edi
xor ebx, 2
add ebx, edx
setne dl
movzx edx, dl
add edx, edi
mov word [esi + 0x20], dx
movzx edi, byte [ecx]
cmp edi, 0x7f
jne 0x6471b8
mov ebx, 3
sub ebx, edi
xor ebx, edi
je 0x6471b8
inc edx
mov word [esi + 0x20], dx
mov eax, dword [esp + 0x1dc]
mov dword [eax], esi
xor edi, edi
xor esi, esi
mov ebx, dword [esp + 0x1bc]
cmp ebx, 0xffffffff
jne 0x64727e
mov eax, ebx
imul eax, eax
and eax, 3
cmp eax, 2
jb 0x647291
jmp 0x64727e
mov eax, ebp
and eax, 1
xor eax, ebp
cmp eax, 0xffffffff
setne al
movzx eax, al
add ebp, eax
mov dword [esp], ebx
call dword [0x80f29c]
sub esp, 4
mov eax, 3
sub eax, ebp
xor eax, ebp
setne al
movzx eax, al
cmp ebp, eax
jb 0x647260
test esi, esi
je 0x6472a8
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call fcn.004936c0
mov dword [esp], esi
call fcn.004936c0
mov eax, edi
add esp, 0x1c8
pop esi
pop edi
pop ebx
pop ebp
ret
inc word [esi + 0x20]
xor ebp, ebp
jmp 0x6472ca
inc ebp
mov eax, dword [esp + 0x1dc]
mov dword [eax], esi
mov eax, ebp
and eax, 1
inc eax
xor eax, ebp
test ebp, ebp
je 0x6472c0
xor edi, edi
test eax, eax
jne 0x6472a8
jmp 0x6472c0