Function at 0x40cd1b
Capabilities:
Check if file exists

Disassembly:
push 0x5c
mov eax, 0x41bb5f
call fcn.0041a21e
mov eax, dword [0x429220]
mov esi, 0x429220
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea ebx, [ebp - 0x10]
call fcn.0040cabd
test al, al
jne 0x40cd70
push str.Load_String_Bundle:_Get_Base_Dir_fail_
push 0x41e71c
call fcn.0041209a
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004016a2
xor eax, eax
call fcn.0041a2f6
ret
push 0x5c
lea edi, [ebp - 0x10]
call fcn.0040f39c
push 0x2f
call fcn.0040f39c
mov eax, dword [0x429220]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
call fcn.0040cb80
push eax
lea eax, [ebp - 0x18]
push str.I18n_luBaseStringBundle.xml
push eax
call fcn.0040541a
mov esi, dword [ebp - 0x18]
add esp, 0xc
push dword [esi - 0xc]
mov eax, edi
push esi
call fcn.004052f4
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40cdeb
push edi
push str.Load_String_Bundle:_no_exist___s
push 0x41e71c
call fcn.0041209a
add esp, 0xc
lea eax, [esi - 0x10]
call fcn.004016a2
lea eax, [edi - 0x10]
jmp 0x40cd63
lea ecx, [ebp - 0x68]
call dword [sym.imp.tinyxml.dll_public:_void___thiscall_TiXmlDocument::constructor_void_]
xor ebx, ebx
push ebx
push edi
lea ecx, [ebp - 0x68]
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 0x40ce29
push str.Load_String_Bundle:_Load_File_fail_
push 0x41e71c
call fcn.0041209a
pop ecx
pop ecx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call dword [sym.imp.tinyxml.dll_public_virtual:_void___thiscall_TiXmlDocument::destructor_void_]
jmp 0x40cddb
lea ecx, [ebp - 0x68]
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlDocument::RootElement_void_]
cmp eax, ebx
jne 0x40ce6b
push str.Load_String_Bundle:_Get_Root_Element_fail_
push 0x41e71c
call fcn.0041209a
pop ecx
pop ecx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call dword [sym.imp.tinyxml.dll_public_virtual:_void___thiscall_TiXmlDocument::destructor_void_]
lea eax, [esi - 0x10]
call fcn.004016a2
lea eax, [edi - 0x10]
call fcn.004016a2
mov eax, ebx
jmp 0x40cd6a
mov ecx, eax
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlNode::FirstChildElement_void_]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x40cf08
mov ecx, dword [ebp - 0x14]
push 0x422ed8
call dword [sym.imp.tinyxml.dll_public:_char_const____thiscall_TiXmlElement::Attribute_char_const__const]
mov ecx, dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.tinyxml.dll_public:_char_const____thiscall_TiXmlElement::GetText_void_const]
test edi, edi
mov ebx, eax
je 0x40cef1
test ebx, ebx
je 0x40cef1
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00411b49
lea eax, [ebp - 0x1c]
push ebx
push eax
mov byte [ebp - 4], 3
call fcn.00411b49
add esp, 0x10
push 0x429674
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.0040488d
mov edi, eax
lea eax, [ebp - 0x1c]
call fcn.004045b0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004016a2
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004016a2
mov ecx, dword [ebp - 0x14]
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlNode::NextSiblingElement_void_]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x40ce7e
mov edi, dword [ebp - 0x10]
xor ebx, ebx
inc ebx
jmp 0x40ce47