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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esp + 0x18], edi
cmp esi, edi
jne 0x1006e8eb
cmp dword [ebp + 0xc], edi
jne 0x1006e8eb
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], edi
je 0x1006e8e1
cmp dword [ebp + 0x14], edi
jle 0x1006e8e1
push 0x40
lea eax, [esp + 0x3c]
push edi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [esp + 0x3c], sym.libxml2.dll_xmlCleanupPredefinedEntities
mov dword [esp + 0x10], edi
cmp esi, edi
jne 0x1006e918
mov esi, dword [ebp + 0xc]
mov ebx, dword [esi + 0x14]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x20]
mov eax, dword [edx + 0x2c]
push ecx
push eax
mov dword [esp + 0x24], ebx
call sym.libxml2.dll_xmlGetDtdElementDesc
mov edi, eax
add esp, 8
test edi, edi
jne 0x1006e955
mov ecx, dword [ebx + 0x20]
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x1006e8e1
mov edx, dword [ebx + 8]
push edx
push eax
call sym.libxml2.dll_xmlGetDtdElementDesc
mov edi, eax
add esp, 8
test edi, edi
je 0x1006e8e1
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
je 0x1006e967
mov eax, dword [eax + 0x18]
mov dword [esp + 0x24], eax
jmp 0x1006e96b
mov dword [esp + 0x24], ecx
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x1006e97b
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x20], edx
jmp 0x1006e97f
mov dword [esp + 0x20], ecx
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
push ecx
push str.__dummy__
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x20]
push ecx
push eax
mov dword [esp + 0x38], edx
call sym.libxml2.dll_xmlNewDocNode
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov eax, dword [ebp + 8]
mov esi, dword [ebx + 8]
add esp, 0x10
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], edx
mov dword [esp + 0x2c], esi
test eax, eax
je 0x1006e9c5
mov dword [eax + 0x18], ebx
jmp 0x1006e9c8
mov dword [ecx + 0xc], ebx
test edx, edx
je 0x1006e9d1
mov dword [edx + 0x1c], ebx
jmp 0x1006e9d4
mov dword [ecx + 0x10], ebx
mov eax, dword [edi + 0x28]
push pe_nt_image_headers32
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x80]
push edx
push eax
call sym.libxml2.dll_xmlValidGetPotentialChildren
xor esi, esi
add esp, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
test eax, eax
jle 0x1006ea8e
mov ecx, dword [esp + esi*4 + 0x78]
mov eax, dword [esp + 0x1c]
push eax
mov dword [ebx + 8], ecx
mov edx, dword [eax + 0x20]
push edx
lea eax, [esp + 0x40]
push eax
call sym.libxml2.dll_xmlValidateOneElement
add esp, 0xc
test eax, eax
je 0x1006ea7f
mov ecx, dword [esp + 0x10]
xor edi, edi
test ecx, ecx
jle 0x1006ea6b
mov edx, dword [esp + esi*4 + 0x78]
mov dword [esp + 0x34], edx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + edi*4]
mov esi, dword [esp + 0x34]
cmp esi, eax
je 0x1006ea67
test esi, esi
je 0x1006eadb
test eax, eax
je 0x1006eadb
mov dl, byte [esi]
mov cl, byte [eax]
inc esi
cmp dl, cl
jne 0x1006ead7
inc eax
test cl, cl
jne 0x1006ea55
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + esi*4 + 0x78]
mov edx, dword [ebp + 0x10]
mov dword [edx + ecx*4], eax
inc ecx
cmp ecx, dword [ebp + 0x14]
mov dword [esp + 0x10], ecx
jge 0x1006ea8e
inc esi
cmp esi, dword [esp + 0x18]
mov dword [esp + 0x14], esi
jl 0x1006ea04
mov eax, dword [ebp + 8]
test eax, eax
je 0x1006ea9c
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1006eaaa
mov edx, dword [esp + 0x20]
mov dword [eax + 0x1c], edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov eax, dword [esp + 0x2c]
push ebx
mov dword [ebx + 8], eax
call sym.libxml2.dll_xmlFreeNode
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
inc edi
cmp edi, ecx
jl 0x1006ea37
jmp 0x1006ea67