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

Disassembly:
push 0xffffffffffffffff
push 0x40915e
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40e018]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0xa8]
push eax
mov eax, dword [esp + 0xa4]
call fcn.00403630
add esp, 4
mov ebp, eax
mov esi, ebx
test ebx, ebx
je 0x404f18
nop
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
test eax, eax
jne 0x405081
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x404f00
xor edi, edi
test ebp, ebp
je 0x40523c
cmp byte [ebp], 0
je 0x40523c
mov esi, dword [esp + 0xa8]
push esi
push 1
mov eax, str.__xml
mov ecx, ebp
call fcn.004039c0
add esp, 8
test al, al
je 0x40523c
mov edi, dword [esp + 0xa4]
test edi, edi
je 0x404f6a
push esi
push ebp
call fcn.00403440
mov ecx, dword [edi]
mov dword [ebx + 4], ecx
mov edx, dword [edi + 4]
mov dword [ebx + 8], edx
lea eax, [ebx + 0x2c]
push eax
xor esi, esi
mov ebx, 0x40a674
add ebp, 5
mov dword [esp + 0x20], eax
call fcn.00401130
mov edi, dword [esp + 0x18]
lea eax, [edi + 0x30]
push eax
mov dword [esp + 0x1c], eax
call fcn.00401130
lea eax, [edi + 0x34]
push eax
mov dword [esp + 0x24], eax
call fcn.00401130
xor ebx, ebx
cmp ebp, ebx
je 0x40527d
lea esp, [esp]
mov al, byte [ebp]
cmp al, bl
je 0x40527d
cmp al, 0x3e
je 0x405237
mov esi, dword [esp + 0xa8]
push esi
mov eax, ebp
call fcn.00403630
mov ebp, eax
push esi
push 1
mov eax, str.version
mov ecx, ebp
call fcn.004039c0
add esp, 0xc
test al, al
je 0x405091
or eax, 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov eax, 0x40e588
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 eax, dword [esp + 0xa4]
push esi
push eax
push ebp
lea ecx, [esp + 0x30]
mov dword [esp + 0xa4], ebx
call fcn.00404b00
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 0x405046
mov ecx, dword [esp + 0x1c]
sub eax, esi
push ecx
mov esi, eax
mov ebx, edi
call fcn.00401130
mov dword [esp + 0x98], 0xffffffff
lea edx, [esp + 0x24]
push edx
call fcn.004015a0
xor ebx, ebx
cmp ebp, ebx
jne 0x404fb0
jmp 0x40527d
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
mov edi, eax
jmp 0x404f1a
push esi
push 1
mov eax, str.encoding
mov ecx, ebp
call fcn.004039c0
add esp, 8
test al, al
je 0x405132
or eax, 0xffffffff
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
mov eax, 0x40e588
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.00404b00
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 0x405107
mov ecx, dword [esp + 0x18]
sub eax, esi
push ecx
mov esi, eax
mov ebx, edi
call fcn.00401130
mov dword [esp + 0x98], 0xffffffff
lea edx, [esp + 0x48]
jmp 0x40506c
push esi
push 1
mov eax, str.standalone
mov ecx, ebp
call fcn.004039c0
add esp, 8
test al, al
je 0x4051e2
or eax, 0xffffffff
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], eax
mov eax, 0x40e588
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 eax, dword [esp + 0xa4]
push esi
push eax
push ebp
lea ecx, [esp + 0x78]
mov dword [esp + 0xa4], 2
call fcn.00404b00
mov edi, dword [esp + 0x84]
add edi, 8
mov ebp, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4051b7
mov ecx, dword [esp + 0x20]
sub eax, esi
push ecx
mov esi, eax
mov ebx, edi
call fcn.00401130
mov dword [esp + 0x98], 0xffffffff
lea edx, [esp + 0x6c]
jmp 0x40506c
cmp ebp, ebx
je 0x40527d
lea ebx, [ebx]
mov al, byte [ebp]
mov byte [esp + 0x17], al
cmp al, bl
je 0x405074
cmp al, 0x3e
je 0x405074
movzx eax, al
push eax
call dword [sym.imp.MSVCR90.dll_isspace]
add esp, 4
test eax, eax
jne 0x405074
mov al, byte [esp + 0x17]
cmp al, 0xa
je 0x405074
cmp al, 0xd
je 0x405074
add ebp, 1
jne 0x4051f0
jmp 0x40527d
lea eax, [ebp + 1]
jmp 0x40527f
test edi, edi
je 0x40527d
cmp byte [edi + 0x2c], 0
jne 0x40527d
mov byte [edi + 0x2c], 1
mov dword [edi + 0x30], 0xc
mov ebx, dword [str.Error_parsing_Declaration.]
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405260
sub eax, edx
lea ecx, [edi + 0x34]
push ecx
mov esi, eax
call fcn.00401130
or eax, 0xffffffff
mov dword [edi + 0x40], eax
mov dword [edi + 0x3c], eax
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