Function at 0x40fb71
Capabilities:
Check if file exists

Disassembly:
push 0x5c
mov eax, 0x42144e
call fcn.0041f5c2
mov eax, dword [0x433bb0]
mov esi, 0x433bb0
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.0040f8f3
test al, al
jne 0x40fbc6
push str.Load_String_Bundle:_Get_Base_Dir_fail_
push 0x427440
call fcn.004151bb
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004016a4
xor eax, eax
call fcn.0041f69a
ret
push 0x5c
lea edi, [ebp - 0x10]
call fcn.00412597
push 0x2f
call fcn.00412597
mov eax, dword [0x433bb0]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
call fcn.0040f9b6
push eax
lea eax, [ebp - 0x18]
push str.I18n_luBaseStringBundle.xml
push eax
call fcn.00405c6b
mov esi, dword [ebp - 0x18]
add esp, 0xc
push dword [esi - 0xc]
mov eax, edi
push esi
call fcn.00405882
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40fc41
push edi
push str.Load_String_Bundle:_no_exist___s
push 0x427440
call fcn.004151bb
add esp, 0xc
lea eax, [esi - 0x10]
call fcn.004016a4
lea eax, [edi - 0x10]
jmp 0x40fbb9
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 0x40fc7f
push str.Load_String_Bundle:_Load_File_fail_
push 0x427440
call fcn.004151bb
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 0x40fc31
lea ecx, [ebp - 0x68]
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlDocument::RootElement_void_]
cmp eax, ebx
jne 0x40fcc1
push str.Load_String_Bundle:_Get_Root_Element_fail_
push 0x427440
call fcn.004151bb
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.004016a4
lea eax, [edi - 0x10]
call fcn.004016a4
mov eax, ebx
jmp 0x40fbc0
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 0x40fd5e
mov ecx, dword [ebp - 0x14]
push 0x42afd0
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 0x40fd47
test ebx, ebx
je 0x40fd47
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00414c56
lea eax, [ebp - 0x1c]
push ebx
push eax
mov byte [ebp - 4], 3
call fcn.00414c56
add esp, 0x10
push 0x434024
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00404c1f
mov edi, eax
lea eax, [ebp - 0x1c]
call fcn.00404856
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004016a4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004016a4
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 0x40fcd4
mov edi, dword [ebp - 0x10]
xor ebx, ebx
inc ebx
jmp 0x40fc9d