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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x437654]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x43293c
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 0x4086fa
cmp dword [ebp - 0x124], 3
jne 0x40870c
mov dword [esi + 0xc], str.Microsoft_Windows_8.1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417790
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x40870c
cmp dword [ebp - 0x124], 0
je 0x40894f
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.0x408886
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffffc
cmp eax, 6
ja case.default.0x408886
jmp dword [eax*4 + 0x40897c]
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x40879a
cmp eax, 0xa
je 0x408785
cmp eax, 0x5a
jne case.default.0x408886
mov dword [esi + 0xc], str.Microsoft_Windows_Me
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417790
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], str.Microsoft_Windows_98
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417790
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
cmp eax, 2
jne 0x4087ba
mov dword [esi + 0xc], str.Microsoft_Windows_NT_4.0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417790
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne case.default.0x408886
mov dword [esi + 0xc], str.Microsoft_Windows_95
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417790
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x408866
dec eax
je 0x408851
dec eax
jne case.default.0x408886
cmp byte [ebp - 6], 1
jne 0x40880e
cmp word [ebp - 0x150], 9
jne 0x40880e
mov dword [esi + 0xc], str.Microsoft_Windows_XP_Professional_x64_Edition
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417790
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call edi
test eax, eax
jne 0x408833
mov dword [esi + 0xc], str.Microsoft_Windows_Server_2003
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417790
mov esp, ebp
pop ebp
ret
push 0x59
call edi
test eax, eax
je 0x408824
mov dword [esi + 0xc], str.Microsoft_Windows_Server_2003_R2
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417790
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], str.Microsoft_Windows_XP
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417790
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], str.Microsoft_Windows_2000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417790
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
cmp eax, 3
ja case.default.0x408886
jmp dword [eax*4 + 0x408998]
cmp byte [ebp - 6], 1
jne 0x4088a8
mov dword [esi + 0xc], str.Microsoft_Windows_Vista
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417790
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.00417790
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 6], 1
jne 0x4088d8
mov dword [esi + 0xc], str.Microsoft_Windows_7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417790
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.00417790
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 6], 1
jne 0x408908
mov dword [esi + 0xc], str.Microsoft_Windows_8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417790
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.00417790
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 6], 1
je 0x4086e5
mov dword [esi + 0xc], str.Microsoft_Windows_Server_2012_R2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417790
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x118], 0
jne case.default.0x408886
cmp byte [ebp - 6], 1
jne 0x408964
mov dword [esi + 0xc], str.Microsoft_Windows_10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417790
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.00417790
mov esp, ebp
pop ebp
ret