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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x43a660]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4358e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.RtlGetNtVersionNumbers
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebp - 0x128]
push ecx
call eax
mov eax, dword [ebp - 0x128]
cmp eax, 6
jne 0x40a84a
cmp dword [ebp - 0x124], 3
jne 0x40a85c
mov dword [esi + 0xc], str.Microsoft_Windows_8.1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041891c
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x40a85c
cmp dword [ebp - 0x124], 0
je 0x40aa9f
lea edx, [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
mov dword [esi + 0xc], str.unknown_OperatingSystem.
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.default.0x40a9d6
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffffc
cmp eax, 6
ja case.default.0x40a9d6
jmp dword [eax*4 + 0x40aacc]
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x40a8ea
cmp eax, 0xa
je 0x40a8d5
cmp eax, 0x5a
jne case.default.0x40a9d6
mov dword [esi + 0xc], str.Microsoft_Windows_Me
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041891c
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], str.Microsoft_Windows_98
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041891c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
cmp eax, 2
jne 0x40a90a
mov dword [esi + 0xc], str.Microsoft_Windows_NT_4.0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041891c
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne case.default.0x40a9d6
mov dword [esi + 0xc], str.Microsoft_Windows_95
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041891c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x40a9b6
dec eax
je 0x40a9a1
dec eax
jne case.default.0x40a9d6
cmp byte [ebp - 6], 1
jne 0x40a95e
cmp word [ebp - 0x150], 9
jne 0x40a95e
mov dword [esi + 0xc], str.Microsoft_Windows_XP_Professional_x64_Edition
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041891c
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call edi
test eax, eax
jne 0x40a983
mov dword [esi + 0xc], str.Microsoft_Windows_Server_2003
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041891c
mov esp, ebp
pop ebp
ret
push 0x59
call edi
test eax, eax
je 0x40a974
mov dword [esi + 0xc], str.Microsoft_Windows_Server_2003_R2
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041891c
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], str.Microsoft_Windows_XP
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041891c
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], str.Microsoft_Windows_2000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041891c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
cmp eax, 3
ja case.default.0x40a9d6
jmp dword [eax*4 + 0x40aae8]
cmp byte [ebp - 6], 1
jne 0x40a9f8
mov dword [esi + 0xc], str.Microsoft_Windows_Vista
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041891c
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], str.Microsoft_Windows_Server_2008
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041891c
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 6], 1
jne 0x40aa28
mov dword [esi + 0xc], str.Microsoft_Windows_7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041891c
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], str.Microsoft_Windows_Server_2008_R2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041891c
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 6], 1
jne 0x40aa58
mov dword [esi + 0xc], str.Microsoft_Windows_8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041891c
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], str.Microsoft_Windows_Server_2012
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041891c
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 6], 1
je 0x40a835
mov dword [esi + 0xc], str.Microsoft_Windows_Server_2012_R2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041891c
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x118], 0
jne case.default.0x40a9d6
cmp byte [ebp - 6], 1
jne 0x40aab4
mov dword [esi + 0xc], str.Microsoft_Windows_10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041891c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [esi + 0xc], str.Microsoft_Windows_Server_2016_Technical_Preview
call fcn.0041891c
mov esp, ebp
pop ebp
ret