Function at 0x10034650
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x9c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
mov esi, dword [esp + 0xa8]
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx + 0x10]
push edi
or edi, 0xffffffff
cmp byte [eax], 0x3c
mov dword [esp + 0xc], 0
jne 0x100349cf
cmp byte [eax + 1], 0x21
jne 0x100349cf
cmp byte [eax + 2], 0x45
jne 0x100349cf
cmp byte [eax + 3], 0x4c
jne 0x100349cf
cmp byte [eax + 4], 0x45
jne 0x100349cf
cmp byte [eax + 5], 0x4d
jne 0x100349cf
cmp byte [eax + 6], 0x45
jne 0x100349cf
cmp byte [eax + 7], 0x4e
jne 0x100349cf
cmp byte [eax + 8], 0x54
jne 0x100349cf
mov ebx, 9
add dword [esi + 0xc8], ebx
add dword [ecx + 0x10], ebx
mov eax, dword [esi + 0x24]
add dword [eax + 0x20], ebx
mov eax, dword [esi + 0x24]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x10]
cmp byte [ecx], 0x25
jne 0x10034704
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 0x1003472a
push 0xfa
push eax
call sym.libxml2.dll_xmlParserInputGrow
add esp, 8
test eax, eax
jg 0x1003472a
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 0x10034751
cmp al, bl
jb 0x1003473e
cmp al, 0xa
jbe 0x10034751
cmp al, 0xd
je 0x10034751
mov ecx, str.Space_required_after_ELEMENT_n
mov eax, 0x41
call fcn.10029520
push esi
call sym.libxml2.dll_xmlSkipBlankChars
add esp, 4
push esi
call sym.libxml2.dll_xmlParseName
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
jne 0x10034795
mov ecx, str.xmlParseElementDecl:_no_name_for_Element_n
lea eax, [edi + 0x44]
call fcn.10029520
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.100ca320
add esp, 0x9c
ret
mov edx, dword [esi + 0x24]
mov eax, dword [edx + 0x10]
cmp byte [eax], 0
jne 0x100347ba
cmp dword [esi + 0x28], 1
jle 0x100347ba
push esi
call sym.libxml2.dll_xmlPopInput
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx + 0x10]
add esp, 4
cmp byte [edx], 0
je 0x100347a0
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
mov al, byte [ecx]
cmp al, 0x20
je 0x100347e1
cmp al, bl
jb 0x100347ce
cmp al, 0xa
jbe 0x100347e1
cmp al, 0xd
je 0x100347e1
mov ecx, str.Space_required_after_the_element_name_n
mov eax, 0x41
call fcn.10029520
push esi
call sym.libxml2.dll_xmlSkipBlankChars
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
mov dl, byte [ecx]
add esp, 4
mov bl, 0x59
cmp dl, 0x45
jne 0x10034865
cmp byte [ecx + 1], 0x4d
jne 0x10034865
cmp byte [ecx + 2], 0x50
jne 0x10034865
cmp byte [ecx + 3], 0x54
jne 0x10034865
cmp byte [ecx + 4], bl
jne 0x10034865
mov ecx, 5
add dword [esi + 0xc8], ecx
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 0x10034838
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 0x1003485e
push 0xfa
push eax
call sym.libxml2.dll_xmlParserInputGrow
add esp, 8
test eax, eax
jg 0x1003485e
push esi
call sym.libxml2.dll_xmlPopInput
add esp, 4
mov edi, 1
jmp 0x100348e2
cmp dl, 0x41
jne 0x100348c8
cmp byte [ecx + 1], 0x4e
jne 0x100348c8
cmp byte [ecx + 2], bl
jne 0x100348c8
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 0x1003489b
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 0x100348c1
push 0xfa
push eax
call sym.libxml2.dll_xmlParserInputGrow
add esp, 8
test eax, eax
jg 0x100348c1
push esi
call sym.libxml2.dll_xmlPopInput
add esp, 4
mov edi, 2
jmp 0x100348e2
cmp dl, 0x28
jne 0x10034a54
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]
add esp, 4
cmp byte [ecx], 0
jne 0x10034910
cmp dword [esi + 0x28], 1
jle 0x10034910
push esi
call sym.libxml2.dll_xmlPopInput
mov edx, dword [esi + 0x24]
mov eax, dword [edx + 0x10]
add esp, 4
cmp byte [eax], 0
je 0x100348f6
push esi
call sym.libxml2.dll_xmlSkipBlankChars
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
add esp, 4
cmp byte [ecx], 0x3e
je 0x100349e9
push 0x80
lea edx, [esp + 0x1d]
push 0
push edx
mov byte [esp + 0x24], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp dword [esi + 0xd4], 0
je 0x10034953
cmp dword [esi + 0xac], 0xffffffff
je 0x100349ba
push str.expected__
push 0x100d3660
lea eax, [esp + 0x20]
push 0x80
push eax
call dword [sym.imp.MSVCR90.dll__snprintf]
push 0
lea ecx, [esp + 0x2c]
push ecx
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
add esp, 0x54
cmp dword [esi + 0x120], 0
mov dword [esi + 0xc], 0
jne 0x100349ba
mov dword [esi + 0xd4], 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100349cf
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
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.100ca320
add esp, 0x9c
ret
cmp dword [esp + 0x10], eax
je 0x100349fe
mov ecx, str.Element_declaration_doesnt_start_and_stop_in_the_same_entity_n
mov eax, 0x5a
call fcn.10029520
push esi
call sym.libxml2.dll_xmlNextChar
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x100349ba
cmp dword [esi + 0xd4], 0
jne 0x100349ba
cmp dword [eax + 0x24], 0
je 0x100349ba
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x10034a2b
mov dword [ebx + 0x14], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [eax + 0x24]
push ebx
push edi
push ecx
push edx
call eax
add esp, 0x10
test ebx, ebx
je 0x100349cf
cmp dword [ebx + 0x14], 0
jne 0x100349cf
mov ecx, dword [esi + 8]
push ebx
push ecx
jmp 0x100349c7
cmp dl, 0x25
jne 0x10034a8f
cmp dword [esi + 0x60], 0
jne 0x10034a8f
cmp dword [esi + 0x28], 1
jne 0x10034a8f
mov ecx, str.PEReference:_forbidden_within_markup_decl_in_internal_subset_n
mov eax, 0x15
call fcn.10029520
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.100ca320
add esp, 0x9c
ret
mov ecx, str.xmlParseElementDecl:_EMPTY__ANY_or___expected_n
mov eax, 0x36
call fcn.10029520
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.100ca320
add esp, 0x9c
ret