Function at 0x10002590
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10045d4a
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x1005e068]
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 [0x10115f66], 0
jne 0x100027b1
lea eax, [ebp - 0x150]
mov dword [ebp - 0x150], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x10055bbc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x10002645
push 0x10055bd0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000263e
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 0x10117220
call fcn.10022540
mov ecx, dword [ebp - 0x14c]
add esp, 0xc
mov eax, ecx
sub eax, 4
je 0x10002731
sub eax, 1
je 0x10002707
sub eax, 1
je 0x1000269c
push dword [ebp - 0x144]
push ecx
push str.Microsoft_Windows__d_Build__d
push 0x10117220
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, 0x10117220
jmp 0x1000277c
mov eax, dword [ebp - 0x148]
cmp eax, 3
ja case.default.0x100026ab
jmp dword [eax*4 + 0x10002890]
cmp byte [ebp - 0x36], 1
mov ecx, str.Windows_Vista
mov eax, str.Windows_Server_2008
cmovne ecx, eax
jmp 0x1000277c
cmp byte [ebp - 0x36], 1
mov ecx, str.Windows_7
mov eax, str.Windows_Server_2008_R2
cmovne ecx, eax
jmp 0x1000277c
cmp byte [ebp - 0x36], 1
mov ecx, str.Windows_8
mov eax, str.Windows_Server_2012
cmovne ecx, eax
jmp 0x1000277c
cmp byte [ebp - 0x36], 1
mov ecx, str.Windows_8.1
mov eax, str.Windows_Server_2012_R2
cmovne ecx, eax
jmp 0x1000277c
mov eax, dword [ebp - 0x148]
sub eax, 0
je 0x1000272a
sub eax, 1
je 0x10002723
sub eax, 1
jne case.default.0x100026ab
mov ecx, str.Windows_Server_2003
jmp 0x1000277c
mov ecx, str.Windows_XP
jmp 0x1000277c
mov ecx, str.Windows_2000
jmp 0x1000277c
mov eax, dword [ebp - 0x148]
test eax, eax
je 0x1000275b
cmp eax, 0xa
je 0x10002754
cmp eax, 0x5a
jne case.default.0x100026ab
mov ecx, str.Windows_Me
jmp 0x1000277c
mov ecx, dword [ebp - 0x154]
jmp 0x1000277c
mov ecx, str.Windows_98
jmp 0x1000277c
mov eax, dword [ebp - 0x140]
cmp eax, 2
jne 0x1000276d
mov ecx, str.Windows_NT_4.0
jmp 0x1000277c
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 0x10002794
sub edx, edi
sar edx, 1
push edx
push ecx
mov ecx, esi
call fcn.10001a40
jmp 0x1000286b
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.100023d0
lea ecx, [ebp - 0x30]
call fcn.10002130
cmp dword [ebp - 0x18], 0
jne 0x100027ff
push 7
push str.Unknown
lea ecx, [ebp - 0x28]
call fcn.10001a40
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.100071f0
mov dword [ebp - 0x158], 1
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10002828
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x10002835
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1000286b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10002861
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002888
push edx
push ecx
call fcn.1001f82e
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.1001f7ed
mov esp, ebp
pop ebp
ret
call fcn.10027d53
nop dword [eax]
mov dl, 0x26
add byte [eax], dl
enter 0x26, 0x10
fisub word [esi]
add byte [eax], dl
hlt