Function at 0x418050
Capabilities:
Parse pe header

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], 0
push edi
mov ecx, dword [esi + 0x24]
or edi, 0xffffffff
mov eax, dword [ecx + 0x10]
cmp byte [eax], 0x3c
jne 0x418360
cmp byte [eax + 1], 0x21
jne 0x418360
cmp byte [eax + 2], 0x45
jne 0x418360
cmp byte [eax + 3], 0x4c
jne 0x418360
cmp byte [eax + 4], 0x45
jne 0x418360
cmp byte [eax + 5], 0x4d
jne 0x418360
cmp byte [eax + 6], 0x45
jne 0x418360
cmp byte [eax + 7], 0x4e
jne 0x418360
cmp byte [eax + 8], 0x54
jne 0x418360
mov edi, dword [esi + 0xc8]
mov ebx, 9
add edi, ebx
mov dword [esp + 0x1c], ecx
mov dword [esi + 0xc8], edi
mov edx, dword [ecx + 0x10]
add edx, ebx
mov dword [ecx + 0x10], edx
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x20]
add ecx, ebx
mov dword [eax + 0x20], ecx
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
cmp byte [ecx], 0x25
jne 0x418103
push esi
call fcn.00411a20
add esp, 4
mov eax, dword [esi + 0x24]
mov edx, dword [eax + 0x10]
cmp byte [edx], 0
jne 0x418129
push 0xfa
push eax
call fcn.00421b90
add esp, 8
test eax, eax
jg 0x418129
push esi
call fcn.00411190
add esp, 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
mov al, byte [ecx]
cmp al, 0x20
je 0x418151
cmp al, bl
jb 0x41813d
cmp al, 0xa
jbe 0x418151
cmp al, 0xd
je 0x418151
push str.Space_required_after_ELEMENT_n
push 0x41
push esi
call fcn.00412370
add esp, 0xc
push esi
call fcn.00411060
push esi
call fcn.004129b0
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x14], edi
jne 0x418185
push str.xmlParseElementDecl:_no_name_for_Element_n
push 0x44
push esi
call fcn.00412370
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esi + 0x24]
mov ebp, 1
mov eax, dword [edx + 0x10]
cmp byte [eax], 0
jne 0x4181ae
cmp dword [esi + 0x28], ebp
jle 0x4181ae
push esi
call fcn.00411190
mov ecx, dword [esi + 0x24]
add esp, 4
mov edx, dword [ecx + 0x10]
cmp byte [edx], 0
je 0x418195
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
mov al, byte [ecx]
cmp al, 0x20
je 0x4181d6
cmp al, bl
jb 0x4181c2
cmp al, 0xa
jbe 0x4181d6
cmp al, 0xd
je 0x4181d6
push str.Space_required_after_the_element_name_n
push 0x41
push esi
call fcn.00412370
add esp, 0xc
push esi
call fcn.00411060
mov eax, dword [esi + 0x24]
add esp, 4
mov bl, 0x59
mov ecx, dword [eax + 0x10]
mov dl, byte [ecx]
cmp dl, 0x45
jne 0x41826c
cmp byte [ecx + 1], 0x4d
jne 0x41826c
cmp byte [ecx + 2], 0x50
jne 0x41826c
cmp byte [ecx + 3], 0x54
jne 0x41826c
cmp byte [ecx + 4], bl
jne 0x41826c
mov ebx, dword [esi + 0xc8]
mov ecx, 5
add ebx, ecx
mov dword [esi + 0xc8], ebx
mov edi, dword [eax + 0x10]
add edi, ecx
mov dword [eax + 0x10], edi
mov eax, dword [esi + 0x24]
mov edx, dword [eax + 0x20]
add edx, ecx
mov dword [eax + 0x20], edx
mov edx, dword [esi + 0x24]
mov eax, dword [edx + 0x10]
cmp byte [eax], 0x25
jne 0x41823f
push esi
call fcn.00411a20
add esp, 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
cmp byte [ecx], 0
jne 0x418265
push 0xfa
push eax
call fcn.00421b90
add esp, 8
test eax, eax
jg 0x418265
push esi
call fcn.00411190
add esp, 4
mov edi, ebp
jmp 0x4182fd
cmp dl, 0x41
jne 0x4182e3
cmp byte [ecx + 1], 0x4e
jne 0x4182e3
cmp byte [ecx + 2], bl
jne 0x4182e3
mov ebx, dword [esi + 0xc8]
mov ecx, 3
add ebx, ecx
mov dword [esi + 0xc8], ebx
mov edi, dword [eax + 0x10]
add edi, ecx
mov dword [eax + 0x10], edi
mov eax, dword [esi + 0x24]
mov edx, dword [eax + 0x20]
add edx, ecx
mov dword [eax + 0x20], edx
mov edx, dword [esi + 0x24]
mov eax, dword [edx + 0x10]
cmp byte [eax], 0x25
jne 0x4182b6
push esi
call fcn.00411a20
add esp, 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
cmp byte [ecx], 0
jne 0x4182dc
push 0xfa
push eax
call fcn.00421b90
add esp, 8
test eax, eax
jg 0x4182dc
push esi
call fcn.00411190
add esp, 4
mov edi, 2
jmp 0x4182fd
cmp dl, 0x28
jne 0x4183ec
lea edx, [esp + 0x10]
push edx
push edi
push esi
call fcn.00417f50
add esp, 0xc
mov edi, eax
push esi
call fcn.00411060
mov eax, dword [esi + 0x24]
add esp, 4
mov ecx, dword [eax + 0x10]
cmp byte [ecx], 0
jne 0x41832a
cmp dword [esi + 0x28], ebp
jle 0x41832a
push esi
call fcn.00411190
mov edx, dword [esi + 0x24]
add esp, 4
mov eax, dword [edx + 0x10]
cmp byte [eax], 0
je 0x418311
push esi
call fcn.00411060
mov eax, dword [esi + 0x24]
add esp, 4
mov ecx, dword [eax + 0x10]
cmp byte [ecx], 0x3e
je 0x41836a
push 0
push 0x49
push esi
call fcn.00411650
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x418360
mov edx, dword [esi + 8]
push eax
push edx
call fcn.00424d60
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esp + 0x1c], eax
je 0x418380
push str.Element_declaration_doesnt_start_and_stop_in_the_same_entity_n
push 0x5a
push esi
call fcn.00412370
add esp, 0xc
push esi
call fcn.00421cf0
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x41834b
mov ecx, dword [esi + 0xd4]
test ecx, ecx
jne 0x41834b
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x41834b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4183b3
mov dword [eax + 0x14], 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi]
push eax
mov eax, dword [esi + 4]
push edi
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
je 0x418360
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x418360
mov ecx, dword [esi + 8]
push eax
push ecx
call fcn.00424d60
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dl, 0x25
jne 0x418418
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x418418
cmp dword [esi + 0x28], ebp
jne 0x418418
push str.PEReference:_forbidden_within_markup_decl_in_internal_subset_n
push 0x15
push esi
call fcn.00412370
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push str.xmlParseElementDecl:_EMPTY__ANY_or___expected_n
push 0x36
push esi
call fcn.00412370
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret