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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x4f80c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x50d6e8], 0
jne 0x4775f1
push 0x118
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.0049a960
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
push str.RtlGetVersion
push str.NtDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4772dd
lea ecx, [ebp - 0x128]
push ecx
call eax
test eax, eax
je 0x4772dd
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4772dd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00498d60
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
push 0x4dd498
mov ecx, 0x50d634
mov dword [0x50d684], 0
call fcn.00404c10
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x477550
sub eax, 1
je 0x47750d
sub eax, 1
je 0x477321
push 0
push 0x4dd498
jmp 0x477561
mov eax, dword [ebp - 0x124]
cmp eax, 4
ja 0x477342
push 0xa
mov dword [0x50d684], 0x40
push str.Windows_NT
jmp 0x477561
cmp eax, 5
jne 0x4773a7
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x477367
push 0xc
mov dword [0x50d684], 0x80
push str.Windows_2000
jmp 0x477561
cmp eax, 1
je 0x477391
cmp eax, 2
jne 0x47756b
cmp byte [ebp - 0xe], 1
je 0x477391
push 0xc
mov dword [0x50d684], 0x200
push str.Windows_2003
jmp 0x477561
push 0xa
mov dword [0x50d684], 0x100
push str.Windows_XP
jmp 0x477561
cmp eax, 6
jne 0x4774a8
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x4773f1
cmp byte [ebp - 0xe], 1
mov ecx, 0x50d634
jne 0x4773db
push 0xd
mov dword [0x50d684], 0x400
push str.Windows_Vista
jmp 0x477566
push 0x13
mov dword [0x50d684], 0x8000
push str.Windows_Server_2008
jmp 0x477566
cmp eax, 1
jne 0x47742c
mov ecx, 0x50d634
cmp byte [ebp - 0xe], al
je 0x477416
push 0x16
mov dword [0x50d684], 0x8000
push str.Windows_Server_2008_R2
jmp 0x477566
push 9
mov dword [0x50d684], 0x800
push str.Windows_7
jmp 0x477566
cmp eax, 2
jne 0x477468
cmp byte [ebp - 0xe], 1
mov ecx, 0x50d634
jne 0x477452
push 9
mov dword [0x50d684], 0x1000
push str.Windows_8
jmp 0x477566
push 0x13
mov dword [0x50d684], 0x10000
push str.Windows_Server_2012
jmp 0x477566
cmp eax, 3
jne 0x47756b
cmp byte [ebp - 0xe], 1
mov ecx, 0x50d634
jne 0x477492
push 0xb
mov dword [0x50d684], 0x2000
push str.Windows_8.1
jmp 0x477566
push 0x16
mov dword [0x50d684], 0x10000
push str.Windows_Server_2012_R2
jmp 0x477566
cmp eax, 0xa
jne 0x47756b
cmp dword [ebp - 0x120], 0
jne 0x47756b
cmp byte [ebp - 0xe], 1
jne 0x4774fa
cmp dword [ebp - 0x11c], 0x55f0
jb 0x4774e5
mov eax, str.Windows_11
mov ecx, 0x40000
push 0xa
mov dword [0x50d684], ecx
push eax
jmp 0x477561
mov eax, str.Windows_10
mov ecx, 0x4000
push 0xa
mov dword [0x50d684], ecx
push eax
jmp 0x477561
push 0x13
mov dword [0x50d684], 0x20000
push str.Windows_Server_2016
jmp 0x477561
cmp dword [ebp - 0x124], 4
jne 0x47756b
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x47753d
cmp eax, 0xa
je 0x47753d
cmp eax, 0x5a
jne 0x47756b
push 0xa
mov dword [0x50d684], 0x20
push str.Windows_ME
jmp 0x477561
push 0xa
mov dword [0x50d684], 8
push str.Windows_9x
jmp 0x477561
push 0xb
mov dword [0x50d684], 1
push str.Windows_3.2
mov ecx, 0x50d634
call fcn.00404c10
xorps xmm0, xmm0
mov dword [ebp - 0x140], 0
push 0x4e2b90
push str.kernel32.dll
movaps xmmword [ebp - 0x160], xmm0
movaps xmmword [ebp - 0x150], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4775ac
lea ecx, [ebp - 0x160]
push ecx
call eax
jmp 0x4775b9
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x160]
cmp ax, 9
je 0x4775dd
cmp ax, 6
je 0x4775dd
test ax, ax
jne 0x4775e7
mov dword [0x50d688], 0
jmp 0x4775e7
mov dword [0x50d688], 1
mov dword [0x50d6e8], 1
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00498d60
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret