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

Disassembly:
push 0x150
mov eax, 0x55e9e8
call fcn.00539a44
and dword [ebx], 0
push 3
pop edi
mov dword [ebp - 0x138], ebx
mov dword [ebx + 0x1c], edi
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 0x406e64
and dword [ebp - 0x130], 0
lea ecx, [ebp - 0x130]
push ecx
push esi
call eax
test eax, eax
jne 0x406e59
push 2
pop eax
jmp 0x406e64
xor eax, eax
cmp dword [ebp - 0x130], eax
setne al
lea esi, [ebx + 0x2c]
mov dword [ebx + 0x28], eax
call fcn.004031c3
xor esi, esi
push 0x118
lea eax, [ebp - 0x128]
push esi
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x12c], 0x11c
call fcn.00537010
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [ebp - 0x120]
mov eax, dword [ebp - 0x128]
mov edx, dword [ebp - 0x124]
push 5
mov dword [ebx + 0xc], ecx
pop ecx
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
cmp eax, ecx
jne 0x406ed3
cmp edx, esi
jle 0x406f0e
xor eax, eax
cmp edx, 1
setne al
inc eax
mov dword [ebx], eax
jmp 0x406f0e
cmp eax, 6
jne 0x406ef6
sub edx, esi
je 0x406ef2
dec edx
je 0x406eea
dec edx
je 0x406ee6
mov dword [ebx], eax
jmp 0x406f0e
mov dword [ebx], ecx
jmp 0x406f0e
mov dword [ebx], 4
jmp 0x406f0e
mov dword [ebx], edi
jmp 0x406f0e
cmp eax, 0xa
jne 0x406f03
mov dword [ebx], 7
jmp 0x406f0e
cmp eax, 6
jle 0x406f0e
mov dword [ebx], 8
movzx eax, word [ebp - 0x18]
mov dword [ebx + 0x14], eax
movzx eax, word [ebp - 0x16]
push 8
mov dword [ebx + 0x18], eax
pop ecx
xor eax, eax
mov dword [ebp - 0x15c], esi
lea edi, [ebp - 0x158]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x15c]
xor esi, esi
cmp eax, esi
je 0x406f65
cmp eax, 6
je 0x406f5c
cmp eax, 9
jne 0x406f68
mov dword [ebx + 0x1c], 1
jmp 0x406f68
mov dword [ebx + 0x1c], 2
jmp 0x406f68
mov dword [ebx + 0x1c], esi
cmp dword [ebp - 0x128], 6
mov eax, dword [ebp - 0x148]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x140]
mov dword [ebx + 0x24], eax
je 0x406fda
cmp dword [ebp - 0x128], 0xa
je 0x406fda
cmp dword [ebp - 0x128], 5
jne case.0x40701b.2
push 2
pop eax
cmp dword [ebp - 0x124], eax
jne 0x406fbf
cmp byte [ebp - 0x12], 1
jne 0x406fb4
cmp word [ebp - 0x15c], 9
je case.0x40701b.1
cmp word [ebp - 0x14], si
jne case.0x40701b.2
mov dword [ebx + 0x10], eax
jmp 0x407037
cmp dword [ebp - 0x124], 1
jne case.0x40701b.2
mov ax, word [ebp - 0x14]
not ax
movzx eax, ax
shr eax, 9
and eax, 1
jmp 0x406fba
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 - 0x134]
push ecx
push esi
push esi
push dword [ebp - 0x124]
push dword [ebp - 0x128]
call eax
mov eax, dword [ebp - 0x134]
dec eax
cmp eax, 0x18
ja case.0x40701b.2
movzx eax, byte [eax + 0x40704e]
jmp dword [eax*4 + 0x407042]
mov dword [ebx + 0x10], 2
jmp 0x407037
mov dword [ebx + 0x10], 1
jmp 0x407037
mov dword [ebx + 0x10], esi
mov eax, ebx
call fcn.00539ac7
ret