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

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
cmp esi, ebx
jne 0x1006bb53
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1006bb4d
push eax
call sym.libxml2.dll_xmlFreeParserInputBuffer
add esp, 4
pop esi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x14]
or eax, 0x10000
cmp ebp, ebx
push edi
mov dword [esp + 0x24], eax
mov dword [esi + 4], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0xb8], eax
mov dword [esi + 8], ebx
je 0x1006bbab
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x1006bb99
test byte [esi + 0xc], 1
je 0x1006bb99
push eax
call sym.libxml2.dll_xmlFreeParserInputBuffer
mov eax, dword [esi + 0xc]
add esp, 4
dec eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov edi, 1
or eax, edi
mov dword [esi + 0x1c], ebp
mov dword [esi + 0xc], eax
jmp 0x1006bbb0
mov edi, 1
cmp dword [esi + 0x54], ebx
jne 0x1006bbe7
push 0x64
call sym.libxml2.dll_xmlBufferCreateSize
add esp, 4
cmp eax, ebx
mov dword [esi + 0x54], eax
jne 0x1006bbe7
call sym.libxml2.dll___xmlGenericError
mov esi, eax
call sym.libxml2.dll___xmlGenericErrorContext
mov eax, dword [eax]
push str.xmlTextReaderSetup_:_malloc_failed_n
push eax
call dword [esi]
add esp, 8
pop edi
pop ebp
pop esi
or eax, 0xffffffff
pop ebx
ret
cmp dword [esi + 0x18], ebx
jne 0x1006bbfd
push 0x80
call dword [sym.libxml2.dll_xmlMalloc]
add esp, 4
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x18]
cmp eax, ebx
jne 0x1006bc25
call sym.libxml2.dll___xmlGenericError
mov esi, eax
call sym.libxml2.dll___xmlGenericErrorContext
mov ecx, dword [eax]
push str.xmlTextReaderSetup_:_malloc_failed_n
push ecx
call dword [esi]
add esp, 8
pop edi
pop ebp
pop esi
or eax, 0xffffffff
pop ebx
ret
push 2
push eax
call sym.libxml2.dll_xmlSAXVersion
mov eax, dword [esi + 0x18]
mov edx, dword [eax + 0x38]
mov dword [esi + 0x20], edx
mov dword [eax + 0x38], 0x100693d0
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 0x3c]
mov dword [esi + 0x24], ecx
mov dword [eax + 0x3c], 0x10069430
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 0x6c]
add esp, 8
cmp ecx, 0xdeedbeaf
jne 0x1006bc7d
mov edx, dword [eax + 0x74]
mov dword [esi + 0x28], edx
mov dword [eax + 0x74], 0x10069450
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 0x78]
mov dword [esi + 0x2c], ecx
mov dword [eax + 0x78], 0x100694d0
jmp 0x1006bc83
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
cmp ebp, ebx
mov eax, dword [esi + 0x18]
mov edx, dword [eax + 0x44]
mov dword [esi + 0x30], edx
mov ecx, 0x100694f0
mov dword [eax + 0x44], ecx
mov eax, dword [esi + 0x18]
mov dword [eax + 0x48], ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 0x64]
mov dword [esi + 0x34], ecx
mov dword [eax + 0x64], 0x10069510
mov dword [esi], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
je 0x1006bdd6
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 4]
mov edi, 4
cmp ecx, edi
jae 0x1006bcd6
push edi
push ebp
call sym.libxml2.dll_xmlParserInputBufferRead
add esp, 8
mov eax, dword [esi + 0x14]
cmp eax, ebx
jne 0x1006bd26
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx + 0x10]
cmp dword [eax + 4], edi
mov edx, dword [esp + 0x1c]
push edx
jb 0x1006bd0c
mov eax, dword [eax]
mov ecx, dword [esi + 0x18]
push edi
push eax
push ebx
push ecx
call sym.libxml2.dll_xmlCreatePushParserCtxt
add esp, 0x14
mov dword [esi + 0x14], eax
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], edi
jmp 0x1006bdab
mov eax, dword [esi + 0x18]
push ebx
push ebx
push ebx
push eax
call sym.libxml2.dll_xmlCreatePushParserCtxt
add esp, 0x14
mov dword [esi + 0x14], eax
mov dword [esi + 0x38], ebx
jmp 0x1006bda8
push eax
call sym.libxml2.dll_xmlCtxtReset
push ebx
call sym.libxml2.dll_xmlAllocParserInputBuffer
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x1006bdc9
mov ecx, dword [esi + 0x14]
push ecx
call sym.libxml2.dll_xmlNewInputStream
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x1006bd62
push ebp
call sym.libxml2.dll_xmlFreeParserInputBuffer
add esp, 4
pop edi
pop ebp
pop esi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x1006bd6f
mov dword [edi + 4], ebx
jmp 0x1006bd7b
push eax
call sym.libxml2.dll_xmlCanonicPath
add esp, 4
mov dword [edi + 4], eax
mov dword [edi], ebp
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [edi + 0xc], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [edi + 0x10], edx
mov ebp, dword [ebp + 0x10]
mov ecx, dword [ebp]
mov eax, dword [ebp + 4]
add eax, ecx
mov dword [edi + 0x14], eax
mov ecx, dword [esi + 0x14]
push edi
push ecx
call sym.libxml2.dll_inputPush
add esp, 8
mov dword [esi + 0x3c], ebx
cmp dword [esi + 0x14], ebx
jne 0x1006bdd1
call sym.libxml2.dll___xmlGenericError
mov esi, eax
call sym.libxml2.dll___xmlGenericErrorContext
mov edx, dword [eax]
push str.xmlTextReaderSetup_:_malloc_failed_n
push edx
call dword [esi]
add esp, 8
pop edi
pop ebp
pop esi
or eax, 0xffffffff
pop ebx
ret
mov edi, 1
mov edx, dword [esi + 0x58]
cmp edx, ebx
je 0x1006be0d
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x128]
cmp ecx, ebx
je 0x1006be05
cmp edx, ecx
je 0x1006be32
push edx
call sym.libxml2.dll_xmlDictFree
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x128]
add esp, 4
mov dword [esi + 0x58], ecx
jmp 0x1006be32
mov dword [eax + 0x128], edx
jmp 0x1006be32
mov edx, dword [esi + 0x14]
cmp dword [edx + 0x128], ebx
jne 0x1006be26
call sym.libxml2.dll_xmlDictCreate
mov ecx, dword [esi + 0x14]
mov dword [ecx + 0x128], eax
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 0x128]
mov dword [esi + 0x58], eax
mov ecx, dword [esi + 0x14]
mov dword [ecx + 0x110], esi
mov edx, dword [esi + 0x14]
mov dword [edx + 0x118], edi
mov eax, dword [esi + 0x14]
mov dword [eax + 0x16c], edi
mov ecx, dword [esi + 0x14]
mov dword [ecx + 0x134], edi
mov edx, dword [esi + 0x14]
mov dword [edx + 0x1b4], 5
mov eax, dword [esi + 0xa0]
cmp eax, ebx
je 0x1006be7c
push eax
call sym.libxml2.dll_xmlXIncludeFreeContext
add esp, 4
mov dword [esi + 0xa0], ebx
mov eax, dword [esp + 0x24]
mov ebp, 0x400
test ebp, eax
je 0x1006beb4
mov eax, dword [esi + 0x58]
push 0xffffffffffffffff
push str.include
push eax
mov dword [esi + 0x98], edi
call sym.libxml2.dll_xmlDictLookup
mov dword [esi + 0x9c], eax
mov eax, dword [esp + 0x30]
add esp, 0xc
sub eax, ebp
mov dword [esp + 0x24], eax
jmp 0x1006beba
mov dword [esi + 0x98], ebx
cmp dword [esi + 0xb0], ebx
mov dword [esi + 0xa4], ebx
jne 0x1006bed4
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
cmp dword [esi + 0xa8], ebx
jle 0x1006bf1c
lea esp, [esp]
mov edx, dword [esi + 0xa8]
mov ecx, dword [esi + 0xb0]
dec edx
mov eax, edx
mov dword [esi + 0xa8], edx
mov eax, dword [ecx + eax*4]
cmp eax, ebx
je 0x1006bf14
push eax
call sym.libxml2.dll_xmlFreePattern
mov edx, dword [esi + 0xa8]
mov eax, dword [esi + 0xb0]
add esp, 4
mov dword [eax + edx*4], ebx
cmp dword [esi + 0xa8], ebx
jg 0x1006bee0
mov eax, dword [esp + 0x24]
test al, 0x10
je 0x1006bf27
mov dword [esi + 8], edi
mov ecx, dword [esi + 0x14]
push eax
push ecx
call sym.libxml2.dll_xmlCtxtUseOptions
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, ebx
je 0x1006bf56
push eax
call sym.libxml2.dll_xmlFindCharEncodingHandler
add esp, 4
cmp eax, ebx
je 0x1006bf56
mov edx, dword [esi + 0x14]
push eax
push edx
call sym.libxml2.dll_xmlSwitchToEncoding
add esp, 8
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x1006bf7f
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x24]
cmp eax, ebx
je 0x1006bf7f
cmp dword [eax + 4], ebx
jne 0x1006bf7f
push ecx
call sym.libxml2.dll_xmlStrdup
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + 0x24]
add esp, 4
mov dword [edx + 4], eax
pop edi
pop ebp
mov dword [esi + 4], ebx
pop esi
xor eax, eax
pop ebx
ret