Function at 0x4105a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458423
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x4749e0]
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
xor eax, eax
push eax
mov ebx, ecx
push 0x460c30
lea esi, [ebp - 0x40]
mov dword [ebp - 0x44], ebx
mov edi, edx
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x3c], ax
call fcn.00403640
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 0x2c]
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x410605
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [ebp - 0x40]
call fcn.00403640
push 0x15
push str._resourcesDictionary
mov ecx, esi
call fcn.00408f70
push 1
push 0x461284
mov ecx, esi
call fcn.00408f70
lea esi, [ebp - 0x24]
call fcn.00410930
mov eax, esi
push eax
push 8
push edi
call fcn.00432288
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410655
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00408f70
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410676
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0xbc]
push edi
call fcn.00403640
push 0x11
push str._stringTable.zdct
lea ecx, [ebp - 0x40]
call fcn.00408f70
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
jae 0x4106ad
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x44]
push eax
mov eax, dword [edx + 0x50]
push str.Dictionary_Path:__s
mov ebx, 0x461120
call fcn.00415e40
mov eax, dword [ebp - 0x3c]
add esp, 8
cmp dword [ebp - 0x28], 8
jae 0x4106d2
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4107cf
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x50]
push str.Error_finding_locale_language_dictionary_file._Defaulting_to_english.
mov ebx, 0x461120
call fcn.00415ea0
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 0x50]
add esp, 4
push str.Searching_for_en_US_locale_dictionary.
call fcn.00415e10
add esp, 4
push 0x46473c
push 8
push edi
call fcn.00432288
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410721
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00403640
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx + 0x2c]
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x410742
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [ebp - 0x40]
call fcn.00403640
push 0x15
push str._resourcesDictionary
mov ecx, esi
call fcn.00408f70
push 6
push str.en_US
mov ecx, esi
call fcn.00408f70
push 0x11
push str._stringTable.zdct
mov ecx, esi
call fcn.00408f70
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
jae 0x410791
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4107cf
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x50]
push str.Error_finding_english_dictionary_file.
mov ebx, 0x461120
call fcn.00415ea0
add esp, 4
cmp dword [ebp - 0x28], 8
jb 0x4108bd
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00416414
add esp, 4
jmp 0x4108bd
mov byte [ebp - 4], 1
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
jae 0x4107df
lea eax, [ebp - 0x3c]
push 0x466728
push eax
call fcn.00433f87
add esp, 8
push eax
lea edx, [ebp - 0xd8]
push edx
call fcn.004116e0
mov esi, dword [ebp - 0x44]
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x100]
push eax
call fcn.0044ec80
lea ecx, [ebp - 0xd0]
call fcn.00412a00
test eax, eax
jne 0x41084d
mov ecx, dword [ebp - 0xd8]
mov ecx, dword [ecx + 4]
mov eax, dword [ebp + ecx - 0xd0]
lea ecx, [ebp + ecx - 0xd8]
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x410845
or eax, 4
push 0
push eax
call fcn.0040c2b0
mov eax, dword [esi + 0x50]
push str.Dictionary_reading_successful.
mov ebx, 0x461120
call fcn.00415e10
add esp, 4
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00411780
lea edx, [ebp - 0x80]
push edx
mov dword [ebp - 0x80], vtable.std::ios_base.0
call fcn.0044e647
add esp, 4
cmp dword [ebp - 0x28], 8
jb 0x410893
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00416414
add esp, 4
mov al, 1
jmp 0x4108bf
xor al, al
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.004321fe
mov esp, ebp
pop ebp
ret