Function at 0x10008856
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x100af334]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0xc]
push str.RtlGetVersion
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0x10]
push str.ntdll.dll
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x128], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 9
mov dword [ebp - 0x124], eax
lea edi, [ebp - 0x158]
pop eax
mov ecx, eax
xor ebx, ebx
xor eax, eax
push 0x118
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.100631d0
mov eax, dword [ebp - 0x124]
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
test eax, eax
je 0x100088f4
lea ecx, [ebp - 0x120]
push ecx
call eax
test eax, eax
jns 0x10008909
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10008a96
test esi, esi
je 0x1000891e
mov edi, dword [ebp - 0x128]
lea esi, [ebp - 0x120]
push 0x47
pop ecx
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx esi, word [ebp - 0xc]
xor ecx, ecx
cmp dword [ebp - 0x140], 0x21d8
push 2
sete cl
pop edx
mov dword [ebp - 0x124], ecx
cmp dword [ebp - 0x110], edx
jne 0x10008a3c
mov eax, dword [ebp - 0x11c]
cmp eax, 0xa
jne 0x1000897b
cmp dword [ebp - 0x118], ebx
jne 0x10008a6f
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0x11
jmp 0x10008a6f
cmp eax, 6
jne 0x100089e1
mov eax, dword [ebp - 0x118]
cmp eax, 3
jne 0x1000899c
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0xf
jmp 0x10008a6f
cmp eax, edx
jne 0x100089b1
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0xd
jmp 0x10008a6f
cmp eax, 1
jne 0x100089c6
xor ebx, ebx
cmp byte [ebp - 6], al
setne bl
add ebx, 0xb
jmp 0x10008a6f
test eax, eax
jne 0x10008a6f
xor ebx, ebx
cmp byte [ebp - 6], 1
push 9
setne bl
pop eax
add ebx, eax
jmp 0x10008a6f
cmp eax, 5
jne 0x10008a32
mov eax, dword [ebp - 0x118]
cmp eax, edx
jne 0x10008a21
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x10008a00
push 8
jmp 0x10008a18
cmp byte [ebp - 6], 1
jne 0x10008a16
push 9
pop eax
cmp word [ebp - 0x158], ax
jne 0x10008a16
push 6
jmp 0x10008a18
push 7
mov ecx, dword [ebp - 0x124]
pop ebx
jmp 0x10008a6f
cmp eax, 1
jne 0x10008a2a
push 6
jmp 0x10008a39
test eax, eax
jne 0x10008a6f
push 5
jmp 0x10008a39
cmp eax, 4
ja 0x10008a6f
push 4
pop ebx
jmp 0x10008a6f
cmp dword [ebp - 0x110], 1
jne 0x10008a6f
cmp dword [ebp - 0x11c], 4
jne 0x10008a6f
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x10008a5d
xor ebx, ebx
inc ebx
jmp 0x10008a6f
cmp eax, 0xa
jne 0x10008a66
mov ebx, edx
jmp 0x10008a6f
push 3
cmp eax, 0x5a
pop edx
cmove ebx, edx
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x10008a7b
mov dword [eax], ebx
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x10008a87
mov dword [eax], esi
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x10008a93
mov dword [eax], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005fd1a
leave
ret