Function at 0x409953
Capabilities:
Check os version

Disassembly:
mov eax, 0x419460
call fcn.00416550
sub esp, 0x950
push esi
mov esi, ecx
mov dword [ebp - 0x1c], esi
cmp dword [esi + 0x10], 2
je 0x409976
xor eax, eax
jmp 0x409be3
push ebx
push edi
lea ecx, [ebp - 0x38]
call fcn.00405b64
xor ebx, ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_3
add esi, 0x1c
lea ecx, [ebp - 0x18]
push esi
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::operator_1
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x20]
push eax
call sub.MFC42u.DLL_CString::CString
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x15c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x158], 6
jne 0x4099df
push str.UserChoice
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::operator
mov edi, 0x20019
lea ecx, [ebp - 0x20]
push edi
call fcn.0040dffa
mov esi, SysReAllocString
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.00405baa
test eax, eax
jne 0x409af8
lea eax, [ebp - 0x38]
push str.Progid
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00407368
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00404fff
test eax, eax
jne 0x409a4a
lea ecx, [ebp - 0x14]
call fcn.0040dffa
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.00409cee
test eax, eax
je 0x409a4a
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.0040dfaa
lea eax, [ebp - 0x38]
push str.Application
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00407368
add esp, 0xc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00404fff
test eax, eax
jne 0x409ab3
push str.Applications_
lea ecx, [ebp - 0x28]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call sub.MFC42u.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.00416328
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.004162ce
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.004162ce
lea ecx, [ebp - 0x10]
call fcn.00404fff
test eax, eax
jne 0x409ae0
lea ecx, [ebp - 0x10]
call fcn.0040dffa
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.00409cee
test eax, eax
je 0x409ae0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0040dfaa
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004162ce
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004162ce
push str.OpenWithProgids
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::operator
lea ecx, [ebp - 0x48]
call fcn.00405b64
push edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.0040dffa
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00405baa
test eax, eax
jne 0x409ba0
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x95c]
mov esi, 0x400
push eax
mov dword [ebp - 0x14], esi
xor edi, edi
push ebx
lea ecx, [ebp - 0x48]
call fcn.00409bf2
test eax, eax
jne 0x409ba0
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x95c]
push eax
call fcn.00409cee
test eax, eax
je 0x409b8b
lea eax, [ebp - 0x95c]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::CString_3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 8
call fcn.0040dfaa
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.004162ce
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x95c]
inc edi
push eax
mov dword [ebp - 0x14], esi
push edi
jmp 0x409b41
mov ecx, dword [ebp + 8]
call fcn.0040df7f
xor ecx, ecx
mov byte [ebp - 4], 2
cmp ecx, eax
lea ecx, [ebp - 0x48]
sbb esi, esi
neg esi
call fcn.00405b72
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004162ce
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004162ce
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00405b72
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4