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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
cmp dword [0x447038], 0
push ebx
push edi
mov edi, 0x447024
jne 0x4179aa
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.0041b010
add esp, 0xc
push 0x4395c8
mov dword [ebp - 0xa0], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0xa0]
push eax
call ebx
test eax, eax
jne 0x4177db
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x94
call ebx
cmp dword [ebp - 0x90], 2
jne 0x417881
cmp dword [ebp - 0x9c], 4
jne 0x4177fb
push str.winnt
jmp 0x4178b8
cmp dword [ebp - 0x9c], 6
jne 0x417848
cmp dword [ebp - 0x98], 0
jne 0x417827
cmp byte [ebp - 6], 1
jne 0x41781d
push str.winvista
jmp 0x4178b8
push str.winlong
jmp 0x4178b8
cmp dword [ebp - 0x98], 1
jne 0x4178c4
cmp byte [ebp - 6], 1
jne 0x417841
push str.win7
jmp 0x4178b8
push str.win2008R2
jmp 0x4178b8
cmp dword [ebp - 0x9c], 5
jne 0x4178bb
cmp dword [ebp - 0x98], 0
jne 0x417861
push str.win2000
jmp 0x4178b8
cmp dword [ebp - 0x98], 1
jne 0x417871
push str.winxp
jmp 0x4178b8
cmp dword [ebp - 0x98], 2
jne 0x4178c4
push str.win2003
jmp 0x4178b8
cmp dword [ebp - 0x90], 1
jne 0x4178bb
cmp dword [ebp - 0x9c], 4
jne 0x4178b3
cmp dword [ebp - 0x98], 0xa
jne 0x4178a3
push str.win98
jmp 0x4178b8
cmp dword [ebp - 0x98], 0x5a
jne 0x4178b3
push str.winme
jmp 0x4178b8
push str.win95
push edi
call esi
cmp dword [ebp - 0x9c], 0
jbe 0x4178f8
cmp dword [ebp - 0x98], 0
jbe 0x4178f8
push str.win32
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4178f8
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
push str._d._d
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
movzx eax, word [ebp - 0xc]
mov dword [0x447020], eax
push str.Unknown
xor eax, eax
mov ebx, 0x44700c
push ebx
mov word [ebp - 0xc4], ax
call esi
push 0x439648
call fcn.00401148
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x417944
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417944
lea ecx, [ebp - 0xc4]
push ecx
call eax
jmp 0x417951
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 4], 0
je 0x417960
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, word [ebp - 0xc4]
test eax, eax
je 0x417995
cmp eax, 6
je 0x41798e
cmp eax, 9
je 0x417987
push eax
push 0x439684
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x41799d
push str.amd64
jmp 0x41799a
push str.ia64
jmp 0x41799a
push 0x43967c
push ebx
call esi
mov dword [0x447038], 1
pop esi
jmp 0x4179af
mov ebx, 0x44700c
mov eax, dword [0x447020]
test eax, eax
je 0x4179cd
push eax
push edi
push str._s_sp_d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x4179df
push edi
push 0x439690
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x4179f7
push ebx
push 0x439694
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret