Function at 0x40f492
Capabilities:
Check if file exists

Disassembly:
push 0x5c
mov eax, 0x420ce0
call fcn.0041ee92
mov eax, dword [0x432b20]
mov esi, 0x432b20
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.0040f214
test al, al
jne 0x40f4e7
push str.Load_String_Bundle:_Get_Base_Dir_fail_
push 0x426430
call fcn.00414b27
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
add eax, 0xfffffff0
call main
xor eax, eax
call fcn.0041ef6a
ret
push 0x5c
lea edi, [ebp - 0x10]
call fcn.00411eb8
push 0x2f
call fcn.00411eb8
mov eax, dword [0x432b20]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
call fcn.0040f2d7
push eax
lea eax, [ebp - 0x18]
push str.I18n_luBaseStringBundle.xml
push eax
call fcn.004058e5
mov esi, dword [ebp - 0x18]
add esp, 0xc
push dword [esi - 0xc]
mov eax, edi
push esi
call fcn.0040577c
mov edi, dword [ebp - 0x10]
push edi
call dword [0x422468]
test eax, eax
jne 0x40f562
push edi
push str.Load_String_Bundle:_no_exist___s
push 0x426430
call fcn.00414b27
add esp, 0xc
lea eax, [esi - 0x10]
call main
lea eax, [edi - 0x10]
jmp 0x40f4da
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 0x40f5a0
push str.Load_String_Bundle:_Load_File_fail_
push 0x426430
call fcn.00414b27
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 0x40f552
lea ecx, [ebp - 0x68]
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlDocument::RootElement_void_]
cmp eax, ebx
jne 0x40f5e2
push str.Load_String_Bundle:_Get_Root_Element_fail_
push 0x426430
call fcn.00414b27
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 main
lea eax, [edi - 0x10]
call main
mov eax, ebx
jmp 0x40f4e1
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 0x40f67f
mov ecx, dword [ebp - 0x14]
push 0x429c28
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 0x40f668
test ebx, ebx
je 0x40f668
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.004145c2
lea eax, [ebp - 0x1c]
push ebx
push eax
mov byte [ebp - 4], 3
call fcn.004145c2
add esp, 0x10
push 0x432f94
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00404bd7
mov edi, eax
lea eax, [ebp - 0x1c]
call fcn.00404802
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call main
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call main
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 0x40f5f5
mov edi, dword [ebp - 0x10]
xor ebx, ebx
inc ebx
jmp 0x40f5be