Function at 0x4179be
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 0x417bfc
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.0041b5c0
add esp, 0xc
push 0x439744
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 0x417a2d
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x94
call ebx
cmp dword [ebp - 0x90], 2
jne 0x417ad3
cmp dword [ebp - 0x9c], 4
jne 0x417a4d
push str.winnt
jmp 0x417b0a
cmp dword [ebp - 0x9c], 6
jne 0x417a9a
cmp dword [ebp - 0x98], 0
jne 0x417a79
cmp byte [ebp - 6], 1
jne 0x417a6f
push str.winvista
jmp 0x417b0a
push str.winlong
jmp 0x417b0a
cmp dword [ebp - 0x98], 1
jne 0x417b16
cmp byte [ebp - 6], 1
jne 0x417a93
push str.win7
jmp 0x417b0a
push str.win2008R2
jmp 0x417b0a
cmp dword [ebp - 0x9c], 5
jne 0x417b0d
cmp dword [ebp - 0x98], 0
jne 0x417ab3
push str.win2000
jmp 0x417b0a
cmp dword [ebp - 0x98], 1
jne 0x417ac3
push str.winxp
jmp 0x417b0a
cmp dword [ebp - 0x98], 2
jne 0x417b16
push str.win2003
jmp 0x417b0a
cmp dword [ebp - 0x90], 1
jne 0x417b0d
cmp dword [ebp - 0x9c], 4
jne 0x417b05
cmp dword [ebp - 0x98], 0xa
jne 0x417af5
push str.win98
jmp 0x417b0a
cmp dword [ebp - 0x98], 0x5a
jne 0x417b05
push str.winme
jmp 0x417b0a
push str.win95
push edi
call esi
cmp dword [ebp - 0x9c], 0
jbe 0x417b4a
cmp dword [ebp - 0x98], 0
jbe 0x417b4a
push str.win32
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x417b4a
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 0x4397c4
call fcn.00401148
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x417b96
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417b96
lea ecx, [ebp - 0xc4]
push ecx
call eax
jmp 0x417ba3
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 4], 0
je 0x417bb2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, word [ebp - 0xc4]
test eax, eax
je 0x417be7
cmp eax, 6
je 0x417be0
cmp eax, 9
je 0x417bd9
push eax
push 0x439800
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x417bef
push str.amd64
jmp 0x417bec
push str.ia64
jmp 0x417bec
push 0x4397f8
push ebx
call esi
mov dword [0x447038], 1
pop esi
jmp 0x417c01
mov ebx, 0x44700c
mov eax, dword [0x447020]
test eax, eax
je 0x417c1f
push eax
push edi
push str._s_sp_d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x417c31
push edi
push 0x43980c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x417c49
push ebx
push 0x439810
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