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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x439654]
xor eax, ebp
mov dword [ebp - 4], eax
push str.ntdll.dll
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 0x407c9a
cmp dword [ebp - 0x124], 3
jne 0x407cbd
mov dword [esi + 0xc], 0x431e28
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x407cbd
cmp dword [ebp - 0x124], 0
jne 0x407cbd
mov dword [esi + 0xc], 0x431e40
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret
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.0x407e37
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffffc
cmp eax, 6
ja case.default.0x407e37
jmp dword [eax*4 + 0x407f3c]
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x407d4b
cmp eax, 0xa
je 0x407d36
cmp eax, 0x5a
jne case.default.0x407e37
mov dword [esi + 0xc], str.Microsoft_Windows_Me
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], str.Microsoft_Windows_98
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
cmp eax, 2
jne 0x407d6b
mov dword [esi + 0xc], str.Microsoft_Windows_NT_4.0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne case.default.0x407e37
mov dword [esi + 0xc], str.Microsoft_Windows_95
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x407e17
dec eax
je 0x407e02
dec eax
jne case.default.0x407e37
cmp byte [ebp - 6], 1
jne 0x407dbf
cmp word [ebp - 0x150], 9
jne 0x407dbf
mov dword [esi + 0xc], str.Microsoft_Windows_XP_Professional_x64_Edition
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call edi
test eax, eax
jne 0x407de4
mov dword [esi + 0xc], str.Microsoft_Windows_Server_2003
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret
push 0x59
call edi
test eax, eax
je 0x407dd5
mov dword [esi + 0xc], str.Microsoft_Windows_Server_2003_R2
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], str.Microsoft_Windows_XP
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], str.Microsoft_Windows_2000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
cmp eax, 3
ja case.default.0x407e37
jmp dword [eax*4 + 0x407f58]
cmp byte [ebp - 6], 1
jne 0x407e59
mov dword [esi + 0xc], str.Microsoft_Windows_Vista
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
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.00417619
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 6], 1
jne 0x407e89
mov dword [esi + 0xc], str.Microsoft_Windows_7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
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.00417619
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 6], 1
jne 0x407eb9
mov dword [esi + 0xc], str.Microsoft_Windows_8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
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.00417619
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 6], 1
jne 0x407ee9
mov dword [esi + 0xc], str.Microsoft_Windows_8.1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], str.Microsoft_Windows_Server_2012_R2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x118], 0
jne case.default.0x407e37
cmp byte [ebp - 6], 1
jne 0x407f26
mov dword [esi + 0xc], str.Microsoft_Windows_10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
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.00417619
mov esp, ebp
pop ebp
ret