Function at 0x10001ef0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001874a
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x10021008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0x158], 0
cmp byte [0x1007cf8e], 0
jne 0x10002111
lea eax, [ebp - 0x150]
mov dword [ebp - 0x150], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x10001fa5
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10001f9e
lea ecx, [ebp - 0x144]
push ecx
lea ecx, [ebp - 0x148]
push ecx
lea ecx, [ebp - 0x14c]
push ecx
call eax
movzx eax, word [ebp - 0x144]
mov dword [ebp - 0x144], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x100
push 0
push 0x1007e210
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x14c]
add esp, 0xc
mov eax, ecx
sub eax, 4
je 0x10002091
sub eax, 1
je 0x10002067
sub eax, 1
je 0x10001ffc
push dword [ebp - 0x144]
push ecx
push str.Microsoft_Windows__d_Build__d
push 0x1007e210
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, 0x1007e210
jmp 0x100020dc
mov eax, dword [ebp - 0x148]
cmp eax, 3
ja case.default.0x1000200b
jmp dword [eax*4 + 0x100021f0]
cmp byte [ebp - 0x36], 1
mov ecx, str.Windows_Vista
mov eax, str.Windows_Server_2008
cmovne ecx, eax
jmp 0x100020dc
cmp byte [ebp - 0x36], 1
mov ecx, str.Windows_7
mov eax, str.Windows_Server_2008_R2
cmovne ecx, eax
jmp 0x100020dc
cmp byte [ebp - 0x36], 1
mov ecx, str.Windows_8
mov eax, str.Windows_Server_2012
cmovne ecx, eax
jmp 0x100020dc
cmp byte [ebp - 0x36], 1
mov ecx, str.Windows_8.1
mov eax, str.Windows_Server_2012_R2
cmovne ecx, eax
jmp 0x100020dc
mov eax, dword [ebp - 0x148]
sub eax, 0
je 0x1000208a
sub eax, 1
je 0x10002083
sub eax, 1
jne case.default.0x1000200b
mov ecx, str.Windows_Server_2003
jmp 0x100020dc
mov ecx, str.Windows_XP
jmp 0x100020dc
mov ecx, str.Windows_2000
jmp 0x100020dc
mov eax, dword [ebp - 0x148]
test eax, eax
je 0x100020bb
cmp eax, 0xa
je 0x100020b4
cmp eax, 0x5a
jne case.default.0x1000200b
mov ecx, str.Windows_Me
jmp 0x100020dc
mov ecx, dword [ebp - 0x154]
jmp 0x100020dc
mov ecx, str.Windows_98
jmp 0x100020dc
mov eax, dword [ebp - 0x140]
cmp eax, 2
jne 0x100020cd
mov ecx, str.Windows_NT_4.0
jmp 0x100020dc
cmp eax, 1
mov ecx, str.Windows_95
cmovne ecx, dword [ebp - 0x154]
mov edx, ecx
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100020f4
sub edx, edi
sar edx, 1
push edx
push ecx
mov ecx, esi
call fcn.10007570
jmp 0x100021d1
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 1
call fcn.10001d20
lea ecx, [ebp - 0x30]
call fcn.10001a80
cmp dword [ebp - 0x18], 0
jne 0x1000215f
push 7
push str.Unknown
lea ecx, [ebp - 0x28]
call fcn.10007570
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10007760
mov dword [ebp - 0x158], 1
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10002188
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x10002195
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100021d1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100021c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100021c7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100174a3
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10016f21
mov esp, ebp
pop ebp
ret