Function at 0x4c3a00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500d18
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x52a51c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4c3a87
cmp byte [ebx + 0x2c], 0
jne 0x4c3a71
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 2
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c3a50
sub ecx, esi
push ecx
push edx
lea ecx, [ebx + 0x34]
call fcn.004c2500
mov dword [ebx + 0x40], 0xffffffff
mov dword [ebx + 0x3c], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x4c3a9f
mov edi, edi
mov ecx, esi
mov esi, dword [esi + 0x28]
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x4c3a90
push 2
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
push 0
push edi
mov dword [ebx + 8], 0xffffffff
mov dword [ebx + 4], 0xffffffff
call fcn.004cc513
push edi
call fcn.004cc418
push 0
push 0
push edi
mov esi, eax
call fcn.004cc513
add esp, 0x1c
test esi, esi
jg 0x4c3b0c
cmp byte [ebx + 0x2c], 0
jne 0x4c3a71
mov edx, dword [str.Error_document_empty.]
mov ecx, edx
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 0xd
lea esi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c3b00
jmp 0x4c3a57
mov dword [ebp - 0x10], 0x53b180
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.004c2440
lea eax, [esi + 1]
push eax
call fcn.004c96bf
push edi
push 1
push esi
push eax
mov dword [ebp - 0x18], eax
mov byte [eax], 0
call fcn.004cbfb6
add esp, 0x14
cmp eax, 1
je 0x4c3b9b
push dword [ebp - 0x18]
call fcn.0044bc50
add esp, 4
cmp byte [ebx + 0x2c], 0
jne 0x4c3b91
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 2
lea esi, [ecx + 1]
jmp 0x4c3b70
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c3b70
sub ecx, esi
push ecx
push edx
lea ecx, [ebx + 0x34]
call fcn.004c2500
mov dword [ebx + 0x40], 0xffffffff
mov dword [ebx + 0x3c], 0xffffffff
mov esi, dword [ebp - 0x10]
xor bl, bl
jmp 0x4c3d05
mov ecx, dword [ebp - 0x18]
mov ebx, ecx
lea eax, [ecx + esi]
mov esi, dword [ebp - 0x10]
mov byte [eax], 0
mov edi, ecx
mov dword [ebp - 0x14], eax
cmp byte [ecx], 0
je 0x4c3ccb
cmp edi, eax
jb 0x4c3bd2
push 0x40f
push str.tinyxml_tinyxml.cpp
push 0x518e34
call fcn.004c9b81
add esp, 0xc
mov al, byte [edi]
cmp al, 0xa
jne 0x4c3c42
mov eax, dword [esi]
mov ecx, edi
mov edx, dword [esi + 4]
sub ecx, ebx
inc ecx
add eax, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 0x1c], eax
cmp eax, edx
jbe 0x4c3bff
add eax, edx
lea ecx, [ebp - 0x10]
push eax
call fcn.004c2440
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
push ecx
add eax, 8
add eax, esi
push ebx
push eax
call fcn.004c8c20
mov eax, dword [ebp - 0x1c]
inc edi
mov dword [esi], eax
add esp, 0xc
mov ebx, edi
mov byte [eax + esi + 8], 0
mov eax, dword [ebp - 0x14]
cmp edi, eax
jbe 0x4c3cc2
push 0x416
push str.tinyxml_tinyxml.cpp
push str.p____buflength_
call fcn.004c9b81
add esp, 0xc
jmp 0x4c3cbf
cmp al, 0xd
jne 0x4c3cbe
mov eax, edi
sub eax, ebx
test eax, eax
jle 0x4c3c5b
push eax
push ebx
lea ecx, [ebp - 0x10]
call fcn.004c25e0
mov esi, dword [ebp - 0x10]
mov byte [ebp + 8], 0xa
mov ebx, dword [esi]
mov eax, dword [esi + 4]
inc ebx
cmp ebx, eax
jbe 0x4c3c77
add eax, ebx
lea ecx, [ebp - 0x10]
push eax
call fcn.004c2440
mov esi, dword [ebp - 0x10]
push 1
lea eax, [ebp + 8]
push eax
mov eax, dword [esi]
add eax, 8
add eax, esi
push eax
call fcn.004c8c20
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [esi], ebx
mov byte [ebx + esi + 8], 0
cmp byte [edi + 1], 0xa
jne 0x4c3cad
add edi, 2
mov ebx, edi
cmp edi, eax
jbe 0x4c3cc2
push 0x424
jmp 0x4c3c2e
inc edi
mov ebx, edi
cmp edi, eax
jbe 0x4c3cc2
push 0x42a
jmp 0x4c3c2e
inc edi
mov eax, dword [ebp - 0x14]
cmp byte [edi], 0
jne 0x4c3bb7
sub edi, ebx
je 0x4c3cdc
push edi
push ebx
lea ecx, [ebp - 0x10]
call fcn.004c25e0
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.0044bc50
mov edi, dword [ebp - 0x20]
lea eax, [esi + 8]
add esp, 4
mov ecx, edi
mov edx, dword [edi]
push 0
push 0
push eax
call dword [edx + 8]
cmp byte [edi + 0x2c], 0
je 0x4c3d03
xor bl, bl
jmp 0x4c3d05
mov bl, 1
cmp esi, 0x53b180
je 0x4c3d16
push esi
call fcn.004ca225
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8