Function at 0x468500
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get geographical location
Get startup folder

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x542ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5c403c]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
push 0
push str.Main_SpellCheck
mov eax, 0x46e
mov esi, ecx
call fcn.00499980
push 0
push str.Main_StartMinimized
mov ecx, esi
mov eax, 0x4c5
call fcn.00499980
push 0
push str.Main_DisableArch
mov ecx, esi
mov eax, 0x4b5
call fcn.00499980
push 0
push str.Update_Disable
mov ecx, esi
mov eax, 0x4cf
call fcn.00499980
push 0
push str.Update_AskBeforeDownload
mov ecx, esi
mov eax, 0x4d0
call fcn.00499980
push 0
push str.SMS_Disable
mov ecx, esi
mov eax, 0x4e3
call fcn.00499980
push 0
push str.Update_BetaVersions
mov ecx, esi
mov eax, 0x539
call fcn.00499980
push 0
push str.SYS_NoSysMessages
mov ecx, esi
mov eax, 0x53a
call fcn.00499980
add esp, 0x40
push 1
push str.SYS_WinFWException
mov ecx, esi
mov eax, 0x53b
call fcn.00499980
push 0
push str.SYS_ArchWriteInfo
mov ecx, esi
mov eax, 0x5f5
call fcn.00499980
push 0
push str.SYS_ArchWriteWarn
mov ecx, esi
mov eax, 0x5f6
call fcn.00499980
push 0
push str.SYS_ArchWriteErr
mov ecx, esi
mov eax, 0x5f7
call fcn.00499980
push 0
push str.SYS_ArchProtect
mov ecx, esi
mov eax, 0x5fb
call fcn.00499980
mov ebx, dword [0x5c7008]
add esp, 0x28
lea eax, [esp + 0x1c]
push eax
push 1
push str.ARCH_Layout
call fcn.00514350
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x7ec]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push ecx
push 0x14e
push edx
call edi
lea ecx, [esp + 0x14]
call dword [0x55a6c4]
mov dword [esp + 0x248], 0
mov ebx, dword [0x5c7008]
lea eax, [esp + 0x14]
push eax
push 0x55ae9c
push 0x563e64
call fcn.00513fa0
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esi + 0xac]
call sub.mfc90u.dll_CWnd::SetWindowTextW
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esi + 0x100]
call sub.mfc90u.dll_CWnd::SetWindowTextW
mov ebx, dword [0x5c7008]
lea eax, [esp + 0x1c]
push eax
push 0
push str.ARCH_AutoPurge
call fcn.00514350
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push 0x55d840
push edx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
lea ecx, [esi + 0x6d0]
call sub.mfc90u.dll_CWnd::SetWindowTextW
mov ecx, esi
call fcn.00468f20
push 6
lea ecx, [esp + 0x24]
push ecx
push 0x59
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea ecx, [esp + 0x18]
call dword [0x55a6c4]
mov byte [esp + 0x248], 1
mov ebx, dword [0x5c7008]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
push str.SYS_LangId
call fcn.00513fa0
mov ecx, dword [esi + 0x444]
xor ebx, ebx
push ebx
push ebx
push 0x146
push ecx
call edi
test eax, eax
jle 0x4687b1
lea esp, [esp]
mov edx, dword [esi + 0x444]
push 0
push ebx
push 0x150
push edx
call edi
test eax, eax
je 0x468787
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [eax + 4]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
je 0x4687a0
mov edx, dword [esi + 0x444]
push 0
push 0
push 0x146
push edx
inc ebx
call edi
cmp ebx, eax
jl 0x468760
jmp 0x4687b1
mov eax, dword [esi + 0x444]
push 0
push ebx
push 0x14e
push eax
call edi
mov ebx, dword [0x5c7008]
lea ecx, [esp + 0x18]
push ecx
push str.pl_PL
push str.Main_SpellCheckLang
call fcn.00513fa0
mov edx, dword [esi + 0x498]
xor ebx, ebx
push ebx
push ebx
push 0x146
push edx
call edi
test eax, eax
jle 0x468832
mov eax, dword [esi + 0x498]
push 0
push ebx
push 0x150
push eax
call edi
test eax, eax
je 0x468808
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [eax + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
je 0x468821
mov edx, dword [esi + 0x498]
push 0
push 0
push 0x146
push edx
inc ebx
call edi
cmp ebx, eax
jl 0x4687e1
jmp 0x468832
mov eax, dword [esi + 0x498]
push 0
push ebx
push 0x14e
push eax
call edi
mov edx, dword [esi + 0x20]
push 1
push 7
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x2c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x468850
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]
mov dword [eax + 8], ecx
mov cx, word [0x56e38c]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x2c]
push edx
mov word [eax + 0x10], cx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
cmp eax, 0xffffffff
je 0x4688ac
mov eax, dword [esi + 0x798]
push 1
push 0xf1
push eax
jmp 0x4688ba
mov ecx, dword [esi + 0x798]
push 0
push 0xf1
push ecx
call edi
mov ecx, esi
call fcn.00468f80
mov ecx, esi
call fcn.00468fe0
lea edi, [esi + 0x820]
call fcn.004b48a0
mov edx, dword [esi + 0x840]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x146
push edx
call ebx
test eax, eax
jne 0x46891b
push 0x56acdc
push eax
mov eax, dword [esi + 0x840]
push 0x143
push eax
call ebx
mov ecx, dword [esi + 0x840]
push 0
push 0
push 0x14e
push ecx
call ebx
push 0
jmp 0x46891d
push 1
mov ecx, edi
call sub.mfc90u.dll_CWnd::EnableWindow
mov byte [esp + 0x248], 0
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 dword [esp + 0x248], 0xffffffff
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 ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00532776
mov esp, ebp
pop ebp
ret