Function at 0x476080
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4e4928
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
mov edi, dword [esp + 0xa8]
mov eax, dword [esp + 0xa0]
push edi
call fcn.00474920
add esp, 4
mov ebp, eax
mov esi, ebx
test ebx, ebx
je 0x4760e8
nop
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
test eax, eax
jne 0x476276
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x4760d0
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x18]
test ebp, ebp
je 0x476462
cmp byte [ebp], 0
je 0x476462
push edi
push 1
mov eax, str.__xml
mov ecx, ebp
call fcn.00474c10
add esp, 8
test al, al
je 0x476462
mov esi, dword [esp + 0xa4]
test esi, esi
je 0x47613f
push edi
push ebp
mov edi, esi
call fcn.00474730
mov eax, dword [esi]
mov dword [ebx + 4], eax
mov ecx, dword [esi + 4]
mov dword [ebx + 8], ecx
lea edi, [ebx + 0x2c]
xor esi, esi
mov ebx, 0x4f65b8
add ebp, 5
mov dword [esp + 0x18], edi
call fcn.00474450
mov edi, dword [esp + 0x1c]
add edi, 0x30
mov dword [esp + 0x20], edi
call fcn.00474450
mov edi, dword [esp + 0x1c]
add edi, 0x34
mov dword [esp + 0x1c], edi
call fcn.00474450
xor ebx, ebx
cmp ebp, ebx
je 0x4764a2
nop
mov al, byte [ebp]
cmp al, bl
je 0x4764a2
cmp al, 0x3e
je 0x47645d
mov esi, dword [esp + 0xa8]
push esi
mov eax, ebp
call fcn.00474920
mov ebp, eax
push esi
push 1
mov eax, str.version
mov ecx, ebp
call fcn.00474c10
add esp, 0xc
test al, al
je 0x47628a
or eax, 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov eax, 0x51b3a8
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], vtable.TiXmlAttribute.0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov edx, dword [esp + 0xa4]
push esi
push edx
push ebp
lea ecx, [esp + 0x30]
mov dword [esp + 0xa4], ebx
call fcn.00475ce0
mov edi, dword [esp + 0x3c]
add edi, 8
mov ebp, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x476216
sub eax, esi
mov ebx, edi
mov edi, dword [esp + 0x18]
mov esi, eax
call fcn.00474450
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esp + 0x3c]
cmp eax, 0x51b3a8
je 0x47624b
push eax
call fcn.004ca7dd
add esp, 4
mov eax, dword [esp + 0x38]
cmp eax, 0x51b3a8
je 0x47625f
push eax
call fcn.004ca7dd
add esp, 4
mov dword [esp + 0x24], vtable.TiXmlBase.0
xor ebx, ebx
cmp ebp, ebx
jne 0x476180
jmp 0x4764a2
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x4760f4
push esi
push 1
mov eax, str.encoding
mov ecx, ebp
call fcn.00474c10
add esp, 8
test al, al
je 0x476356
or eax, 0xffffffff
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
mov eax, 0x51b3a8
mov dword [esp + 0x54], ebx
mov dword [esp + 0x48], vtable.TiXmlAttribute.0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
mov eax, dword [esp + 0xa4]
push esi
push eax
push ebp
lea ecx, [esp + 0x54]
mov dword [esp + 0xa4], 1
call fcn.00475ce0
mov edi, dword [esp + 0x60]
add edi, 8
mov ebp, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x476300
sub eax, esi
mov ebx, edi
mov edi, dword [esp + 0x20]
mov esi, eax
call fcn.00474450
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esp + 0x60]
cmp eax, 0x51b3a8
je 0x476335
push eax
call fcn.004ca7dd
add esp, 4
mov eax, dword [esp + 0x5c]
cmp eax, 0x51b3a8
je 0x476349
push eax
call fcn.004ca7dd
add esp, 4
mov dword [esp + 0x48], vtable.TiXmlBase.0
jmp 0x476267
push esi
push 1
mov eax, str.standalone
mov ecx, ebp
call fcn.00474c10
add esp, 8
test al, al
je 0x47640f
or eax, 0xffffffff
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], eax
mov eax, 0x51b3a8
mov dword [esp + 0x78], ebx
mov dword [esp + 0x6c], vtable.TiXmlAttribute.0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], ebx
mov ecx, dword [esp + 0xa4]
push esi
push ecx
push ebp
lea ecx, [esp + 0x78]
mov dword [esp + 0xa4], 2
call fcn.00475ce0
mov edi, dword [esp + 0x84]
add edi, 8
mov ebp, eax
mov eax, edi
lea esi, [eax + 1]
jmp 0x4763e0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4763e0
sub eax, esi
mov ebx, edi
mov edi, dword [esp + 0x1c]
mov esi, eax
call fcn.00474450
lea esi, [esp + 0x6c]
mov dword [esp + 0x98], 0xffffffff
call fcn.004726d0
jmp 0x476267
cmp ebp, ebx
je 0x4764a2
mov al, byte [ebp]
mov byte [esp + 0x17], al
cmp al, bl
je 0x476269
cmp al, 0x3e
je 0x476269
movzx edx, al
push edx
call fcn.004cda23
add esp, 4
test eax, eax
jne 0x476269
mov al, byte [esp + 0x17]
cmp al, 0xa
je 0x476269
cmp al, 0xd
je 0x476269
add ebp, 1
jne 0x476417
jmp 0x4764a2
lea eax, [ebp + 1]
jmp 0x4764a4
test esi, esi
je 0x4764a2
cmp byte [esi + 0x2c], 0
jne 0x4764a2
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 0xb
mov ebx, dword [str.Error_parsing_Declaration.]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x476482
sub eax, edx
lea edi, [esi + 0x34]
mov esi, eax
call fcn.00474450
mov eax, dword [esp + 0x18]
or ecx, 0xffffffff
mov dword [eax + 0x40], ecx
mov dword [eax + 0x3c], ecx
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0xc