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

Disassembly:
push 0x150
mov eax, 0x428c28
call fcn.00411ec3
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x138], esi
push 3
pop ebx
mov dword [esi], eax
mov dword [esi + 4], eax
mov byte [esi + 8], al
mov dword [esi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push 0x43046c
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cafa
and dword [ebp - 0x130], 0
lea ecx, [ebp - 0x130]
push ecx
push edi
call eax
test eax, eax
jne 0x40caef
push 2
pop eax
jmp 0x40cafa
xor eax, eax
cmp dword [ebp - 0x130], eax
setne al
mov dword [esi + 0x30], eax
xor eax, eax
mov dword [esi + 0x48], 0xf
mov dword [esi + 0x44], eax
mov byte [esi + 0x34], al
push 0x118
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x12c], 0x11c
push eax
call fcn.00413f70
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x124]
mov edx, dword [ebp - 0x120]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
push 9
pop edi
cmp ecx, 5
jne 0x40cb6d
test eax, eax
jle 0x40cba7
xor ebx, ebx
cmp eax, 1
setne bl
inc ebx
jmp 0x40cba9
cmp ecx, 6
jne 0x40cb89
sub eax, 0
je 0x40cba9
dec eax
je 0x40cb84
dec eax
je 0x40cb80
push ecx
jmp 0x40cb86
push 5
jmp 0x40cb86
push 4
pop ebx
jmp 0x40cba9
cmp ecx, 0xa
jne 0x40cb9e
xor ebx, ebx
cmp edx, 0x295a
setge bl
add ebx, 7
jmp 0x40cba9
cmp ecx, 6
jle 0x40cba7
mov ebx, edi
jmp 0x40cba9
xor ebx, ebx
movzx eax, word [ebp - 0x18]
mov ecx, edi
mov dword [esi + 0x1c], eax
lea edi, [ebp - 0x15c]
movzx eax, word [ebp - 0x16]
mov dword [esi + 0x20], eax
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x15c]
mov dword [esi], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov cx, word [ebp - 0x15c]
movzx eax, cx
push 9
pop edx
test eax, eax
je 0x40cbfe
cmp eax, 6
je 0x40cbf5
cmp eax, edx
jne 0x40cc02
mov dword [esi + 0x24], 1
jmp 0x40cc02
mov dword [esi + 0x24], 2
jmp 0x40cc02
and dword [esi + 0x24], 0
cmp dword [ebp - 0x128], 6
mov eax, dword [ebp - 0x148]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x140]
mov dword [esi + 0x2c], eax
je 0x40cc7b
cmp dword [ebp - 0x128], 0xa
je 0x40cc7b
cmp dword [ebp - 0x128], 5
jne 0x40ccd1
cmp dword [ebp - 0x124], 2
jne 0x40cc60
cmp byte [ebp - 0x12], 1
jne 0x40cc4b
cmp cx, dx
je 0x40ccf1
mov ax, word [ebp - 0x14]
not ax
movzx eax, ax
shr eax, 0xe
and eax, 2
mov dword [esi + 0x18], eax
jmp 0x40ccd5
cmp dword [ebp - 0x124], 1
jne 0x40ccd1
mov ax, word [ebp - 0x14]
not ax
movzx eax, ax
shr eax, 9
and eax, 1
jmp 0x40cc5b
push str.GetProductInfo
push 0x43046c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x134]
push ecx
push 0
push 0
push dword [ebp - 0x124]
push dword [ebp - 0x128]
call eax
mov eax, dword [ebp - 0x134]
cmp eax, 0xf
ja 0x40ccdd
cmp eax, 0xc
jae 0x40ccfa
cmp eax, 1
je 0x40ccf1
cmp eax, 4
je 0x40ccf1
cmp eax, 6
je 0x40ccf1
jbe 0x40ccd1
cmp eax, 0xa
jbe 0x40ccfa
and dword [esi + 0x18], 0
mov eax, esi
call fcn.00411e72
ret
cmp eax, 0x11
jb 0x40ccd1
cmp eax, 0x12
jbe 0x40ccfa
cmp eax, 0x19
je 0x40ccfa
cmp eax, 0x30
jne 0x40ccd1
mov dword [esi + 0x18], 1
jmp 0x40ccd5
mov dword [esi + 0x18], 2
jmp 0x40ccd5