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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x5246f0]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x154], ecx
mov eax, dword [ebp - 0x154]
mov dword [eax], 0
mov ecx, dword [ebp - 0x154]
mov dword [ecx + 0x1c], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00411b40
add esp, 4
mov edx, dword [ebp - 0x154]
mov dword [edx + 0x28], eax
mov dword [ebp - 0x150], 0x11c
push 0x118
push 0
lea eax, [ebp - 0x14c]
push eax
call fcn.00463ac0
add esp, 0xc
lea ecx, [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x14c]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 0x148]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x144]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x154]
cmp dword [edx + 4], 5
jne 0x41186b
mov eax, dword [ebp - 0x154]
cmp dword [eax + 8], 0
jle 0x41186b
mov ecx, dword [ebp - 0x154]
xor edx, edx
cmp dword [ecx + 8], 1
setne dl
add edx, 1
mov eax, dword [ebp - 0x154]
mov dword [eax], edx
jmp 0x4118f6
mov ecx, dword [ebp - 0x154]
cmp dword [ecx + 4], 6
jne 0x4118c4
mov edx, dword [ebp - 0x154]
mov eax, dword [edx + 8]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
je 0x41189a
cmp dword [ebp - 0x158], 1
je 0x4118a8
jmp 0x4118b6
mov ecx, dword [ebp - 0x154]
mov dword [ecx], 3
jmp 0x4118c2
mov edx, dword [ebp - 0x154]
mov dword [edx], 4
jmp 0x4118c2
mov eax, dword [ebp - 0x154]
mov dword [eax], 5
jmp 0x4118f6
mov ecx, dword [ebp - 0x154]
cmp dword [ecx + 4], 0xa
jne 0x4118de
mov edx, dword [ebp - 0x154]
mov dword [edx], 7
jmp 0x4118f6
mov eax, dword [ebp - 0x154]
cmp dword [eax + 4], 6
jle 0x4118f6
mov ecx, dword [ebp - 0x154]
mov dword [ecx], 8
movzx edx, word [ebp - 0x3c]
mov eax, dword [ebp - 0x154]
mov dword [eax + 0x14], edx
movzx ecx, word [ebp - 0x3a]
mov edx, dword [ebp - 0x154]
mov dword [edx + 0x18], ecx
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx edx, word [ebp - 0x2c]
mov dword [ebp - 0x15c], edx
cmp dword [ebp - 0x15c], 0
je 0x411962
cmp dword [ebp - 0x15c], 6
je 0x411980
cmp dword [ebp - 0x15c], 9
je 0x411971
jmp 0x41198d
mov eax, dword [ebp - 0x154]
mov dword [eax + 0x1c], 0
jmp 0x41198d
mov ecx, dword [ebp - 0x154]
mov dword [ecx + 0x1c], 1
jmp 0x41198d
mov edx, dword [ebp - 0x154]
mov dword [edx + 0x1c], 2
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x24], eax
cmp dword [ebp - 0x14c], 6
jne 0x411a4a
push str.GetProductInfo
push 0x50c434
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x148]
push edx
mov eax, dword [ebp - 0x14c]
push eax
call dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x160], ecx
mov edx, dword [ebp - 0x160]
sub edx, 1
mov dword [ebp - 0x160], edx
cmp dword [ebp - 0x160], 0x2f
ja case.0x411a13.1
mov eax, dword [ebp - 0x160]
movzx ecx, byte [eax + 0x411b10]
jmp dword [ecx*4 + 0x411b04]
mov edx, dword [ebp - 0x154]
mov dword [edx + 0x10], 2
jmp 0x411a45
mov eax, dword [ebp - 0x154]
mov dword [eax + 0x10], 1
jmp 0x411a45
mov ecx, dword [ebp - 0x154]
mov dword [ecx + 0x10], 0
jmp 0x411af0
cmp dword [ebp - 0x14c], 5
jne 0x411aa7
cmp dword [ebp - 0x148], 2
jne 0x411aa7
movzx edx, byte [ebp - 0x36]
cmp edx, 1
jne 0x411a7d
movzx eax, word [ebp - 0x2c]
cmp eax, 9
jne 0x411a7d
mov ecx, dword [ebp - 0x154]
mov dword [ecx + 0x10], 1
jmp 0x411aa5
movzx edx, word [ebp - 0x38]
and edx, 0x8000
je 0x411a98
mov eax, dword [ebp - 0x154]
mov dword [eax + 0x10], 0
jmp 0x411aa5
mov ecx, dword [ebp - 0x154]
mov dword [ecx + 0x10], 2
jmp 0x411af0
cmp dword [ebp - 0x14c], 5
jne 0x411ae3
cmp dword [ebp - 0x148], 1
jne 0x411ae3
movzx edx, word [ebp - 0x38]
and edx, 0x200
je 0x411ad4
mov eax, dword [ebp - 0x154]
mov dword [eax + 0x10], 0
jmp 0x411ae1
mov ecx, dword [ebp - 0x154]
mov dword [ecx + 0x10], 1
jmp 0x411af0
mov edx, dword [ebp - 0x154]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0045f522
mov esp, ebp
pop ebp
ret