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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55483e
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x274], edi
mov dword [edi], 0
mov dword [edi + 0x1c], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push 0x569a5c
mov dword [ebp - 0x270], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40a55c
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x270]
mov ecx, esi
call dword [0x5677a4]
call esi
test eax, eax
jne 0x40a554
mov eax, 2
jmp 0x40a55c
xor eax, eax
cmp dword [ebp - 0x14], eax
setne al
mov dword [edi + 0x28], eax
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0xf
mov byte [edi + 0x2c], 0
push 0x118
lea eax, [ebp - 0x154]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x158], 0x11c
call fcn.005290f0
add esp, 0xc
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x150]
mov edx, dword [ebp - 0x14c]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
cmp eax, 5
jne 0x40a5da
test ecx, ecx
jle 0x40a653
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [edi], eax
jmp 0x40a653
cmp eax, 6
jne 0x40a60a
sub ecx, 0
je 0x40a602
sub ecx, 1
je 0x40a5fa
sub ecx, 1
je 0x40a5f2
mov dword [edi], eax
jmp 0x40a653
mov dword [edi], 5
jmp 0x40a653
mov dword [edi], 4
jmp 0x40a653
mov dword [edi], 3
jmp 0x40a653
cmp eax, 0xa
jne 0x40a641
cmp edx, 0x295a
jge 0x40a61f
mov dword [edi], 7
jmp 0x40a653
cmp edx, 0x3839
jge 0x40a62f
mov dword [edi], 8
jmp 0x40a653
xor eax, eax
cmp edx, 0x3ad7
setge al
add eax, 9
mov dword [edi], eax
jmp 0x40a653
cmp eax, 6
jle 0x40a653
mov dword [ebp - 4], 0
mov dword [edi], 0xb
movzx eax, word [ebp - 0x44]
mov dword [edi + 0x14], eax
movzx eax, word [ebp - 0x42]
mov dword [edi + 0x18], eax
mov eax, dword [edi]
cmp eax, 5
je 0x40a671
cmp eax, 6
jne 0x40a714
push str.RtlGetVersion
push 0x56b928
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40a714
push 0x114
lea eax, [ebp - 0x26c]
push 0
push eax
call fcn.005290f0
add esp, 0xc
mov dword [ebp - 0x26c], 0x114
lea eax, [ebp - 0x26c]
mov ecx, esi
push eax
call dword [0x5677a4]
call esi
test eax, eax
js 0x40a714
mov eax, dword [ebp - 0x268]
cmp eax, 6
jne 0x40a6df
cmp dword [ebp - 0x264], 3
jb 0x40a714
mov dword [edi], eax
jmp 0x40a714
cmp eax, 0xa
jne 0x40a714
mov eax, dword [ebp - 0x260]
cmp eax, 0x295a
jae 0x40a6f9
mov dword [edi], 7
jmp 0x40a714
cmp eax, 0x3839
jae 0x40a708
mov dword [edi], 8
jmp 0x40a714
cmp eax, 0x3ad7
sbb eax, eax
add eax, 0xa
mov dword [edi], eax
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x3c]
push eax
movups xmmword [ebp - 0x3c], xmm0
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov dx, word [ebp - 0x3c]
movzx eax, dx
test eax, eax
je 0x40a757
cmp eax, 6
je 0x40a74e
cmp eax, 9
jne 0x40a75e
mov dword [edi + 0x1c], 1
jmp 0x40a75e
mov dword [edi + 0x1c], 2
jmp 0x40a75e
mov dword [edi + 0x1c], 0
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x154]
cmp eax, 6
je 0x40a7ca
cmp eax, 0xa
je 0x40a7ca
cmp eax, 5
jne case.0x40a811.2
mov ecx, dword [ebp - 0x150]
cmp ecx, 2
jne 0x40a7b6
cmp byte [ebp - 0x3e], 1
jne 0x40a7a6
cmp dx, 9
jne 0x40a7a6
mov dword [edi + 0x10], 1
jmp 0x40a828
mov eax, dword [ebp - 0x40]
shr eax, 0xe
not eax
and eax, 2
mov dword [edi + 0x10], eax
jmp 0x40a828
cmp ecx, 1
jne case.0x40a811.2
mov eax, dword [ebp - 0x40]
not eax
shr eax, 9
and eax, ecx
mov dword [edi + 0x10], eax
jmp 0x40a828
push str.GetProductInfo
push 0x569a5c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [ebp - 0x150]
mov ecx, esi
push dword [ebp - 0x154]
call dword [0x5677a4]
call esi
mov eax, dword [ebp - 0x18]
dec eax
cmp eax, 0x2f
ja case.0x40a811.2
movzx eax, byte [eax + 0x40a854]
jmp dword [eax*4 + 0x40a848]
mov dword [edi + 0x10], 2
jmp 0x40a828
mov dword [edi + 0x10], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret