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

Disassembly:
push 0x164
mov eax, 0x430f87
call fcn.0041129c
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 str.kernel32.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f0fe
and dword [ebp - 0x134], 0
lea ecx, [ebp - 0x134]
push ecx
push esi
call eax
test eax, eax
jne 0x40f0f3
push 2
pop eax
jmp 0x40f0fe
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 0x40f117
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.0040ef26
push pe_nt_image_headers32
mov dword [ebx], eax
xor esi, esi
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x130], 0x11c
push esi
push eax
call fcn.00413b90
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebx + 0xc], esi
jne 0x40f197
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 0x40f1ec
cmp eax, 6
je 0x40f1e3
cmp eax, edx
jne 0x40f1ef
mov dword [ebx + 0x24], edi
jmp 0x40f1ef
mov dword [ebx + 0x24], 2
jmp 0x40f1ef
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 0x40f266
cmp dword [ebp - 0x12c], 0xa
je 0x40f266
cmp dword [ebp - 0x12c], 5
jne 0x40f2b9
cmp dword [ebp - 0x128], 2
jne 0x40f24d
cmp byte [ebp - 0x16], 1
jne 0x40f238
cmp cx, dx
je 0x40f2d8
mov ax, word [ebp - 0x18]
not ax
movzx eax, ax
shr eax, 0xe
and eax, 2
mov dword [ebx + 0x18], eax
jmp 0x40f2bc
cmp dword [ebp - 0x128], edi
jne 0x40f2b9
mov ax, word [ebp - 0x18]
not ax
movzx eax, ax
shr eax, 9
and eax, edi
jmp 0x40f248
push str.GetProductInfo
push str.kernel32.dll
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 0x40f2c4
cmp eax, 0xc
jae 0x40f2dd
cmp eax, edi
je 0x40f2d8
cmp eax, 4
je 0x40f2d8
cmp eax, 6
je 0x40f2d8
jbe 0x40f2b9
cmp eax, 0xa
jbe 0x40f2dd
mov dword [ebx + 0x18], esi
mov eax, ebx
call fcn.00411246
ret
cmp eax, 0x11
jb 0x40f2b9
cmp eax, 0x12
jbe 0x40f2dd
cmp eax, 0x19
je 0x40f2dd
cmp eax, 0x30
jne 0x40f2b9
mov dword [ebx + 0x18], edi
jmp 0x40f2bc
mov dword [ebx + 0x18], 2
jmp 0x40f2bc