Function at 0x4104b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547533
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x5a10e0]
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
xor esi, esi
mov ebx, ecx
mov word [ebp - 0x40], ax
push esi
mov eax, 0x576984
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], ebx
mov edi, edx
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], esi
call fcn.00403230
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x2c]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x410513
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x40]
call fcn.00403230
push 0x15
mov eax, str._resourcesDictionary
lea ecx, [ebp - 0x40]
call fcn.004089c0
push 1
mov eax, 0x5770cc
lea ecx, [ebp - 0x40]
call fcn.004089c0
lea esi, [ebp - 0x24]
call fcn.00410860
mov ecx, esi
push ecx
push 8
push edi
call fcn.0051641f
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410564
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x40]
call fcn.004089c0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410584
sub eax, edx
sar eax, 1
lea esi, [ebx + 0xb8]
push eax
mov eax, edi
mov ecx, esi
call fcn.00403230
push 0x11
mov eax, str._stringTable.zdct
lea ecx, [ebp - 0x40]
call fcn.004089c0
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x4105be
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x44]
push eax
mov eax, dword [edx + 0x50]
push str.Dictionary_Path:__s
mov ebx, 0x576f68
call fcn.00416090
mov eax, dword [ebp - 0x40]
add esp, 8
cmp dword [ebp - 0x2c], 8
jae 0x4105e3
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4106e2
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x50]
push str.Error_finding_locale_language_dictionary_file._Defaulting_to_english.
mov ebx, 0x576f68
call fcn.004160f0
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 0x50]
add esp, 4
push str.Searching_for_en_US_locale_dictionary.
call fcn.00416060
add esp, 4
push 0x57ab1c
push 8
push edi
call fcn.0051641f
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410632
sub eax, edx
sar eax, 1
push eax
mov eax, edi
mov ecx, esi
call fcn.00403230
mov edi, dword [ebp - 0x44]
mov eax, dword [edi + 0x2c]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x410656
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x40]
call fcn.00403230
push 0x15
mov eax, str._resourcesDictionary
lea ecx, [ebp - 0x40]
call fcn.004089c0
push 6
mov eax, str.en_US
lea ecx, [ebp - 0x40]
call fcn.004089c0
push 0x11
mov eax, str._stringTable.zdct
lea ecx, [ebp - 0x40]
call fcn.004089c0
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x4106a7
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4106e5
mov eax, dword [edi + 0x50]
push str.Error_finding_english_dictionary_file.
mov ebx, 0x576f68
call fcn.004160f0
add esp, 4
cmp dword [ebp - 0x2c], 8
jb 0x4107d9
mov edx, dword [ebp - 0x40]
push edx
call fcn.004166f8
add esp, 4
jmp 0x4107d9
mov edi, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x4106f5
lea eax, [ebp - 0x40]
push 0x57c7d0
push eax
call fcn.00517ded
add esp, 8
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.00411720
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 2
push ecx
mov ecx, dword [edi + 0xfc]
call fcn.00534160
lea ecx, [ebp - 0xe8]
call fcn.004127d0
test eax, eax
jne 0x410760
mov edx, dword [ebp - 0xf8]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0xec]
lea ecx, [ebp + ecx - 0xf8]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x410758
or eax, 4
push 0
push eax
call fcn.0040c4c0
mov eax, dword [edi + 0x50]
push str.Dictionary_reading_successful.
mov ebx, 0x576f68
call fcn.00416060
add esp, 4
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.00411800
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x90], vtable.std::ios_base.0
call fcn.0053365b
add esp, 4
cmp dword [ebp - 0x2c], 8
jb 0x4107af
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.004166f8
add esp, 4
mov al, 1
jmp 0x4107db
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.00515d64
mov esp, ebp
pop ebp
ret