Function at 0x52be77
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], edi
test edi, edi
jne 0x52beac
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
call sym.txupd.exe_public:_void___thiscall_TiXmlDocument::SetError_int__char_const___class_TiXmlParsingData___enum_TiXmlEncoding_
xor al, al
jmp 0x52c08b
call sym.txupd.exe_public:_void___thiscall_TiXmlNode::Clear_void_
or dword [esi + 8], 0xffffffff
xor ebx, ebx
or dword [esi + 4], 0xffffffff
push 2
push ebx
push edi
call fcn.006ae31c
push edi
call fcn.006ae952
push ebx
push ebx
push dword [ebp - 0x44]
mov edi, eax
mov dword [ebp - 0x40], edi
call fcn.006ae31c
add esp, 0x1c
test edi, edi
jg 0x52bee9
push ebx
push ebx
push ebx
push 0xd
mov ecx, esi
jmp 0x52bea0
lea eax, [edi + 1]
push eax
call fcn.00682d64
push dword [ebp - 0x44]
mov edi, eax
mov eax, dword [ebp - 0x40]
push 1
push eax
push edi
mov byte [edi], bl
call fcn.006ade81
add esp, 0x14
push edi
cmp eax, 1
je 0x52bf1b
call fcn.00682d6d
pop ecx
push ebx
push ebx
push ebx
push 2
jmp 0x52bee5
mov esi, dword [ebp - 0x40]
lea ecx, [ebp - 0x34]
mov byte [edi + esi], bl
call fcn.0041910f
push str.encoding_GB2312_
call fcn.006a3810
pop ecx
push eax
push ebx
push str.encoding_GB2312_
lea ecx, [ebp - 0x34]
call fcn.0052d0fa
cmp eax, 0xffffffff
jne 0x52bf67
push str.encoding_gb2312_
call fcn.006a3810
pop ecx
push eax
push ebx
push str.encoding_gb2312_
lea ecx, [ebp - 0x34]
call fcn.0052d0fa
cmp eax, 0xffffffff
je 0x52bfc7
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
mov dword [ebp - 8], 0xf
cmovae eax, dword [ebp - 0x34]
push eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x1c], bl
call fcn.0055cd48
mov esi, dword [ebp - 0xc]
push edi
mov dword [ebp - 0x40], esi
call fcn.00682d6d
lea eax, [esi + 1]
push eax
call fcn.00682d64
cmp dword [ebp - 8], 0x10
mov edi, eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push esi
push eax
push edi
call fcn.00689000
add esp, 0x20
mov byte [edi + esi], bl
lea ecx, [ebp - 0x1c]
push ebx
push 1
call fcn.004191aa
push esi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x7b6874
call fcn.0052e836
mov eax, dword [ebp - 0x40]
mov ecx, edi
mov esi, edi
mov byte [edi + eax], bl
cmp byte [edi], bl
je 0x52c03a
mov al, byte [esi]
cmp al, 0xa
jne 0x52bffd
mov eax, esi
sub eax, ecx
inc eax
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0052e777
inc esi
jmp 0x52c031
cmp al, 0xd
jne 0x52c035
mov eax, esi
sub eax, ecx
test eax, eax
jle 0x52c013
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0052e777
push 1
lea eax, [ebp - 0x38]
mov byte [ebp - 0x38], 0xa
push eax
lea ecx, [ebp - 0x3c]
call fcn.0052e777
xor eax, eax
cmp byte [esi + 1], 0xa
sete al
inc eax
add esi, eax
mov ecx, esi
jmp 0x52c036
inc esi
cmp byte [esi], bl
jne 0x52bfe5
sub esi, ecx
je 0x52c048
push esi
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0052e777
push edi
call fcn.00682d6d
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x3c]
pop ecx
push dword [ebp + 0xc]
mov edx, dword [esi]
add eax, 8
push ebx
push eax
mov ecx, esi
call dword [edx + 8]
cmp byte [esi + 0x2c], bl
sete byte [ebp - 0x38]
cmp dword [ebp - 0x3c], 0x7b6874
je 0x52c07d
push dword [ebp - 0x3c]
call fcn.00682d6d
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.004191aa
mov al, byte [ebp - 0x38]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00682c16
mov esp, ebp
pop ebp
ret 8