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

Disassembly:
push 0x164
mov eax, 0x42ea2e
call fcn.0041033f
mov ebx, ecx
mov dword [ebp - 0x138], ebx
xor eax, eax
mov dword [ebp - 0x148], ebx
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov byte [ebx + 8], al
mov dword [ebx + 0x24], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push 0x43c114
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e2c7
and dword [ebp - 0x134], 0
lea ecx, [ebp - 0x134]
push ecx
push esi
call eax
test eax, eax
jne 0x40e2bc
push 2
pop eax
jmp 0x40e2c7
xor eax, eax
cmp dword [ebp - 0x134], eax
setne al
mov dword [ebx + 0x30], eax
lea eax, [ebx + 0x34]
and dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
cmp dword [eax + 0x14], 0x10
jb 0x40e2e0
mov eax, dword [eax]
mov byte [eax], 0
and dword [ebp - 4], 0
lea esi, [ebp - 0x144]
and dword [ebp - 0x144], 0
lea edi, [ebx + 0xc]
and dword [ebp - 0x140], 0
lea ecx, [ebx + 0xc]
and dword [ebp - 0x13c], 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040e0ef
push 0x118
mov dword [ebx], eax
xor esi, esi
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x130], 0x11c
push esi
push eax
call fcn.00412c90
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebx + 0xc], esi
jne 0x40e360
mov eax, dword [ebp - 0x12c]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x128]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x124]
mov dword [ebx + 0x14], eax
movzx eax, word [ebp - 0x1c]
lea edi, [ebp - 0x16c]
mov dword [ebx + 0x1c], eax
movzx eax, word [ebp - 0x1a]
mov dword [ebx + 0x20], eax
push 9
pop eax
mov ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov cx, word [ebp - 0x16c]
xor edi, edi
movzx eax, cx
inc edi
push 9
pop edx
test eax, eax
je 0x40e3b5
cmp eax, 6
je 0x40e3ac
cmp eax, edx
jne 0x40e3b8
mov dword [ebx + 0x24], edi
jmp 0x40e3b8
mov dword [ebx + 0x24], 2
jmp 0x40e3b8
mov dword [ebx + 0x24], esi
cmp dword [ebp - 0x12c], 6
mov eax, dword [ebp - 0x158]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x150]
mov dword [ebx + 0x2c], eax
je 0x40e42f
cmp dword [ebp - 0x12c], 0xa
je 0x40e42f
cmp dword [ebp - 0x12c], 5
jne 0x40e482
cmp dword [ebp - 0x128], 2
jne 0x40e416
cmp byte [ebp - 0x16], 1
jne 0x40e401
cmp cx, dx
je 0x40e4a1
mov ax, word [ebp - 0x18]
not ax
movzx eax, ax
shr eax, 0xe
and eax, 2
mov dword [ebx + 0x18], eax
jmp 0x40e485
cmp dword [ebp - 0x128], edi
jne 0x40e482
mov ax, word [ebp - 0x18]
not ax
movzx eax, ax
shr eax, 9
and eax, edi
jmp 0x40e411
push str.GetProductInfo
push 0x43c114
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x138]
push ecx
push esi
push esi
push dword [ebp - 0x128]
push dword [ebp - 0x12c]
call eax
mov eax, dword [ebp - 0x138]
cmp eax, 0xf
ja 0x40e48d
cmp eax, 0xc
jae 0x40e4a6
cmp eax, edi
je 0x40e4a1
cmp eax, 4
je 0x40e4a1
cmp eax, 6
je 0x40e4a1
jbe 0x40e482
cmp eax, 0xa
jbe 0x40e4a6
mov dword [ebx + 0x18], esi
mov eax, ebx
call fcn.004102e9
ret
cmp eax, 0x11
jb 0x40e482
cmp eax, 0x12
jbe 0x40e4a6
cmp eax, 0x19
je 0x40e4a6
cmp eax, 0x30
jne 0x40e482
mov dword [ebx + 0x18], edi
jmp 0x40e485
mov dword [ebx + 0x18], 2
jmp 0x40e485