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

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov eax, dword [ebx + 0x3c]
push esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x10]
mov ebp, dword [esi + 0x18]
push edi
mov dword [esp + 0x28], eax
mov edi, eax
mov eax, dword [esi + 0x74]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x78]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0
call sym.php5.dll_xmlInitParser
mov eax, dword [ebx + 4]
cmp eax, 0xd
je 0x1029923e
cmp eax, 9
jne 0x102992c8
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1029924a
mov dword [ebx + 0x3c], eax
jmp 0x10299264
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x10299262
mov eax, dword [ebx + 0x4c]
cmp eax, 1
je 0x10299264
push eax
call sym.php5.dll_xmlGetCharEncodingName
add esp, 4
mov edi, eax
mov ecx, dword [ebx + 4]
cmp ecx, 0xd
jne 0x10299272
test byte [esi + 0x20], 0x30
je 0x1029927d
mov eax, dword [esi + 0x20]
test al, 0x40
je 0x10299305
test edi, edi
je 0x1029928d
push edi
push ebx
call sym.php5.dll_htmlSetMetaEncoding
add esp, 8
jmp 0x102992a0
push ebx
call sym.php5.dll_htmlGetMetaEncoding
add esp, 4
mov edi, str.HTML
test eax, eax
cmovne edi, eax
cmp dword [esp + 0x28], 0
jne 0x102992d3
cmp dword [ebp + 0xc], 0
jne 0x102992d3
cmp dword [ebp + 0x14], 0
jne 0x102992d3
push edi
push esi
call fcn.1029ace0
add esp, 8
test eax, eax
jns 0x102992d3
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x3c], eax
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret
test byte [esi + 0x20], 1
je 0x102992dd
push 1
jmp 0x102992df
push 0
push edi
push ebx
push ebp
call sym.php5.dll_htmlDocContentDumpFormatOutput
add esp, 0x10
cmp dword [esi + 0x10], 0
je 0x102994c3
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [ebx + 0x3c], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
cmp ecx, 9
je 0x10299312
test al, 0x30
je 0x102994bc
push edi
call sym.php5.dll_xmlParseCharEncoding
add esp, 4
test edi, edi
je 0x10299384
cmp dword [esp + 0x28], 0
jne 0x10299384
cmp dword [ebp + 0xc], 0
jne 0x10299384
cmp dword [ebp + 0x14], 0
jne 0x10299384
test byte [esi + 0x20], 2
jne 0x10299414
cmp eax, 1
je 0x10299364
test eax, eax
je 0x10299364
cmp eax, 0x16
je 0x10299364
push edi
push esi
call fcn.1029ace0
add esp, 8
test eax, eax
js 0x102992c1
mov dword [esp + 0x18], 1
cmp dword [esi + 0x74], 0x102999c0
jne 0x10299374
mov dword [esi + 0x74], 0
cmp dword [esi + 0x78], 0x102999c0
jne 0x10299384
mov dword [esi + 0x78], 0
test byte [esi + 0x20], 2
jne 0x10299414
push str.__xml_version
push 0xe
push ebp
call sym.php5.dll_xmlOutputBufferWrite
mov eax, dword [ebx + 0x38]
add esp, 0xc
test eax, eax
je 0x102993b3
push eax
push dword [ebp + 0x10]
call fcn.102e9850
add esp, 8
jmp 0x102993c3
push str._1.0_
push 5
push ebp
call sym.php5.dll_xmlOutputBufferWrite
add esp, 0xc
test edi, edi
je 0x102993e0
push str._encoding
push 0xa
push ebp
call sym.php5.dll_xmlOutputBufferWrite
push edi
push dword [ebp + 0x10]
call fcn.102e9850
add esp, 0x14
mov eax, dword [ebx + 0x28]
sub eax, 0
je 0x102993f4
dec eax
jne 0x10299404
push str._standalone_yes_
push 0x11
jmp 0x102993fb
push str._standalone_no_
push 0x10
push ebp
call sym.php5.dll_xmlOutputBufferWrite
add esp, 0xc
push 0x10521418
push 3
push ebp
call sym.php5.dll_xmlOutputBufferWrite
add esp, 0xc
mov eax, dword [esi + 0x20]
test al, 0x10
mov edx, 1
mov ecx, 0
cmovne ecx, edx
mov dword [esp + 0x14], ecx
test al, 8
jne 0x10299454
push ebx
call sym.php5.dll_xmlGetIntSubset
add esp, 4
test eax, eax
je 0x10299454
push dword [eax + 0x34]
push dword [eax + 0x38]
call sym.php5.dll_xmlIsXHTML
xor ecx, ecx
add esp, 8
test eax, eax
cmovs eax, ecx
mov dword [esp + 0x14], eax
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x10299497
mov ebx, dword [esp + 0x14]
nop
push edi
mov dword [esi + 0x24], 0
push esi
test ebx, ebx
je 0x10299474
call fcn.10298020
jmp 0x10299479
call fcn.10299f60
add esp, 8
push 0x105494a0
push 1
push ebp
call sym.php5.dll_xmlOutputBufferWrite
mov edi, dword [edi + 0x18]
add esp, 0xc
test edi, edi
jne 0x10299460
mov ebx, dword [esp + 0x2c]
cmp dword [esp + 0x18], 0
je 0x102994bc
cmp dword [esp + 0x28], 0
jne 0x102994bc
push esi
call fcn.1029a780
mov eax, dword [esp + 0x20]
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x24]
add esp, 4
mov dword [esi + 0x78], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x3c], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret