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

Disassembly:
push 0xffffffffffffffff
push 0x1009c108
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100b7bd0]
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.10038050
add esp, 4
test ebx, ebx
mov ebp, eax
mov esi, ebx
je 0x100398d8
nop
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
test eax, eax
jne 0x10039a68
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x100398c0
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x18]
test ebp, ebp
je 0x10039c81
cmp byte [ebp], 0
je 0x10039c81
push edi
push 1
mov eax, str.__xml
mov ecx, ebp
call fcn.10038350
add esp, 8
test al, al
je 0x10039c81
mov esi, dword [esp + 0xa4]
test esi, esi
je 0x1003992f
push edi
push ebp
mov edi, esi
call fcn.10037e40
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, 0x100a5f4a
add ebp, 5
mov dword [esp + 0x18], edi
call fcn.10039e00
mov edi, dword [esp + 0x1c]
add edi, 0x30
mov dword [esp + 0x20], edi
call fcn.10039e00
mov edi, dword [esp + 0x1c]
add edi, 0x34
mov dword [esp + 0x1c], edi
call fcn.10039e00
xor ebx, ebx
cmp ebp, ebx
je 0x10039cc3
nop
mov al, byte [ebp]
cmp al, bl
je 0x10039cc3
cmp al, 0x3e
je 0x10039c7c
mov esi, dword [esp + 0xa8]
push esi
mov eax, ebp
call fcn.10038050
mov ebp, eax
push esi
push 1
mov eax, str.version
mov ecx, ebp
call fcn.10038350
add esp, 0xc
test al, al
je 0x10039a7c
or eax, 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov eax, 0x100bcefc
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.100394a0
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 0x10039a06
sub eax, esi
mov ebx, edi
mov edi, dword [esp + 0x18]
mov esi, eax
call fcn.10039e00
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esp + 0x3c]
cmp eax, 0x100bcefc
je 0x10039a3d
push eax
call fcn.10079647
add esp, 4
mov eax, dword [esp + 0x38]
cmp eax, 0x100bcefc
je 0x10039a51
push eax
call fcn.10079647
add esp, 4
mov dword [esp + 0x24], vtable.TiXmlBase.0
xor ebx, ebx
cmp ebp, ebx
jne 0x10039970
jmp 0x10039cc3
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x100398e4
push esi
push 1
mov eax, str.encoding
mov ecx, ebp
call fcn.10038350
add esp, 8
test al, al
je 0x10039b4a
or eax, 0xffffffff
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
mov eax, 0x100bcefc
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.100394a0
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 0x10039af2
sub eax, esi
mov ebx, edi
mov edi, dword [esp + 0x20]
mov esi, eax
call fcn.10039e00
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esp + 0x60]
cmp eax, 0x100bcefc
je 0x10039b29
push eax
call fcn.10079647
add esp, 4
mov eax, dword [esp + 0x5c]
cmp eax, 0x100bcefc
je 0x10039b3d
push eax
call fcn.10079647
add esp, 4
mov dword [esp + 0x48], vtable.TiXmlBase.0
jmp 0x10039a59
push esi
push 1
mov eax, str.standalone
mov ecx, ebp
call fcn.10038350
add esp, 8
test al, al
je 0x10039c2e
or eax, 0xffffffff
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], eax
mov eax, 0x100bcefc
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.100394a0
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 0x10039bd0
sub eax, esi
mov ebx, edi
mov edi, dword [esp + 0x1c]
mov esi, eax
call fcn.10039e00
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esp + 0x84]
cmp eax, 0x100bcefc
je 0x10039c0a
push eax
call fcn.10079647
add esp, 4
mov eax, dword [esp + 0x80]
cmp eax, 0x100bcefc
je 0x10039c21
push eax
call fcn.10079647
add esp, 4
mov dword [esp + 0x6c], vtable.TiXmlBase.0
jmp 0x10039a59
cmp ebp, ebx
je 0x10039cc3
mov al, byte [ebp]
cmp al, bl
mov byte [esp + 0x17], al
je 0x10039a5b
cmp al, 0x3e
je 0x10039a5b
movzx edx, al
push edx
call fcn.1007c2aa
add esp, 4
test eax, eax
jne 0x10039a5b
mov al, byte [esp + 0x17]
cmp al, 0xa
je 0x10039a5b
cmp al, 0xd
je 0x10039a5b
add ebp, 1
jne 0x10039c36
jmp 0x10039cc3
lea eax, [ebp + 1]
jmp 0x10039cc5
test esi, esi
je 0x10039cc3
cmp byte [esi + 0x2c], 0
jne 0x10039cc3
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]
add eax, 1
test cl, cl
jne 0x10039ca1
sub eax, edx
lea edi, [esi + 0x34]
mov esi, eax
call fcn.10039e00
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