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

Disassembly:
push 0x164
mov eax, 0x42fe84
call fcn.00410531
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 0x43d1ac
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e4b9
and dword [ebp - 0x134], 0
lea ecx, [ebp - 0x134]
push ecx
push esi
call eax
test eax, eax
jne 0x40e4ae
push 2
pop eax
jmp 0x40e4b9
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 0x40e4d2
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.0040e2e1
push 0x118
mov dword [ebx], eax
xor esi, esi
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x130], 0x11c
push esi
push eax
call fcn.00412e40
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebx + 0xc], esi
jne 0x40e552
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 0x40e5a7
cmp eax, 6
je 0x40e59e
cmp eax, edx
jne 0x40e5aa
mov dword [ebx + 0x24], edi
jmp 0x40e5aa
mov dword [ebx + 0x24], 2
jmp 0x40e5aa
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 0x40e621
cmp dword [ebp - 0x12c], 0xa
je 0x40e621
cmp dword [ebp - 0x12c], 5
jne 0x40e674
cmp dword [ebp - 0x128], 2
jne 0x40e608
cmp byte [ebp - 0x16], 1
jne 0x40e5f3
cmp cx, dx
je 0x40e693
mov ax, word [ebp - 0x18]
not ax
movzx eax, ax
shr eax, 0xe
and eax, 2
mov dword [ebx + 0x18], eax
jmp 0x40e677
cmp dword [ebp - 0x128], edi
jne 0x40e674
mov ax, word [ebp - 0x18]
not ax
movzx eax, ax
shr eax, 9
and eax, edi
jmp 0x40e603
push str.GetProductInfo
push 0x43d1ac
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 0x40e67f
cmp eax, 0xc
jae 0x40e698
cmp eax, edi
je 0x40e693
cmp eax, 4
je 0x40e693
cmp eax, 6
je 0x40e693
jbe 0x40e674
cmp eax, 0xa
jbe 0x40e698
mov dword [ebx + 0x18], esi
mov eax, ebx
call fcn.004104db
ret
cmp eax, 0x11
jb 0x40e674
cmp eax, 0x12
jbe 0x40e698
cmp eax, 0x19
je 0x40e698
cmp eax, 0x30
jne 0x40e674
mov dword [ebx + 0x18], edi
jmp 0x40e677
mov dword [ebx + 0x18], 2
jmp 0x40e677