Function at 0x413986
Capabilities:
Check if file exists

Disassembly:
push 0x64
mov eax, 0x42517f
call fcn.0042318c
xor edi, edi
mov dword [ebp - 4], edi
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 0x4139d1
push str.Load_String_Bundle:_Get_Base_Dir_fail_
push 0x426aec
call fcn.00419776
mov esi, dword [ebp - 0x10]
pop ecx
pop ecx
jmp 0x413b90
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.004135d5
push 0x2f
lea ecx, [ebp - 0x10]
call fcn.004135d5
mov byte [ebp - 4], 2
call fcn.00401b0a
push eax
lea ecx, [ebp - 0x18]
call fcn.00401564
mov byte [ebp - 4], 3
call fcn.00413f8e
push eax
lea eax, [ebp - 0x18]
push str.I18n_luBaseStringBundle.xml
push eax
call fcn.0040731f
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
add esp, 0xc
lea ebx, [eax - 0x10]
push dword [ebx + 4]
mov dword [ebp - 0x28], ebx
push eax
call fcn.00406e96
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413a4d
push esi
push str.Load_String_Bundle:_no_exist___s
push 0x426aec
call fcn.00419776
add esp, 0xc
jmp 0x413b89
lea ecx, [ebp - 0x70]
call dword [sym.imp.tinyxml.dll_public:_void___thiscall_TiXmlDocument::constructor_void_]
push edi
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call dword [sym.imp.tinyxml.dll_public:_bool___thiscall_TiXmlDocument::LoadFile_wchar_t_const___enum_TiXmlEncoding_]
test al, al
jne 0x413a70
push str.Load_String_Bundle:_Load_File_fail_
jmp 0x413a82
lea ecx, [ebp - 0x70]
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlDocument::RootElement_void_]
test eax, eax
jne 0x413a93
push str.Load_String_Bundle:_Get_Root_Element_fail_
push 0x426aec
call fcn.00419776
pop ecx
pop ecx
jmp 0x413b80
mov ecx, eax
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlNode::FirstChildElement_void_]
jmp 0x413b70
push 0x42e4e8
mov ecx, ebx
call dword [sym.imp.tinyxml.dll_public:_char_const____thiscall_TiXmlElement::Attribute_char_const__const]
mov ecx, ebx
mov dword [ebp - 0x20], eax
call dword [sym.imp.tinyxml.dll_public:_char_const____thiscall_TiXmlElement::GetText_void_const]
mov edi, eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x413b68
test edi, edi
je 0x413b68
push ecx
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.00419201
mov edx, edi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.00419201
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 6
push eax
mov ecx, 0x437e80
call fcn.0040780c
mov edi, eax
cmp edi, dword [0x437e80]
je 0x413b1a
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
push dword [edi + 0x10]
call fcn.00406864
mov byte [ebp - 4], 6
test eax, eax
jns 0x413b42
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push ecx
push eax
push ecx
call fcn.00416bbc
push eax
add eax, 0x10
mov ecx, 0x437e80
push eax
push edi
lea eax, [ebp - 0x24]
push eax
call fcn.0040798c
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 0x14]
call fcn.0040650f
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov ecx, ebx
call dword [sym.imp.tinyxml.dll_public:_class_TiXmlElement____thiscall_TiXmlNode::NextSiblingElement_void_]
mov ebx, eax
test ebx, ebx
jne 0x413aa0
mov ebx, dword [ebp - 0x28]
xor edi, edi
inc edi
lea ecx, [ebp - 0x70]
call dword [sym.imp.tinyxml.dll_public_virtual:_void___thiscall_TiXmlDocument::destructor_void_]
mov ecx, ebx
call fcn.0040188c
lea ecx, [esi - 0x10]
call fcn.0040188c
mov eax, edi
call fcn.00423155
ret