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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x3c]
push esi
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x74]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x10]
push edi
xor ecx, ecx
mov dword [esp + 0x18], eax
mov edi, eax
mov eax, dword [esi + 0x78]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0x18]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], ecx
call sym.APEManTool.exe_xmlInitParser
mov ecx, dword [ebx + 4]
cmp ecx, 0xd
je 0x422827
cmp ecx, 9
jne 0x4228b0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x422833
mov dword [ebx + 0x3c], eax
jmp 0x42284d
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x42284b
mov eax, dword [ebx + 0x4c]
cmp eax, 1
je 0x42284d
push eax
call sym.APEManTool.exe_xmlGetCharEncodingName
add esp, 4
mov edi, eax
cmp ecx, 0xd
jne 0x422858
test byte [esi + 0x20], 0x30
je 0x422863
mov eax, dword [esi + 0x20]
test al, 0x40
je 0x4228ef
test edi, edi
je 0x422873
push edi
push ebx
call sym.APEManTool.exe_htmlSetMetaEncoding
add esp, 8
jmp 0x422887
push ebx
call sym.APEManTool.exe_htmlGetMetaEncoding
mov edi, eax
add esp, 4
test edi, edi
jne 0x422887
mov edi, str.HTML
cmp dword [esp + 0x18], 0
mov eax, dword [esp + 0xc]
jne 0x4228be
cmp dword [eax + 0xc], 0
jne 0x4228be
cmp dword [eax + 0x14], 0
jne 0x4228be
mov eax, esi
call fcn.00421d90
test eax, eax
jge 0x4228ba
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x3c], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
test byte [esi + 0x20], 1
je 0x4228c8
push 1
jmp 0x4228ca
push 0
push edi
push ebx
push eax
call sym.APEManTool.exe_htmlDocContentDumpFormatOutput
add esp, 0x10
cmp dword [esi + 0x10], 0
je 0x422ad5
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x3c], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 9
je 0x4228fc
test al, 0x30
je 0x422ace
push edi
call sym.APEManTool.exe_xmlParseCharEncoding
add esp, 4
test edi, edi
je 0x422979
cmp dword [esp + 0x18], 0
jne 0x422979
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 0xc], 0
jne 0x422979
cmp dword [ecx + 0x14], 0
jne 0x422979
test byte [esi + 0x20], 2
jne 0x422a2a
cmp eax, 1
je 0x42295c
test eax, eax
je 0x42295c
cmp eax, 0x16
je 0x42295c
mov eax, esi
call fcn.00421d90
test eax, eax
jge 0x422954
mov edx, dword [esp + 0x14]
mov dword [ebx + 0x3c], edx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x1c], 1
mov eax, 0x421780
cmp dword [esi + 0x74], eax
jne 0x42296d
mov dword [esi + 0x74], 0
cmp dword [esi + 0x78], eax
jne 0x422979
mov dword [esi + 0x78], 0
test byte [esi + 0x20], 2
jne 0x422a2a
mov eax, dword [esp + 0xc]
push str.__xml_version
push 0xe
push eax
call sym.APEManTool.exe_xmlOutputBufferWrite
mov eax, dword [ebx + 0x38]
add esp, 0xc
test eax, eax
je 0x4229b1
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x10]
push eax
push edx
call sym.APEManTool.exe_xmlBufferWriteQuotedString
add esp, 8
jmp 0x4229c5
mov eax, dword [esp + 0xc]
push str._1.0_
push 5
push eax
call sym.APEManTool.exe_xmlOutputBufferWrite
add esp, 0xc
test edi, edi
je 0x4229f0
mov ecx, dword [esp + 0xc]
push str._encoding
push 0xa
push ecx
call sym.APEManTool.exe_xmlOutputBufferWrite
add esp, 0xc
push edi
mov edi, dword [esp + 0x10]
mov edx, dword [edi + 0x10]
push edx
call sym.APEManTool.exe_xmlBufferWriteQuotedString
add esp, 8
jmp 0x4229f4
mov edi, dword [esp + 0xc]
mov eax, dword [ebx + 0x28]
sub eax, 0
je 0x422a0a
sub eax, 1
jne 0x422a1a
push str._standalone_yes_
push 0x11
jmp 0x422a11
push str._standalone_no_
push 0x10
push edi
call sym.APEManTool.exe_xmlOutputBufferWrite
add esp, 0xc
push 0x5d9ff4
push 3
push edi
call sym.APEManTool.exe_xmlOutputBufferWrite
add esp, 0xc
mov eax, dword [esi + 0x20]
test al, 0x10
je 0x422a39
mov dword [esp + 0x10], 1
test al, 8
jne 0x422a6a
push ebx
call sym.APEManTool.exe_xmlGetIntSubset
add esp, 4
test eax, eax
je 0x422a6a
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x38]
push ecx
push edx
call sym.APEManTool.exe_xmlIsXHTML
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jge 0x422a6a
mov dword [esp + 0x10], 0
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x422aab
cmp dword [esp + 0x10], 0
push edi
mov dword [esi + 0x24], 0
push esi
je 0x422a88
call fcn.00422fe0
jmp 0x422a8d
call fcn.004222b0
mov eax, dword [esp + 0x14]
add esp, 8
push 0x5d9f68
push 1
push eax
call sym.APEManTool.exe_xmlOutputBufferWrite
mov edi, dword [edi + 0x18]
add esp, 0xc
test edi, edi
jne 0x422a71
cmp dword [esp + 0x1c], 0
je 0x422ace
cmp dword [esp + 0x18], 0
jne 0x422ace
mov eax, esi
call fcn.00421e10
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x74], ecx
mov dword [esi + 0x78], edx
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x3c], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret