Function at 0x10006850
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x1009de80]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
push 0x98
lea eax, [esp + 0x18]
push 0
push eax
call fcn.10051b60
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x10], 0x9c
push eax
call esi
test eax, eax
jne 0x100068c4
push 0x98
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.10051b60
add esp, 0xc
mov dword [esp + 0x10], 0x94
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x10006beb
cmp dword [esp + 0x20], 2
jne 0x10006beb
cmp dword [esp + 0x14], 6
ja 0x100068e7
jne 0x100069da
cmp dword [esp + 0x18], 2
jb 0x100069e5
push 1
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov esi, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0xc], edx
cmp esi, 9
ja 0x100069da
mov edi, dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
nop
push 0x94
lea eax, [esp + 0xbc]
push 0
push eax
call fcn.10051b60
add esp, 0xc
mov dword [esp + 0xb0], 0x9c
lea eax, [esp + 0xb0]
mov dword [esp + 0xb4], esi
push dword [esp + 0xc]
push ebx
push 2
push eax
call edi
test eax, eax
jne 0x10006959
inc esi
cmp esi, 9
jbe 0x10006910
jmp 0x100069da
cmp dword [esp + 0x14], esi
jae 0x1000696b
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
push 1
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov esi, dword [esp + 0x18]
mov ebx, eax
mov dword [esp + 0xc], edx
cmp esi, 9
ja 0x100069da
nop dword [eax + eax]
push 0x9c
lea eax, [esp + 0xb4]
push 0
push eax
call fcn.10051b60
add esp, 0xc
mov dword [esp + 0xb0], 0x9c
lea eax, [esp + 0xb0]
mov dword [esp + 0xb8], esi
push dword [esp + 0xc]
push ebx
push 1
push eax
call edi
test eax, eax
jne 0x100069d6
inc esi
cmp esi, 9
jbe 0x10006990
jmp 0x100069da
mov dword [esp + 0x18], esi
cmp dword [esp + 0x14], 0xf
ja 0x10006beb
mov eax, dword [esp + 0x18]
cmp eax, 0xf
ja 0x10006beb
cmp byte [esp + 0xaa], 1
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
setbe dl
shl ecx, 4
or ecx, eax
lea eax, [ecx - 0x50]
cmp eax, 0x60
ja case.0x10006a1d.83
movzx eax, byte [eax + 0x10006c2c]
jmp dword [eax*4 + 0x10006c04]
mov edi, 1
mov esi, str.2000
jmp 0x10006b09
mov edi, 2
mov esi, 0x10092ef8
jmp 0x10006b09
mov edi, 3
mov esi, str.2003
jmp 0x10006b09
test dl, dl
mov esi, str.Vista
mov eax, str.2008
mov edi, 4
cmove esi, eax
jmp 0x10006b09
test dl, dl
mov esi, 0x10092f14
mov eax, str.2008_R2
mov edi, 5
cmove esi, eax
jmp 0x10006b09
test dl, dl
mov esi, 0x10092f20
mov eax, str.2012
mov edi, 6
cmove esi, eax
jmp 0x10006af9
test dl, dl
mov esi, 0x10092f2c
mov eax, str.2012_R2
mov edi, 7
cmove esi, eax
jmp 0x10006b09
test dl, dl
mov esi, 0x10092f38
mov eax, str.2016
mov edi, 8
cmove esi, eax
cmp ebx, 0x4e20
jb 0x10006af4
test dl, dl
mov esi, 0x10092f44
mov eax, str.2022
mov edi, 9
cmove esi, eax
jmp 0x10006af4
cmp ecx, 0x50
jb 0x10006beb
mov edi, 0xa
mov esi, str.12_or_later
cmp ecx, 0x62
jne 0x10006b09
cmp ebx, 0x23f0
mov eax, str.8__or_later_
cmovne eax, esi
mov esi, eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [esp + 0xc], 0
mov ecx, str.32_bit
mov eax, str.64_bit
cmove eax, ecx
mov cx, word [esp + 0xa6]
push eax
test cx, cx
je 0x10006b7e
movzx eax, cx
push eax
movzx eax, word [esp + 0xac]
push eax
push esi
push str.Windows__s_SP_u._u__s
push str.get_windows_version
push 4
push 0
call fcn.10006120
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.100503ce
mov esp, ebp
pop ebp
ret
mov cx, word [esp + 0xa8]
test cx, cx
je 0x10006bbd
movzx eax, cx
push eax
push esi
push str.Windows__s_SP_u__s
push str.get_windows_version
push 4
push 0
call fcn.10006120
add esp, 0x1c
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.100503ce
mov esp, ebp
pop ebp
ret
push esi
push str.Windows__s__s
push str.get_windows_version
push 4
push 0
call fcn.10006120
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.100503ce
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x154]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100503ce
mov esp, ebp
pop ebp
ret