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

Disassembly:
push 0x14c
mov eax, 0x476421
call fcn.0047362c
mov eax, dword [0x493204]
cmp eax, 0xffffffff
jne 0x41fd5b
push 9
or esi, eax
lea edi, [ebp - 0x154]
pop eax
mov ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, 0x11c
push edi
push eax
lea eax, [ebp - 0x12c]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x12c], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x12c]
push eax
call edi
test eax, eax
jne 0x41f902
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x114
push eax
call edi
test eax, eax
jne 0x41f902
xor esi, esi
jmp 0x41fd0d
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x41f921
push 0x484164
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x41f923
xor eax, eax
test eax, eax
je 0x41f932
lea ecx, [ebp - 0x154]
push ecx
call eax
jmp 0x41f93f
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x11c]
sub eax, 0
je 0x41fb62
dec eax
je 0x41fb11
dec eax
jne 0x41fb6e
cmp dword [ebp - 0x128], 6
jne 0x41fa31
mov eax, dword [ebp - 0x124]
sub eax, 0
je 0x41fa07
dec eax
je 0x41f9dd
dec eax
je 0x41f9b1
dec eax
jne 0x41fb6e
cmp byte [ebp - 0x12], 1
jne 0x41f99f
push 9
pop eax
mov esi, eax
mov dword [0x49322c], 0x48423c
jmp 0x41fb6e
push 0xd
pop esi
mov dword [0x49322c], 0x484254
jmp 0x41fb6e
cmp byte [ebp - 0x12], 1
jne 0x41f9cb
push 9
pop eax
mov esi, eax
mov dword [0x49322c], 0x484200
jmp 0x41fb6e
push 0xd
pop esi
mov dword [0x49322c], 0x484214
jmp 0x41fb6e
cmp byte [ebp - 0x12], 1
jne 0x41f9f5
push 8
pop esi
mov dword [0x49322c], 0x4841bc
jmp 0x41fb6e
push 0xc
pop esi
mov dword [0x49322c], 0x4841d0
jmp 0x41fb6e
cmp byte [ebp - 0x12], 1
jne 0x41fa1f
push 7
pop esi
mov dword [0x49322c], 0x484178
jmp 0x41fb6e
push 6
pop esi
mov dword [0x49322c], 0x484194
jmp 0x41fb6e
cmp dword [ebp - 0x128], 5
jne 0x41faf9
mov eax, dword [ebp - 0x124]
sub eax, 0
je 0x41faea
dec eax
je 0x41fad8
dec eax
jne 0x41fb6e
cmp byte [ebp - 0x12], 1
jne 0x41fa7f
push 9
pop eax
cmp word [ebp - 0x154], ax
jne 0x41fa7f
push 4
pop esi
mov dword [0x49322c], 0x4842e0
jmp 0x41fb6e
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call edi
test eax, eax
je 0x41fa9f
push 0xb
pop esi
mov dword [0x49322c], 0x484340
jmp 0x41fb6e
test dword [ebp - 0x14], 0x8000
je 0x41faba
push 0xe
pop esi
mov dword [0x49322c], 0x484384
jmp 0x41fb6e
push 0x59
call edi
test eax, eax
jne 0x41fb6e
push 0xb
pop esi
mov dword [0x49322c], 0x4843ac
jmp 0x41fb6e
push 4
pop esi
mov dword [0x49322c], 0x4842b4
jmp 0x41fb6e
push 0xa
pop esi
mov dword [0x49322c], 0x484284
jmp 0x41fb6e
cmp dword [ebp - 0x128], 4
ja 0x41fb6e
push 5
pop esi
mov dword [0x49322c], 0x4843e8
jmp 0x41fb6e
cmp dword [ebp - 0x128], 4
jne 0x41fb6e
cmp dword [ebp - 0x124], 0
jne 0x41fb32
push 2
pop esi
mov dword [0x49322c], 0x484414
jmp 0x41fb6e
cmp dword [ebp - 0x124], 0xa
jne 0x41fb4a
push 3
pop esi
mov dword [0x49322c], 0x484440
jmp 0x41fb6e
cmp dword [ebp - 0x124], 0x5a
jne 0x41fb6e
push 5
pop esi
mov dword [0x49322c], 0x484470
jmp 0x41fb6e
xor esi, esi
mov dword [0x49322c], 0x4844bc
test ebx, ebx
je 0x41fb80
push str.GetProductInfo
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x41fb82
xor eax, eax
test eax, eax
je case.0x41fbc2.5
lea ecx, [ebp - 0x130]
push ecx
push 0
push 0
push dword [ebp - 0x124]
push dword [ebp - 0x128]
call eax
mov ecx, dword [ebp - 0x130]
cmp ecx, 0x19
ja 0x41fc9e
je 0x41fc92
dec ecx
cmp ecx, 0x11
ja case.0x41fbc2.5
jmp dword [ecx*4 + 0x41fd63]
mov dword [0x493228], str._Ultimate
jmp case.0x41fbc2.5
mov dword [0x493228], str._Home_Premium
jmp case.0x41fbc2.5
mov dword [0x493228], str._Home_Basic
jmp case.0x41fbc2.5
mov dword [0x493228], str._Enterprise
jmp case.0x41fbc2.5
mov dword [0x493228], str._Business
jmp case.0x41fbc2.5
mov dword [0x493228], str._Starter
jmp case.0x41fbc2.5
mov dword [0x493228], str._Cluster_Server
jmp case.0x41fbc2.5
mov dword [0x493228], str._Datacenter
jmp case.0x41fbc2.5
mov dword [0x493228], str._Datacenter_core_installation_
jmp case.0x41fbc2.5
mov dword [0x493228], str._Enterprise_core_installation_
jmp case.0x41fbc2.5
mov dword [0x493228], str._Enterprise_for_Itanium_based_Systems
jmp case.0x41fbc2.5
mov dword [0x493228], str._Small_Business_Server
jmp case.0x41fbc2.5
mov dword [0x493228], str._Standard
jmp case.0x41fbc2.5
mov dword [0x493228], str._Standard_core_installation_
jmp case.0x41fbc2.5
mov dword [0x493228], str._Web_Server
jmp case.0x41fbc2.5
mov dword [0x493228], str._Small_Business_Server_Premium
jmp case.0x41fbc2.5
cmp ecx, 0x30
mov eax, str._Professional
cmovne eax, dword [0x493228]
mov dword [0x493228], eax
movzx eax, word [ebp - 0x18]
sub eax, 0
je 0x41fd03
dec eax
je 0x41fcf7
dec eax
je 0x41fceb
dec eax
je 0x41fcdf
dec eax
je 0x41fcd3
mov dword [0x493224], str._SP4
jmp 0x41fd0d
mov dword [0x493224], 0x4847a8
jmp 0x41fd0d
mov dword [0x493224], str._SP3
jmp 0x41fd0d
mov dword [0x493224], str._SP2
jmp 0x41fd0d
mov dword [0x493224], str._SP1
jmp 0x41fd0d
mov dword [0x493224], 0x482d54
mov eax, dword [0x49519c]
mov edi, 0x4951a0
test al, 1
jne 0x41fd3d
or eax, 1
mov dword [0x49519c], eax
and dword [ebp - 4], 0
mov ecx, edi
call fcn.00450f60
push 0x4765eb
call fcn.00472691
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, edi
call fcn.00450f90
mov eax, 0x493204
xchg dword [eax], esi
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.00450fa0
mov eax, dword [0x493204]
call fcn.004735ea
ret