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

Disassembly:
push 0xffffffffffffffff
push 0x10078968
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008f3a0]
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.10021470
add esp, 4
test ebx, ebx
mov ebp, eax
mov esi, ebx
je 0x10022d08
nop
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
test eax, eax
jne 0x10022e98
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x10022cf0
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x18]
test ebp, ebp
je 0x100230b1
cmp byte [ebp], 0
je 0x100230b1
push edi
push 1
mov eax, str.__xml
mov ecx, ebp
call fcn.10021780
add esp, 8
test al, al
je 0x100230b1
mov esi, dword [esp + 0xa4]
test esi, esi
je 0x10022d5f
push edi
push ebp
mov edi, esi
call fcn.10021260
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, 0x10084bea
add ebp, 5
mov dword [esp + 0x18], edi
call fcn.1001f630
mov edi, dword [esp + 0x1c]
add edi, 0x30
mov dword [esp + 0x20], edi
call fcn.1001f630
mov edi, dword [esp + 0x1c]
add edi, 0x34
mov dword [esp + 0x1c], edi
call fcn.1001f630
xor ebx, ebx
cmp ebp, ebx
je 0x100230f3
nop
mov al, byte [ebp]
cmp al, bl
je 0x100230f3
cmp al, 0x3e
je 0x100230ac
mov esi, dword [esp + 0xa8]
push esi
mov eax, ebp
call fcn.10021470
mov ebp, eax
push esi
push 1
mov eax, str.version
mov ecx, ebp
call fcn.10021780
add esp, 0xc
test al, al
je 0x10022eac
or eax, 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov eax, 0x100923d8
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.100228f0
mov edi, dword [esp + 0x3c]
add edi, 8
mov ebp, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10022e36
sub eax, esi
mov ebx, edi
mov edi, dword [esp + 0x18]
mov esi, eax
call fcn.1001f630
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esp + 0x3c]
cmp eax, 0x100923d8
je 0x10022e6d
push eax
call fcn.10055759
add esp, 4
mov eax, dword [esp + 0x38]
cmp eax, 0x100923d8
je 0x10022e81
push eax
call fcn.10055759
add esp, 4
mov dword [esp + 0x24], vtable.TiXmlBase.0
xor ebx, ebx
cmp ebp, ebx
jne 0x10022da0
jmp 0x100230f3
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x10022d14
push esi
push 1
mov eax, str.encoding
mov ecx, ebp
call fcn.10021780
add esp, 8
test al, al
je 0x10022f7a
or eax, 0xffffffff
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
mov eax, 0x100923d8
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.100228f0
mov edi, dword [esp + 0x60]
add edi, 8
mov ebp, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10022f22
sub eax, esi
mov ebx, edi
mov edi, dword [esp + 0x20]
mov esi, eax
call fcn.1001f630
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esp + 0x60]
cmp eax, 0x100923d8
je 0x10022f59
push eax
call fcn.10055759
add esp, 4
mov eax, dword [esp + 0x5c]
cmp eax, 0x100923d8
je 0x10022f6d
push eax
call fcn.10055759
add esp, 4
mov dword [esp + 0x48], vtable.TiXmlBase.0
jmp 0x10022e89
push esi
push 1
mov eax, str.standalone
mov ecx, ebp
call fcn.10021780
add esp, 8
test al, al
je 0x1002305e
or eax, 0xffffffff
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], eax
mov eax, 0x100923d8
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.100228f0
mov edi, dword [esp + 0x84]
add edi, 8
mov ebp, eax
mov eax, edi
lea esi, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10023000
sub eax, esi
mov ebx, edi
mov edi, dword [esp + 0x1c]
mov esi, eax
call fcn.1001f630
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esp + 0x84]
cmp eax, 0x100923d8
je 0x1002303a
push eax
call fcn.10055759
add esp, 4
mov eax, dword [esp + 0x80]
cmp eax, 0x100923d8
je 0x10023051
push eax
call fcn.10055759
add esp, 4
mov dword [esp + 0x6c], vtable.TiXmlBase.0
jmp 0x10022e89
cmp ebp, ebx
je 0x100230f3
mov al, byte [ebp]
cmp al, bl
mov byte [esp + 0x17], al
je 0x10022e8b
cmp al, 0x3e
je 0x10022e8b
movzx edx, al
push edx
call fcn.100587c6
add esp, 4
test eax, eax
jne 0x10022e8b
mov al, byte [esp + 0x17]
cmp al, 0xa
je 0x10022e8b
cmp al, 0xd
je 0x10022e8b
add ebp, 1
jne 0x10023066
jmp 0x100230f3
lea eax, [ebp + 1]
jmp 0x100230f5
test esi, esi
je 0x100230f3
cmp byte [esi + 0x2c], 0
jne 0x100230f3
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 0xc
mov ebx, dword [str.Error_parsing_Declaration.]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100230d1
sub eax, edx
lea edi, [esi + 0x34]
mov esi, eax
call fcn.1001f630
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