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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x3c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
push edi
mov edi, dword [esi + 0x18]
xor ecx, ecx
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0x78]
mov dword [esp + 0x18], eax
mov ebx, eax
mov eax, dword [esi + 0x74]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], ecx
call sym.libxml2.dll_xmlInitParser
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 4]
cmp ecx, 0xd
je 0x1008480a
cmp ecx, 9
jne 0x10084894
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10084816
mov dword [edx + 0x3c], eax
jmp 0x10084830
mov eax, dword [edx + 0x3c]
test eax, eax
jne 0x1008482e
mov eax, dword [edx + 0x4c]
cmp eax, 1
je 0x10084830
push eax
call sym.libxml2.dll_xmlGetCharEncodingName
add esp, 4
mov ebx, eax
cmp ecx, 0xd
jne 0x1008483b
test byte [esi + 0x20], 0x30
je 0x10084846
mov eax, dword [esi + 0x20]
test al, 0x40
je 0x100848de
test ebx, ebx
je 0x10084856
push ebx
push edx
call sym.libxml2.dll_htmlSetMetaEncoding
add esp, 8
jmp 0x1008486a
push edx
call sym.libxml2.dll_htmlGetMetaEncoding
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1008486a
mov ebx, str.HTML
cmp dword [esp + 0x18], 0
jne 0x100848a2
cmp dword [edi + 0xc], 0
jne 0x100848a2
cmp dword [edi + 0x14], 0
jne 0x100848a2
mov edi, ebx
mov eax, esi
call fcn.10083c50
test eax, eax
jge 0x1008489e
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x3c], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0xc]
test byte [esi + 0x20], 1
je 0x100848b1
mov edx, dword [ebp + 0xc]
push 1
push ebx
push edx
jmp 0x100848b8
mov eax, dword [ebp + 0xc]
push 0
push ebx
push eax
push edi
call sym.libxml2.dll_htmlDocContentDumpFormatOutput
add esp, 0x10
cmp dword [esi + 0x10], 0
je 0x10084abc
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x3c], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 9
je 0x100848eb
test al, 0x30
je 0x10084ab5
push ebx
call sym.libxml2.dll_xmlParseCharEncoding
add esp, 4
test ebx, ebx
je 0x1008495d
cmp dword [esp + 0x18], 0
jne 0x1008495d
cmp dword [edi + 0xc], 0
jne 0x1008495d
cmp dword [edi + 0x14], 0
jne 0x1008495d
test byte [esi + 0x20], 2
jne 0x100849fc
cmp eax, 1
je 0x10084940
test eax, eax
je 0x10084940
cmp eax, 0x16
je 0x10084940
mov edi, ebx
mov eax, esi
call fcn.10083c50
test eax, eax
jl 0x1008488a
mov edi, dword [esp + 0xc]
mov dword [esp + 0x1c], 1
mov eax, 0x10083600
cmp dword [esi + 0x74], eax
jne 0x10084951
mov dword [esi + 0x74], 0
cmp dword [esi + 0x78], eax
jne 0x1008495d
mov dword [esi + 0x78], 0
test byte [esi + 0x20], 2
jne 0x100849fc
push str.__xml_version
push 0xe
push edi
call sym.libxml2.dll_xmlOutputBufferWrite
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x38]
add esp, 0xc
test eax, eax
je 0x1008498f
mov edi, dword [edi + 0x10]
call fcn.10001f50
mov edi, dword [esp + 0xc]
jmp 0x1008499f
push str._1.0_
push 5
push edi
call sym.libxml2.dll_xmlOutputBufferWrite
add esp, 0xc
test ebx, ebx
je 0x100849c1
push str._encoding
push 0xa
push edi
call sym.libxml2.dll_xmlOutputBufferWrite
mov edi, dword [edi + 0x10]
add esp, 0xc
mov eax, ebx
call fcn.10001f50
mov edi, dword [esp + 0xc]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x28]
sub eax, 0
je 0x100849da
sub eax, 1
jne 0x100849ea
push str._standalone_yes_
push 0x11
jmp 0x100849e1
push str._standalone_no_
push 0x10
push edi
call sym.libxml2.dll_xmlOutputBufferWrite
add esp, 0xc
push 0x100cb838
push 3
push edi
call sym.libxml2.dll_xmlOutputBufferWrite
add esp, 0xc
jmp 0x100849ff
mov ebx, dword [ebp + 0xc]
mov eax, dword [esi + 0x20]
test al, 0x10
je 0x10084a0e
mov dword [esp + 0x10], 1
test al, 8
jne 0x10084a3f
push ebx
call sym.libxml2.dll_xmlGetIntSubset
add esp, 4
test eax, eax
je 0x10084a3f
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x38]
push ecx
push edx
call sym.libxml2.dll_xmlIsXHTML
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jge 0x10084a3f
mov dword [esp + 0x10], 0
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x10084a8f
jmp 0x10084a50
cmp dword [esp + 0x10], 0
mov dword [esi + 0x24], 0
push edi
je 0x10084a6a
push esi
call fcn.10084fe0
add esp, 8
jmp 0x10084a74
mov eax, esi
call fcn.10084240
add esp, 4
mov eax, dword [esp + 0xc]
push 0x100cbc64
push 1
push eax
call sym.libxml2.dll_xmlOutputBufferWrite
mov edi, dword [edi + 0x18]
add esp, 0xc
test edi, edi
jne 0x10084a50
cmp dword [esp + 0x1c], 0
je 0x10084ab2
cmp dword [esp + 0x18], 0
jne 0x10084ab2
mov eax, esi
call fcn.10083ce0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x74], ecx
mov dword [esi + 0x78], edx
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x14]
mov dword [edx + 0x3c], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret