Function at 0x1002ba40
Capabilities:
Parse pe header

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx + 0x10]
mov dl, byte [eax]
push edi
or edi, 0xffffffff
cmp dl, 0x3c
mov dword [esp + 0xc], 0
jne 0x1002bd8a
cmp byte [eax + 1], 0x21
jne 0x1002bd8a
cmp byte [eax + 2], 0x45
jne 0x1002bd8a
cmp byte [eax + 3], 0x4c
jne 0x1002bd8a
cmp byte [eax + 4], 0x45
jne 0x1002bd8a
cmp byte [eax + 5], 0x4d
jne 0x1002bd8a
cmp byte [eax + 6], 0x45
jne 0x1002bd8a
cmp byte [eax + 7], 0x4e
jne 0x1002bd8a
cmp byte [eax + 8], 0x54
jne 0x1002bd8a
mov edi, dword [esi + 0xc8]
mov ebx, 9
add edi, ebx
mov dword [esi + 0xc8], edi
add dword [ecx + 0x10], ebx
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ecx
add dword [eax + 0x20], ebx
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
cmp byte [ecx], 0x25
jne 0x1002baea
push esi
call sym.libxml2.dll_xmlParserHandlePEReference
add esp, 4
mov eax, dword [esi + 0x24]
mov edx, dword [eax + 0x10]
cmp byte [edx], 0
jne 0x1002bb10
push 0xfa
push eax
call sym.libxml2.dll_xmlParserInputGrow
add esp, 8
test eax, eax
jg 0x1002bb10
push esi
call sym.libxml2.dll_xmlPopInput
add esp, 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
mov al, byte [ecx]
cmp al, 0x20
je 0x1002bb3a
cmp al, bl
jb 0x1002bb24
cmp al, 0xa
jbe 0x1002bb3a
cmp al, 0xd
je 0x1002bb3a
push str.Space_required_after_ELEMENT_n
mov eax, 0x41
call fcn.10021e30
add esp, 4
push esi
call sym.libxml2.dll_xmlSkipBlankChars
push esi
call sym.libxml2.dll_xmlParseName
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x10], edi
jne 0x1002bb6f
push str.xmlParseElementDecl:_no_name_for_Element_n
mov eax, 0x44
call fcn.10021e30
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 8
ret
mov edx, dword [esi + 0x24]
mov eax, dword [edx + 0x10]
cmp byte [eax], 0
jne 0x1002bb9b
lea ebx, [ebx]
cmp dword [esi + 0x28], 1
jle 0x1002bb9b
push esi
call sym.libxml2.dll_xmlPopInput
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx + 0x10]
mov al, byte [edx]
add esp, 4
test al, al
je 0x1002bb80
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
mov al, byte [ecx]
cmp al, 0x20
je 0x1002bbc5
cmp al, bl
jb 0x1002bbaf
cmp al, 0xa
jbe 0x1002bbc5
cmp al, 0xd
je 0x1002bbc5
push str.Space_required_after_the_element_name_n
mov eax, 0x41
call fcn.10021e30
add esp, 4
push esi
call sym.libxml2.dll_xmlSkipBlankChars
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
mov dl, byte [ecx]
add esp, 4
cmp dl, 0x45
mov bl, 0x59
jne 0x1002bc51
cmp byte [ecx + 1], 0x4d
jne 0x1002bc51
cmp byte [ecx + 2], 0x50
jne 0x1002bc51
cmp byte [ecx + 3], 0x54
jne 0x1002bc51
cmp byte [ecx + 4], bl
jne 0x1002bc51
mov ebx, dword [esi + 0xc8]
mov ecx, 5
add ebx, ecx
mov dword [esi + 0xc8], ebx
add dword [eax + 0x10], ecx
mov eax, dword [esi + 0x24]
add dword [eax + 0x20], ecx
mov edx, dword [esi + 0x24]
mov eax, dword [edx + 0x10]
cmp byte [eax], 0x25
jne 0x1002bc24
push esi
call sym.libxml2.dll_xmlParserHandlePEReference
add esp, 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
cmp byte [ecx], 0
jne 0x1002bc4a
push 0xfa
push eax
call sym.libxml2.dll_xmlParserInputGrow
add esp, 8
test eax, eax
jg 0x1002bc4a
push esi
call sym.libxml2.dll_xmlPopInput
add esp, 4
mov edi, 1
jmp 0x1002bcce
cmp dl, 0x41
jne 0x1002bcb4
cmp byte [ecx + 1], 0x4e
jne 0x1002bcb4
cmp byte [ecx + 2], bl
jne 0x1002bcb4
add dword [esi + 0xc8], 3
add dword [eax + 0x10], 3
mov eax, dword [esi + 0x24]
add dword [eax + 0x20], 3
mov edx, dword [esi + 0x24]
mov eax, dword [edx + 0x10]
cmp byte [eax], 0x25
jne 0x1002bc87
push esi
call sym.libxml2.dll_xmlParserHandlePEReference
add esp, 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
cmp byte [ecx], 0
jne 0x1002bcad
push 0xfa
push eax
call sym.libxml2.dll_xmlParserInputGrow
add esp, 8
test eax, eax
jg 0x1002bcad
push esi
call sym.libxml2.dll_xmlPopInput
add esp, 4
mov edi, 2
jmp 0x1002bcce
cmp dl, 0x28
jne 0x1002be30
lea edx, [esp + 0xc]
push edx
push edi
push esi
call sym.libxml2.dll_xmlParseElementContentDecl
add esp, 0xc
mov edi, eax
push esi
call sym.libxml2.dll_xmlSkipBlankChars
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
mov al, byte [ecx]
add esp, 4
test al, al
jne 0x1002bcfe
cmp dword [esi + 0x28], 1
jle 0x1002bcfe
push esi
call sym.libxml2.dll_xmlPopInput
mov edx, dword [esi + 0x24]
mov eax, dword [edx + 0x10]
mov cl, byte [eax]
add esp, 4
test cl, cl
je 0x1002bce3
push esi
call sym.libxml2.dll_xmlSkipBlankChars
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
mov dl, byte [ecx]
add esp, 4
cmp dl, 0x3e
je 0x1002bd93
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x1002bd27
cmp dword [esi + 0xac], 0xffffffff
je 0x1002bd75
push 0
push str.expected___n
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 3
push 0x49
push 1
push 0
push esi
push 0
push 0
push 0
mov dword [esi + 0x54], 0x49
call sym.libxml2.dll___xmlRaiseError
mov eax, dword [esi + 0x120]
add esp, 0x44
test eax, eax
mov dword [esi + 0xc], 0
jne 0x1002bd75
mov dword [esi + 0xd4], 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1002bd8a
mov edx, dword [esi + 8]
push eax
push edx
call sym.libxml2.dll_xmlFreeDocElementContent
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp dword [esp + 0x18], eax
je 0x1002bdab
push str.Element_declaration_doesnt_start_and_stop_in_the_same_entity_n
mov eax, 0x5a
call fcn.10021e30
add esp, 4
push esi
call sym.libxml2.dll_xmlNextChar
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x1002be0e
mov ecx, dword [esi + 0xd4]
test ecx, ecx
jne 0x1002be0e
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1002be0e
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x1002bdda
mov dword [ebx + 0x14], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 4]
mov eax, dword [esi]
push ebx
push edi
push ecx
push edx
call dword [eax + 0x24]
add esp, 0x10
test ebx, ebx
je 0x1002bd8a
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x1002bd8a
mov eax, dword [esi + 8]
push ebx
push eax
call sym.libxml2.dll_xmlFreeDocElementContent
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1002bd8a
mov ecx, dword [esi + 8]
push eax
push ecx
call sym.libxml2.dll_xmlFreeDocElementContent
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp dl, 0x25
jne 0x1002be5e
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x1002be5e
cmp dword [esi + 0x28], 1
jne 0x1002be5e
push str.PEReference:_forbidden_within_markup_decl_in_internal_subset_n
mov eax, 0x15
call fcn.10021e30
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 8
ret
push str.xmlParseElementDecl:_EMPTY__ANY_or___expected_n
mov eax, 0x36
call fcn.10021e30
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 8
ret