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

Disassembly:
push 0x164
mov eax, 0x42fe64
call fcn.00410517
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 0x43d1a8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e4a1
and dword [ebp - 0x134], 0
lea ecx, [ebp - 0x134]
push ecx
push esi
call eax
test eax, eax
jne 0x40e496
push 2
pop eax
jmp 0x40e4a1
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 0x40e4ba
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.0040e2c9
push 0x118
mov dword [ebx], eax
xor esi, esi
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x130], 0x11c
push esi
push eax
call fcn.00412e60
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebx + 0xc], esi
jne 0x40e53a
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 0x40e58f
cmp eax, 6
je 0x40e586
cmp eax, edx
jne 0x40e592
mov dword [ebx + 0x24], edi
jmp 0x40e592
mov dword [ebx + 0x24], 2
jmp 0x40e592
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 0x40e609
cmp dword [ebp - 0x12c], 0xa
je 0x40e609
cmp dword [ebp - 0x12c], 5
jne 0x40e65c
cmp dword [ebp - 0x128], 2
jne 0x40e5f0
cmp byte [ebp - 0x16], 1
jne 0x40e5db
cmp cx, dx
je 0x40e67b
mov ax, word [ebp - 0x18]
not ax
movzx eax, ax
shr eax, 0xe
and eax, 2
mov dword [ebx + 0x18], eax
jmp 0x40e65f
cmp dword [ebp - 0x128], edi
jne 0x40e65c
mov ax, word [ebp - 0x18]
not ax
movzx eax, ax
shr eax, 9
and eax, edi
jmp 0x40e5eb
push str.GetProductInfo
push 0x43d1a8
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 0x40e667
cmp eax, 0xc
jae 0x40e680
cmp eax, edi
je 0x40e67b
cmp eax, 4
je 0x40e67b
cmp eax, 6
je 0x40e67b
jbe 0x40e65c
cmp eax, 0xa
jbe 0x40e680
mov dword [ebx + 0x18], esi
mov eax, ebx
call fcn.004104c1
ret
cmp eax, 0x11
jb 0x40e65c
cmp eax, 0x12
jbe 0x40e680
cmp eax, 0x19
je 0x40e680
cmp eax, 0x30
jne 0x40e65c
mov dword [ebx + 0x18], edi
jmp 0x40e65f
mov dword [ebx + 0x18], 2
jmp 0x40e65f