Function at 0x476010
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x579411
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push esi
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x18]
mov dword [esp + 0xb4], 1
push eax
mov dword [esp + 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x47607f
mov esi, dword [esp + 0xbc]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x14], 1
jmp 0x476272
push ebx
push str.OS:
lea ecx, [esp + 0xc]
call fcn.004ea8a0
push str.Unable_to_determine_OS
lea ecx, [esp + 0x14]
xor bl, bl
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x2c]
mov byte [esp + 0xb8], 2
sub eax, 0
je 0x4760e2
dec eax
je 0x4760ca
dec eax
jne 0x4760f0
cmp dword [esp + 0x20], 5
jb 0x4760c3
push str.Windows_2000
jmp 0x4760e7
push str.Windows_NT
jmp 0x4760e7
mov eax, dword [esp + 0x24]
mov bl, 1
test eax, eax
jne 0x4760db
push str.Windows_95
jmp 0x4760e7
push str.Windows_98
jmp 0x4760e7
push str.Windows_3.1
lea ecx, [esp + 0x14]
call fcn.004ea8a0
lea edx, [esp + 0x10]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::operator_2
push 0x5d3a6c
lea ecx, [esp + 0xc]
call fcn.004ea978
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x14]
push str.OS_Version__Major:__d__Minor:__d
push edx
mov byte [esp + 0xc8], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0xc]
mov byte [esp + 0xb8], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_4
test bl, bl
mov byte [esp + 0xb8], 4
je 0x476184
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0xc]
and ecx, 0xffff
push ecx
push str.Build:__d_
push edx
jmp 0x476193
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push eax
push str.Build:__d_
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0xc]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0xc]
mov byte [esp + 0xb8], 2
call sub.MFC42.DLL_CString::CString
push 0x5d3a6c
lea ecx, [esp + 0xc]
call fcn.004ea978
lea eax, [esp + 0x30]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0xb8], 5
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x14]
mov esi, 0x69ab30
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x47621d
test cl, cl
je 0x476219
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x47621d
add eax, 2
add esi, 2
test cl, cl
jne 0x4761f5
xor eax, eax
jmp 0x476222
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop ebx
je 0x476235
push 0x5d3a6c
lea ecx, [esp + 8]
call fcn.004ea978
mov esi, dword [esp + 0xbc]
lea eax, [esp + 4]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 1
mov byte [esp + 0xb4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0xb4], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xac]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0xb4
ret 4