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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x550070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
push str.RtlGetVersion
push 0x5127b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x128], eax
xor eax, eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
push 0x11c
push 0
lea ecx, [ebp - 0x120]
push ecx
call fcn.004d43c0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
cmp dword [ebp - 0x128], 0
je 0x40e922
lea edx, [ebp - 0x120]
push edx
call dword [ebp - 0x128]
test eax, eax
jl 0x40e922
mov dword [ebp - 0x12c], 1
cmp dword [ebp - 0x12c], 0
jne 0x40e943
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40e943
xor eax, eax
jmp 0x40ec0a
cmp dword [ebp + 0x14], 0
je 0x40e959
mov ecx, 0x47
lea esi, [ebp - 0x120]
mov edi, dword [ebp + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp dword [ebp - 0x148], 0x21d8
jne 0x40e97e
mov dword [ebp - 0x130], 1
jmp 0x40e988
mov dword [ebp - 0x130], 0
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x134], 0
movzx eax, word [ebp - 0xc]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x110], 2
jne 0x40eb72
cmp dword [ebp - 0x11c], 0xa
jne 0x40ea0d
cmp dword [ebp - 0x118], 0
jne 0x40ea08
cmp dword [ebp - 0x114], 0x55f0
jb 0x40e9e9
mov dword [ebp - 0x124], 0x13
jmp 0x40ea08
movzx ecx, byte [ebp - 6]
cmp ecx, 1
jne 0x40e9fe
mov dword [ebp - 0x124], 0x11
jmp 0x40ea08
mov dword [ebp - 0x124], 0x12
jmp 0x40eb70
cmp dword [ebp - 0x11c], 6
jne 0x40eac5
cmp dword [ebp - 0x118], 3
jne 0x40ea44
movzx edx, byte [ebp - 6]
cmp edx, 1
jne 0x40ea38
mov dword [ebp - 0x124], 0xf
jmp 0x40ea42
mov dword [ebp - 0x124], 0x10
jmp 0x40eac0
cmp dword [ebp - 0x118], 2
jne 0x40ea6e
movzx eax, byte [ebp - 6]
cmp eax, 1
jne 0x40ea62
mov dword [ebp - 0x124], 0xd
jmp 0x40ea6c
mov dword [ebp - 0x124], 0xe
jmp 0x40eac0
cmp dword [ebp - 0x118], 1
jne 0x40ea98
movzx ecx, byte [ebp - 6]
cmp ecx, 1
jne 0x40ea8c
mov dword [ebp - 0x124], 0xb
jmp 0x40ea96
mov dword [ebp - 0x124], 0xc
jmp 0x40eac0
cmp dword [ebp - 0x118], 0
jne 0x40eac0
movzx edx, byte [ebp - 6]
cmp edx, 1
jne 0x40eab6
mov dword [ebp - 0x124], 9
jmp 0x40eac0
mov dword [ebp - 0x124], 0xa
jmp 0x40eb70
cmp dword [ebp - 0x11c], 5
jne 0x40eb5d
cmp dword [ebp - 0x118], 2
jne 0x40eb20
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40eaf3
mov dword [ebp - 0x124], 8
jmp 0x40eb1e
movzx eax, byte [ebp - 6]
cmp eax, 1
jne 0x40eb14
movzx ecx, word [ebp - 0x160]
cmp ecx, 9
jne 0x40eb14
mov dword [ebp - 0x124], 6
jmp 0x40eb1e
mov dword [ebp - 0x124], 7
jmp 0x40eb5b
cmp dword [ebp - 0x118], 1
jne 0x40eb48
mov dword [ebp - 0x124], 6
movzx edx, word [ebp - 8]
and edx, 0x40
je 0x40eb46
mov dword [ebp - 0x134], 1
jmp 0x40eb5b
cmp dword [ebp - 0x118], 0
jne 0x40eb5b
mov dword [ebp - 0x124], 5
jmp 0x40eb70
cmp dword [ebp - 0x11c], 4
ja 0x40eb70
mov dword [ebp - 0x124], 4
jmp 0x40ebc1
cmp dword [ebp - 0x110], 1
jne 0x40ebc1
cmp dword [ebp - 0x11c], 4
jne 0x40ebc1
cmp dword [ebp - 0x118], 0
jne 0x40eb99
mov dword [ebp - 0x124], 1
jmp 0x40ebc1
cmp dword [ebp - 0x118], 0xa
jne 0x40ebae
mov dword [ebp - 0x124], 2
jmp 0x40ebc1
cmp dword [ebp - 0x118], 0x5a
jne 0x40ebc1
mov dword [ebp - 0x124], 3
cmp dword [ebp + 8], 0
je 0x40ebd2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x124]
mov dword [eax], ecx
cmp dword [ebp + 0xc], 0
je 0x40ebe3
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x138]
mov dword [edx], eax
cmp dword [ebp + 0x10], 0
je 0x40ebf4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x13c]
mov dword [ecx], edx
cmp dword [ebp + 0x18], 0
je 0x40ec05
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x134]
mov dword [eax], ecx
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d181f
mov esp, ebp
pop ebp
ret