Function at 0x111013d4
Capabilities:
Read file on windows

Disassembly:
jmp 0x11104176
push 0x4c
mov eax, 0x11109a7f
call fcn.11107e72
mov esi, dword [ebp + 8]
xor edi, edi
cmp esi, edi
mov ebx, ecx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x4c], esi
jne 0x111041a7
push edi
push edi
push edi
push 2
call sym.tinyxml.dll_public:_void___thiscall_TiXmlDocument::SetError_int__char_const___class_TiXmlParsingData___enum_TiXmlEncoding_
xor al, al
call fcn.11107ef5
ret 8
call sym.tinyxml.dll_public:_void___thiscall_TiXmlNode::Clear_void_
or dword [ebx + 8], 0xffffffff
or dword [ebx + 4], 0xffffffff
push 2
push edi
mov edi, dword [sym.imp.MSVCR80.dll_fseek]
push esi
call edi
push esi
call dword [sym.imp.MSVCR80.dll_ftell]
push 0
push 0
push dword [ebp - 0x4c]
mov esi, eax
call edi
xor eax, eax
add esp, 0x1c
cmp esi, eax
jg 0x111041e4
push eax
push eax
push eax
push 0xd
mov ecx, ebx
jmp 0x11104198
lea eax, [esi + 1]
push eax
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
push dword [ebp - 0x4c]
mov edi, eax
push 1
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x14
cmp eax, 1
push edi
je 0x11104217
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
xor eax, eax
push eax
push eax
push eax
push 2
jmp 0x111041e0
lea ebx, [edi + esi]
lea ecx, [ebp - 0x2c]
mov byte [ebx], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
and dword [ebp - 4], 0
push 0
push str.encoding_GB2312_
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [ecx], eax
jne 0x1110425e
push 0
push str.encoding_gb2312_
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [ecx], eax
je 0x111042c5
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 1
jae 0x11104277
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x18]
push eax
call fcn.1110102d
mov esi, dword [ebp - 0x34]
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
lea eax, [esi + 1]
push eax
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
add esp, 0x14
cmp dword [ebp - 0x30], 0x10
mov edi, eax
mov eax, dword [ebp - 0x44]
jae 0x111042a7
lea eax, [ebp - 0x44]
push esi
push eax
push edi
call sub.MSVCR80.dll_memcpy
lea ebx, [edi + esi]
add esp, 0xc
lea ecx, [ebp - 0x48]
mov byte [ebx], 0
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 0x50], 0x111131c8
push esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.11101357
mov byte [ebx], 0
cmp byte [edi], 0
mov dword [ebp - 0x4c], edi
mov esi, edi
je 0x1110439d
cmp esi, ebx
jb 0x11104306
push 0x4a9
push 0x1110c7f8
push str.p____buflength_
call dword [sym.imp.MSVCR80.dll__wassert]
add esp, 0xc
mov al, byte [esi]
cmp al, 0xa
jne 0x1110432d
mov eax, esi
sub eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x50]
inc eax
push eax
push dword [ebp - 0x4c]
call fcn.111013ca
inc esi
cmp esi, ebx
mov dword [ebp - 0x4c], esi
jbe 0x11104394
push 0x4b0
jmp 0x1110437e
cmp al, 0xd
jne 0x11104393
mov eax, esi
sub eax, dword [ebp - 0x4c]
test eax, eax
jle 0x11104346
push eax
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x50]
call fcn.111013ca
push 1
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x54], 0xa
call fcn.111013ca
lea eax, [esi + 1]
cmp byte [eax], 0xa
jne 0x11104370
inc esi
inc esi
cmp esi, ebx
mov dword [ebp - 0x4c], esi
jbe 0x11104394
push 0x4be
jmp 0x1110437e
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x4c], esi
jbe 0x11104394
push 0x4c4
push 0x1110c7f8
push 0x1110cb74
call dword [sym.imp.MSVCR80.dll__wassert]
add esp, 0xc
jmp 0x11104394
inc esi
cmp byte [esi], 0
jne 0x111042ea
sub esi, dword [ebp - 0x4c]
je 0x111043ae
push esi
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x50]
call fcn.111013ca
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov esi, dword [ebp - 0x58]
mov eax, dword [esi]
pop ecx
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x50]
add ecx, 8
push 0
push ecx
mov ecx, esi
call dword [eax + 8]
cmp byte [esi + 0x2c], 0
je 0x111043f9
cmp dword [ebp - 0x50], 0x111131c8
je 0x111043e3
push dword [ebp - 0x50]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, bl
jmp 0x1110419f
cmp dword [ebp - 0x50], 0x111131c8
je 0x1110440b
push dword [ebp - 0x50]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
mov bl, 1
jmp 0x111043e5