Function at 0x413f8e
Capabilities:
Check if file exists

Disassembly:
push 0x54
mov eax, 0x4251ff
call fcn.0042318c
mov eax, dword [0x4379bc]
test eax, eax
je 0x413fc0
push eax
push str.GetLCID:_from_arg__lu
push 0x426aec
call fcn.00419776
mov eax, dword [0x4379bc]
add esp, 0xc
jmp 0x414122
and dword [ebp - 4], 0
call fcn.00401b0a
push eax
lea ecx, [ebp - 0x10]
call fcn.00401564
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.00413eb9
test al, al
jne 0x414006
push str.GetLCID:_Get_Base_Dir_fail_
push 0x426aec
call fcn.00419776
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov esi, dword [ebp - 0x10]
mov edi, eax
jmp 0x414118
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.004135d5
push 0x2f
lea ecx, [ebp - 0x10]
call fcn.004135d5
mov esi, str.I18nconfig.xml
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00406e96
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41405f
push esi
push str.GetLCID:_config_not_exist___s
push 0x426aec
call fcn.00419776
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov edi, eax
jmp 0x414118
lea ecx, [ebp - 0x60]
call dword [sym.imp.tinyxml.dll_public:_void___thiscall_TiXmlDocument::constructor_void_]
push 0
push esi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call dword [sym.imp.tinyxml.dll_public:_bool___thiscall_TiXmlDocument::LoadFile_wchar_t_const___enum_TiXmlEncoding_]
test al, al
jne 0x414083
push str.GetLCID:_Load_File_fail_
jmp 0x414097
lea ecx, [ebp - 0x60]
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlDocument::RootElement_void_]
mov ebx, eax
test ebx, ebx
jne 0x4140ad
push str.GetLCID:_Get_Root_Element_fail_
push 0x426aec
call fcn.00419776
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov edi, eax
jmp 0x41410f
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ecx, ebx
mov edi, eax
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlNode::FirstChildElement_void_]
jmp 0x4140f6
mov ecx, ebx
call dword [sym.imp.tinyxml.dll_public:_char_const____thiscall_TiXmlNode::Value_void_const]
test eax, eax
je 0x4140ee
push str.locale
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcmp]
pop ecx
pop ecx
test eax, eax
jne 0x4140ee
push 0x42e4e8
mov ecx, ebx
call dword [sym.imp.tinyxml.dll_public:_char_const____thiscall_TiXmlElement::Attribute_char_const__const]
test eax, eax
jne 0x414128
mov ecx, ebx
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlNode::NextSiblingElement_void_]
mov ebx, eax
test ebx, ebx
jne 0x4140bf
push edi
push str.GetLCID:_from_default__lu
push 0x426aec
call fcn.00419776
add esp, 0xc
lea ecx, [ebp - 0x60]
call dword [sym.imp.tinyxml.dll_public_virtual:_void___thiscall_TiXmlDocument::destructor_void_]
lea ecx, [esi - 0x10]
call fcn.0040188c
mov eax, edi
call fcn.00423155
ret
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push 0xa
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov edi, eax
push edi
push str.GetLCID:_from_config__lu
push 0x426aec
call fcn.00419776
add esp, 0x18
jmp 0x41410f