Function at 0x42ca20
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 0x42ca4b
cmp dword [ebp + 0xc], edi
jne 0x42ca4b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], edi
je 0x42ca41
cmp dword [ebp + 0x14], edi
jle 0x42ca41
push 0x40
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.00540c50
add esp, 0xc
mov dword [esp + 0x3c], 0x42ca10
mov dword [esp + 0x10], edi
cmp esi, edi
jne 0x42ca78
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.APEManTool.exe_xmlGetDtdElementDesc
mov edi, eax
add esp, 8
test edi, edi
jne 0x42cab5
mov ecx, dword [ebx + 0x20]
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x42ca41
mov edx, dword [ebx + 8]
push edx
push eax
call sym.APEManTool.exe_xmlGetDtdElementDesc
mov edi, eax
add esp, 8
test edi, edi
je 0x42ca41
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
je 0x42cac7
mov eax, dword [eax + 0x18]
mov dword [esp + 0x24], eax
jmp 0x42cacb
mov dword [esp + 0x24], ecx
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x42cadb
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x20], edx
jmp 0x42cadf
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.APEManTool.exe_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 0x42cb25
mov dword [eax + 0x18], ebx
jmp 0x42cb28
mov dword [ecx + 0xc], ebx
test edx, edx
je 0x42cb31
mov dword [edx + 0x1c], ebx
jmp 0x42cb34
mov dword [ecx + 0x10], ebx
mov eax, dword [edi + 0x28]
push 0x100
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x80]
push edx
push eax
call sym.APEManTool.exe_xmlValidGetPotentialChildren
xor esi, esi
add esp, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
test eax, eax
jle 0x42cbee
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.APEManTool.exe_xmlValidateOneElement
add esp, 0xc
test eax, eax
je 0x42cbdf
mov ecx, dword [esp + 0x10]
xor edi, edi
test ecx, ecx
jle 0x42cbcb
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 0x42cbc7
test esi, esi
je 0x42cc3b
test eax, eax
je 0x42cc3b
mov dl, byte [esi]
mov cl, byte [eax]
inc esi
cmp dl, cl
jne 0x42cc37
inc eax
test cl, cl
jne 0x42cbb5
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 0x42cbee
inc esi
cmp esi, dword [esp + 0x18]
mov dword [esp + 0x14], esi
jl 0x42cb64
mov eax, dword [ebp + 8]
test eax, eax
je 0x42cbfc
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42cc0a
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.APEManTool.exe_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 0x42cb97
jmp 0x42cbc7