Function at 0x468970
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Get startup folder

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54fa3f
mov eax, dword fs:[0]
push eax
sub esp, 0x530
mov eax, dword [0x5c403c]
xor eax, esp
mov dword [esp + 0x528], eax
push ebx
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x540]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x820]
call fcn.004b4a30
push str.Main_SpellCheck
mov ecx, edi
mov eax, 0x46e
call fcn.00499af0
add esp, 4
push str.Main_StartMinimized
mov ecx, edi
mov eax, 0x4c5
call fcn.00499af0
add esp, 4
push str.Main_DisableArch
mov ecx, edi
mov eax, 0x4b5
call fcn.00499af0
add esp, 4
push str.Update_Disable
mov ecx, edi
mov eax, 0x4cf
call fcn.00499af0
add esp, 4
push str.SMS_Disable
mov ecx, edi
mov eax, 0x4e3
call fcn.00499af0
add esp, 4
push str.Update_AskBeforeDownload
mov ecx, edi
mov eax, 0x4d0
call fcn.00499af0
add esp, 4
push str.Update_BetaVersions
mov ecx, edi
mov eax, 0x539
call fcn.00499af0
add esp, 4
push str.SYS_NoSysMessages
mov ecx, edi
mov eax, 0x53a
call fcn.00499af0
add esp, 4
push str.SYS_WinFWException
mov ecx, edi
mov eax, 0x53b
call fcn.00499af0
add esp, 4
push str.SYS_ArchWriteInfo
mov ecx, edi
mov eax, 0x5f5
call fcn.00499af0
add esp, 4
push str.SYS_ArchWriteWarn
mov ecx, edi
mov eax, 0x5f6
call fcn.00499af0
add esp, 4
push str.SYS_ArchWriteErr
mov ecx, edi
mov eax, 0x5f7
call fcn.00499af0
mov ebx, dword [0x5c7008]
add esp, 4
lea eax, [esp + 0x10]
push eax
push 0
push str.SYS_ArchProtect
call fcn.00514350
cmp dword [esp + 0x10], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
je 0x468b5e
mov ecx, dword [edi + 0x744]
push 0
push 0
push 0xf0
push ecx
call esi
test eax, eax
jne 0x468b5e
call fcn.004c3cf0
test eax, eax
je 0x468b5e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call sub.mfc90u.dll_CWnd::FromHandle
push eax
lea edx, [esp + 0x28]
push edx
call fcn.00430a60
mov dword [esp + 0x548], 0
push 0x56e390
lea ecx, [esp + 0x174]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea ecx, [esp + 0x24]
call sub.mfc90u.dll_CDialog::DoModal
cmp eax, 1
jne 0x468b48
mov ecx, dword [0x5c7008]
push 0
push str.SYS_ArchProtect
call fcn.00514480
mov dword [esp + 0x548], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00430b70
jmp 0x468b72
push str.SYS_ArchProtect
mov ecx, edi
mov eax, 0x5fb
call fcn.00499af0
add esp, 4
mov eax, dword [edi + 0x7ec]
push 0
push 0
push 0x147
push eax
call esi
mov ecx, dword [0x5c7008]
push eax
push str.ARCH_Layout
call fcn.00514480
lea ecx, [esp + 0x1c]
call dword [0x55a6c4]
mov dword [esp + 0x548], 1
lea ecx, [esp + 0x20]
call dword [0x55a6c4]
mov bl, 2
mov byte [esp + 0x548], bl
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [edi + 0xac]
call sub.mfc90u.dll_CWnd::GetWindowTextW
lea edx, [esp + 0x20]
push edx
lea ecx, [edi + 0x100]
call sub.mfc90u.dll_CWnd::GetWindowTextW
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
jne 0x468c0c
mov ecx, dword [esp + 0x1c]
push 1
push ecx
mov ecx, dword [0x5c7008]
push 0x563e64
call fcn.00514160
jmp 0x468c9a
push str.wtwOptions
lea ecx, [esp + 0x14]
call dword [0x55a504]
mov byte [esp + 0x548], 3
push str.wtwOptions
lea ecx, [esp + 0x1c]
call dword [0x55a504]
mov byte [esp + 0x548], 4
mov eax, dword [0x5c6f7c]
push 0x10
push 0x55eac0
push 0x3f5
lea edx, [esp + 0x1c]
push edx
call fcn.00504820
push eax
push 0x56e460
push 0x3f4
lea eax, [esp + 0x28]
push eax
mov eax, dword [0x5c6f7c]
call fcn.00504820
push eax
mov ecx, edi
call sub.mfc90u.dll_CWnd::MessageBoxW
mov byte [esp + 0x548], 3
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x548], bl
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [edi + 0x444]
push 0
push 0
push 0x147
push ecx
call esi
cmp eax, 0xffffffff
jle 0x468cd2
mov edx, dword [edi + 0x444]
push 0
push eax
push 0x150
push edx
call esi
test eax, eax
je 0x468cd2
mov eax, dword [eax + 4]
test eax, eax
je 0x468cd2
push 0
push eax
jmp 0x468cd9
push 0
push 0x56e514
mov ecx, dword [0x5c7008]
push str.SYS_LangId
call fcn.00514160
lea ecx, [esp + 0x14]
call dword [0x55a6c4]
mov byte [esp + 0x548], 5
mov ebx, dword [0x5c7008]
lea eax, [esp + 0x14]
push eax
push 0x55ae9c
push str.SYS_LangId
call fcn.00513fa0
lea ebx, [esp + 0x14]
call fcn.00503040
mov ecx, dword [edi + 0x498]
push 0
push 0
push 0x147
push ecx
call esi
cmp eax, 0xffffffff
jle 0x468d67
mov edx, dword [edi + 0x498]
push 0
push eax
push 0x150
push edx
call esi
mov ecx, dword [0x5c7008]
push 0
test eax, eax
je 0x468d58
mov eax, dword [eax + 8]
push eax
jmp 0x468d5d
push 0x55ae9c
push str.Main_SpellCheckLang
call fcn.00514160
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x6d0]
call sub.mfc90u.dll_CWnd::GetWindowTextW
mov ecx, dword [esp + 0x14]
push 0xa
push 0
push ecx
call dword [sym.imp.MSVCR90.dll_wcstoul]
mov ecx, dword [0x5c7008]
add esp, 0xc
push eax
push str.ARCH_AutoPurge
call fcn.00514480
mov eax, dword [edi + 0x20]
push 1
push 7
lea edx, [esp + 0x334]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x32c]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x468dc0
mov ecx, dword [str.WTW.lnk]
mov edx, dword [0x56e380]
mov dword [eax], ecx
mov ecx, dword [0x56e384]
mov dword [eax + 4], edx
mov edx, dword [0x56e388]
push 0
mov dword [eax + 8], ecx
mov cx, word [0x56e38c]
push 0
mov dword [eax + 0xc], edx
mov edx, dword [edi + 0x798]
push 0xf0
push edx
mov word [eax + 0x10], cx
call esi
test eax, eax
je 0x468e95
lea eax, [esp + 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x468e95
lea ecx, [esp + 0x32c]
push ecx
lea ecx, [esp + 0x14]
call dword [0x55a504]
mov bl, 6
mov byte [esp + 0x548], bl
mov eax, dword [0x5c7000]
add eax, 0x10
push eax
lea edx, [esp + 0x1c]
push edx
mov edi, str.wtw.exe
call fcn.0040f2b0
mov byte [esp + 0x550], 7
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.0051dce0
add esp, 0x10
mov byte [esp + 0x548], bl
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x548], 5
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x468eb9
mov edx, dword [edi + 0x798]
push 0
push 0
push 0xf0
push edx
call esi
test eax, eax
jne 0x468eb9
lea eax, [esp + 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x548], 2
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x548], 1
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0x548], 0xffffffff
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esp + 0x540]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x528]
xor ecx, esp
call fcn.00532776
mov esp, ebp
pop ebp
ret