Function at 0x40240f
Capabilities:
Check os version
Get common file path

Disassembly:
mov eax, 0x402e70
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x2a8
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov esi, ecx
mov eax, 0
cpuid
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov eax, 1
cpuid
mov dword [ebp - 0x10], edx
mov ebx, dword [ebp - 0x10]
mov edi, str..dll
test ebx, ebx
je 0x402582
push 0x1a
mov eax, ebx
xor edx, edx
pop ecx
div ecx
lea ecx, [esi + 0xe8]
add dl, 0x61
push edx
call sub.MFC42.DLL_CString::operator_2
push 0x19
mov eax, ebx
xor edx, edx
pop ecx
div ecx
lea ecx, [esi + 0xe8]
add dl, 0x62
push edx
call sub.MFC42.DLL_CString::operator_2
push 0x18
mov eax, ebx
xor edx, edx
pop ecx
div ecx
lea ecx, [esi + 0xe8]
add dl, 0x63
push edx
call sub.MFC42.DLL_CString::operator_2
push 0x17
mov eax, ebx
xor edx, edx
pop ecx
div ecx
lea ecx, [esi + 0xe8]
add dl, 0x64
push edx
call sub.MFC42.DLL_CString::operator_2
push 0x16
mov eax, ebx
xor edx, edx
pop ecx
div ecx
lea ecx, [esi + 0xe8]
add dl, 0x65
push edx
call sub.MFC42.DLL_CString::operator_2
push 0x15
mov eax, ebx
xor edx, edx
pop ecx
div ecx
lea ecx, [esi + 0xe8]
add dl, 0x66
push edx
call sub.MFC42.DLL_CString::operator_2
push edi
lea ecx, [esi + 0xe8]
call fcn.004027b0
push 0x14
mov eax, ebx
xor edx, edx
pop ecx
div ecx
lea ecx, [esi + 0xf0]
add dl, 0x66
push edx
call sub.MFC42.DLL_CString::operator_2
push 0x13
mov eax, ebx
xor edx, edx
pop ecx
div ecx
lea ecx, [esi + 0xf0]
add dl, 0x67
push edx
call sub.MFC42.DLL_CString::operator_2
push 0x12
mov eax, ebx
xor edx, edx
pop ecx
div ecx
add dl, 0x68
push edx
lea ecx, [esi + 0xf0]
call sub.MFC42.DLL_CString::operator_2
push 0x11
mov eax, ebx
xor edx, edx
pop ecx
div ecx
lea ecx, [esi + 0xf0]
add dl, 0x69
push edx
call sub.MFC42.DLL_CString::operator_2
mov al, bl
lea ecx, [esi + 0xf0]
and al, 0xf
add al, 0x6a
push eax
call sub.MFC42.DLL_CString::operator_2
push 0xf
mov eax, ebx
xor edx, edx
pop ecx
div ecx
lea ebx, [esi + 0xf0]
mov ecx, ebx
add dl, 0x6b
push edx
call sub.MFC42.DLL_CString::operator_2
push edi
mov ecx, ebx
call fcn.004027b0
lea ebx, [esi + 0xe4]
push 0x4040b8
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_1
push 0x4040b4
mov ecx, ebx
call fcn.004027b0
push edi
mov ecx, ebx
call fcn.004027b0
push ebx
lea ecx, [esi + 0xe8]
call sub.MFC42.DLL_CString::operator
lea ebx, [esi + 0xec]
push 0x4042bc
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_1
push 0x4042b8
mov ecx, ebx
call fcn.004027b0
push edi
mov ecx, ebx
call fcn.004027b0
lea ebx, [esi + 0x100]
push str.c:RE
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_1
push 0x4042ac
mov ecx, ebx
call fcn.004027b0
push str.led_
mov ecx, ebx
call fcn.004027b0
mov edi, 0x9c
lea eax, [ebp - 0xc0]
push edi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call edi
test eax, eax
jne 0x402647
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], 0x94
push eax
call edi
cmp dword [ebp - 0xbc], 6
jb 0x402674
push str.c:_Re
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_1
push 0x4042ac
mov ecx, ebx
call fcn.004027b0
push str.le.bin_
mov ecx, ebx
call fcn.004027b0
push 0x404290
lea eax, [ebp - 0x10]
push ebx
push eax
call sub.MFC42.DLL_operator
and dword [ebp - 4], 0
lea ecx, [esi + 0xf4]
push eax
call sub.MFC42.DLL_CString::operator
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov edi, str..dat
lea ecx, [esi + 0xf4]
push edi
call fcn.004027b0
push 0x4040b8
lea eax, [ebp - 0x14]
push ebx
push eax
call sub.MFC42.DLL_operator
lea ebx, [esi + 0xf8]
push eax
mov ecx, ebx
mov dword [ebp - 4], 1
call sub.MFC42.DLL_CString::operator
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push edi
mov ecx, ebx
call fcn.004027b0
lea eax, [ebp - 0x2b4]
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
add esi, 0xfc
lea eax, [ebp - 0x2b4]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::operator_2
mov ecx, esi
call sub.MFC42.DLL_CString::MakeUpper
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret