Function at 0x412252
Capabilities:
Check if file exists

Disassembly:
push 0x54
mov eax, 0x423465
call fcn.00421cd2
mov eax, dword [0x435134]
test eax, eax
je 0x412285
push eax
push str.GetLCID:_from_arg__lu
push 0x429460
call fcn.00417869
mov eax, dword [0x435134]
add esp, 0xc
call fcn.00421daa
ret
mov eax, dword [0x435bb0]
mov ecx, 0x435bb0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea ebx, [ebp - 0x10]
call fcn.0041218f
test al, al
jne 0x4122d0
push str.GetLCID:_Get_Base_Dir_fail_
push 0x429460
call fcn.00417869
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040167f
mov eax, esi
jmp 0x41227f
push 0x5c
lea edi, [ebp - 0x10]
call fcn.00411514
push 0x2f
call fcn.00411514
push str.I18nconfig.xml
mov eax, edi
push eax
call fcn.00404ad8
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412312
push dword [ebp - 0x10]
push str.GetLCID:_config_not_exist___s
push 0x429460
call fcn.00417869
add esp, 0xc
jmp 0x4122b9
lea ecx, [ebp - 0x60]
call dword [sym.imp.tinyxml.dll_public:_void___thiscall_TiXmlDocument::constructor_void_]
xor ebx, ebx
push ebx
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
lea ecx, [ebp - 0x60]
call dword [sym.imp.tinyxml.dll_public:_bool___thiscall_TiXmlDocument::LoadFile_wchar_t_const___enum_TiXmlEncoding_]
test al, al
jne 0x41235c
push str.GetLCID:_Load_File_fail_
push 0x429460
call fcn.00417869
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
lea ecx, [ebp - 0x60]
mov esi, eax
mov byte [ebp - 4], bl
call dword [sym.imp.tinyxml.dll_public_virtual:_void___thiscall_TiXmlDocument::destructor_void_]
jmp 0x4122c1
lea ecx, [ebp - 0x60]
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlDocument::RootElement_void_]
mov esi, eax
cmp esi, ebx
jne 0x412372
push str.GetLCID:_Get_Root_Element_fail_
jmp 0x412337
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ecx, esi
mov edi, eax
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlNode::FirstChildElement_void_]
jmp 0x4123ba
mov ecx, esi
call dword [sym.imp.tinyxml.dll_public:_char_const____thiscall_TiXmlNode::Value_void_const]
cmp eax, ebx
je 0x4123b2
push str.locale
push eax
call sub.MSVCR80.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x4123b2
push 0x42d250
mov ecx, esi
call dword [sym.imp.tinyxml.dll_public:_char_const____thiscall_TiXmlElement::Attribute_char_const__const]
cmp eax, ebx
jne 0x4123e6
mov ecx, esi
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlNode::NextSiblingElement_void_]
mov esi, eax
cmp esi, ebx
jne 0x412384
push edi
push str.GetLCID:_from_default__lu
push 0x429460
call fcn.00417869
add esp, 0xc
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call dword [sym.imp.tinyxml.dll_public_virtual:_void___thiscall_TiXmlDocument::destructor_void_]
mov esi, edi
jmp 0x4122c1
push 0xa
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.MSVCR80.dll_strtoul]
mov edi, eax
push edi
push str.GetLCID:_from_config__lu
push 0x429460
call fcn.00417869
add esp, 0x18
jmp 0x4123d3