Function at 0x416310
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591f71
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x15c], ebx
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x130], eax
mov byte [ebp - 0x131], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
mov dword [ebp - 4], edx
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], edx
mov word [ebp - 0x5c], dx
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 1
push edx
push ecx
push eax
call fcn.00415630
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00407320
push 1
push 0x5ea858
lea ecx, [ebp - 0x2c]
call fcn.0040e970
cmp dword [ebx + 0x3c], 8
lea edx, [ebx + 0x28]
jb 0x4163d2
mov edx, dword [edx]
cmp word [edx], 0
jne 0x4163dc
xor ecx, ecx
jmp 0x4163f0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4163e1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040e970
push 0x11
push str._stringTable.zdct
lea ecx, [ebp - 0x2c]
call fcn.0040e970
mov eax, fcn.004103d0
test eax, eax
je 0x416441
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push 0x5eadf8
push 0x5e83dc
push 0x5e83dc
push str.LocalizationManager
push str.C3App
push 0x1e
call fcn.004103d0
add esp, 0x1c
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x138], 7
cmovae edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x13c], 0
mov word [ebp - 0x14c], ax
cmp word [edx], ax
jne 0x416472
xor ecx, ecx
jmp 0x416486
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416477
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14c]
call fcn.004081c0
cmp dword [ebp - 0x138], 8
lea eax, [ebp - 0x14c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x14c]
push eax
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4164d5
cmp dword [ebp - 0x138], 8
lea eax, [ebp - 0x14c]
cmovae eax, dword [ebp - 0x14c]
push eax
call esi
mov al, 1
jmp 0x4164d7
xor al, al
test al, al
mov eax, dword [ebp - 0x138]
sete bl
cmp eax, 8
jb 0x4164fa
inc eax
lea ecx, [ebp - 0x14c]
push eax
push dword [ebp - 0x14c]
call fcn.00407210
test bl, bl
je 0x41679d
mov eax, fcn.004103d0
test eax, eax
je 0x41654e
push str.Error_finding_locale_language_dictionary_file._Defaulting_to_english.
push 0x5e83dc
push 0x5e83dc
push str.LocalizationManager
push str.C3App
push 0x32
call fcn.004103d0
push str.Searching_for_en_US_locale_dictionary.
push 0x5e83dc
push 0x5e83dc
push str.LocalizationManager
push str.C3App
push 0x32
call fcn.004103d0
add esp, 0x30
mov ecx, dword [ebp - 0x130]
push 0xffffffffffffffff
push 0
cmp dword [ecx + 0x10], 0
sete al
test al, al
je 0x416569
lea eax, [ebp - 0x5c]
push eax
jmp 0x41656a
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00407320
xor eax, eax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
cmp byte [ebp + 0x18], 1
mov byte [ebp - 4], 2
jne 0x4168e5
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x44]
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 7
call fcn.00407320
push dword [ebp - 0x154]
mov ecx, dword [ebp - 0x15c]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
push dword [ebp - 0x158]
call fcn.00415710
push 1
push 0x5ea858
lea ecx, [ebp - 0x44]
call fcn.0040e970
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040eaa0
push 0x11
push str._stringTable.zdct
lea ecx, [ebp - 0x44]
call fcn.0040e970
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x14c]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.004080d0
cmp dword [ebp - 0x138], 8
lea eax, [ebp - 0x14c]
cmovae eax, dword [ebp - 0x14c]
push eax
call edi
test eax, eax
je 0x41664f
cmp dword [ebp - 0x138], 8
lea eax, [ebp - 0x14c]
cmovae eax, dword [ebp - 0x14c]
push eax
call esi
mov al, 1
jmp 0x416651
xor al, al
test al, al
mov eax, dword [ebp - 0x138]
sete bl
cmp eax, 8
jb 0x416674
inc eax
lea ecx, [ebp - 0x14c]
push eax
push dword [ebp - 0x14c]
call fcn.00407210
test bl, bl
je 0x416763
mov esi, fcn.004103d0
test esi, esi
je 0x4166a8
push str.Error_finding_best_Locale_dictionary_file.
push 0x5e83dc
push 0x5e83dc
push str.LocalizationManager
push str.C3App
push 0x32
call fcn.004103d0
add esp, 0x18
push 1
push 0x5ea858
lea ecx, [ebp - 0x2c]
call fcn.0040e970
push 5
push str.en_US
lea ecx, [ebp - 0x2c]
call fcn.0040e970
push 0x11
push str._stringTable.zdct
lea ecx, [ebp - 0x2c]
call fcn.0040e970
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x14c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.004080d0
push ecx
lea edx, [ebp - 0x14d]
lea ecx, [ebp - 0x14c]
call fcn.00419ea0
add esp, 4
lea ecx, [ebp - 0x14c]
test al, al
sete bl
call fcn.00407140
test bl, bl
je 0x416773
test esi, esi
je 0x41673c
push str.Error_finding_english_dictionary_file.
push 0x5e83dc
push 0x5e83dc
push str.LocalizationManager
push str.C3App
push 0x32
call fcn.004103d0
add esp, 0x18
lea ecx, [ebp - 0x44]
call fcn.00407140
lea ecx, [ebp - 0x74]
call fcn.00407140
lea ecx, [ebp - 0x5c]
call fcn.00407140
lea ecx, [ebp - 0x2c]
call fcn.00407140
xor al, al
jmp 0x416a39
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407320
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x416788
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00407210
mov eax, dword [ebp - 0x60]
cmp eax, 8
jb 0x41679d
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00407210
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push 0x5eafa8
cmovae eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0
push eax
call fcn.005705ca
push 0xb8
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.00568da0
add esp, 0x14
lea ecx, [ebp - 0x12c]
push dword [ebp - 0x130]
call fcn.00416f60
mov ecx, dword [ebp - 0x160]
lea eax, [ebp - 0x12c]
push eax
mov byte [ebp - 4], 5
call fcn.00432450
lea ecx, [ebp - 0x11c]
call fcn.004183a0
test eax, eax
jne 0x41683c
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x12c]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x416834
or eax, 4
push 0
push eax
call fcn.00414c60
mov eax, fcn.004103d0
test eax, eax
je 0x416868
push str.Dictionary_reading_successful.
push 0x5e83dc
push 0x5e83dc
push str.LocalizationManager
push str.C3App
push 0x1e
call fcn.004103d0
add esp, 0x18
mov eax, dword [ebp - 0x12c]
mov bl, 1
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x130], eax
lea ecx, [ebp - 0x11c]
call fcn.00417810
mov eax, dword [ebp - 0x12c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x130], eax
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 6
push eax
mov dword [ebp - 0xbc], vtable.std::ios_base.0
call fcn.00563831
add esp, 4
jmp 0x4169f9
push 1
push 0x5ea858
lea ecx, [ebp - 0x2c]
call fcn.0040e970
push 5
push str.en_US
lea ecx, [ebp - 0x2c]
call fcn.0040e970
push 0x11
push str._stringTable.zdct
lea ecx, [ebp - 0x2c]
call fcn.0040e970
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x14c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.004080d0
cmp dword [ebp - 0x138], 8
lea eax, [ebp - 0x14c]
cmovae eax, dword [ebp - 0x14c]
push eax
call edi
test eax, eax
je 0x41695f
cmp dword [ebp - 0x138], 8
lea eax, [ebp - 0x14c]
cmovae eax, dword [ebp - 0x14c]
push eax
call esi
mov al, 1
jmp 0x416961
xor al, al
test al, al
mov eax, dword [ebp - 0x138]
sete bl
cmp eax, 8
jb 0x416984
inc eax
lea ecx, [ebp - 0x14c]
push eax
push dword [ebp - 0x14c]
call fcn.00407210
test bl, bl
je 0x416788
mov eax, fcn.004103d0
test eax, eax
je 0x416744
push str.Error_finding_english_dictionary_file.
push 0x5e83dc
push 0x5e83dc
push str.LocalizationManager
push str.C3App
push 0x32
call fcn.004103d0
add esp, 0x18
jmp 0x416744
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x416a0e
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00407210
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
cmp ecx, 8
jb 0x416a37
inc ecx
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.00407210
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00564ee1
mov esp, ebp
pop ebp
ret 0x14