Function at 0x418230
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 0x418540
cmp byte [eax + 1], 0x21
jne 0x418540
cmp byte [eax + 2], 0x45
jne 0x418540
cmp byte [eax + 3], 0x4c
jne 0x418540
cmp byte [eax + 4], 0x45
jne 0x418540
cmp byte [eax + 5], 0x4d
jne 0x418540
cmp byte [eax + 6], 0x45
jne 0x418540
cmp byte [eax + 7], 0x4e
jne 0x418540
cmp byte [eax + 8], 0x54
jne 0x418540
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 0x4182e3
push esi
call fcn.00411c00
add esp, 4
mov eax, dword [esi + 0x24]
mov edx, dword [eax + 0x10]
cmp byte [edx], 0
jne 0x418309
push 0xfa
push eax
call fcn.004208b0
add esp, 8
test eax, eax
jg 0x418309
push esi
call fcn.00411370
add esp, 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
mov al, byte [ecx]
cmp al, 0x20
je 0x418331
cmp al, bl
jb 0x41831d
cmp al, 0xa
jbe 0x418331
cmp al, 0xd
je 0x418331
push str.Space_required_after_ELEMENT_n
push 0x41
push esi
call fcn.00412550
add esp, 0xc
push esi
call fcn.00411240
push esi
call fcn.00412b90
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x14], edi
jne 0x418365
push str.xmlParseElementDecl:_no_name_for_Element_n
push 0x44
push esi
call fcn.00412550
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 0x41838e
cmp dword [esi + 0x28], ebp
jle 0x41838e
push esi
call fcn.00411370
mov ecx, dword [esi + 0x24]
add esp, 4
mov edx, dword [ecx + 0x10]
cmp byte [edx], 0
je 0x418375
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
mov al, byte [ecx]
cmp al, 0x20
je 0x4183b6
cmp al, bl
jb 0x4183a2
cmp al, 0xa
jbe 0x4183b6
cmp al, 0xd
je 0x4183b6
push str.Space_required_after_the_element_name_n
push 0x41
push esi
call fcn.00412550
add esp, 0xc
push esi
call fcn.00411240
mov eax, dword [esi + 0x24]
add esp, 4
mov bl, 0x59
mov ecx, dword [eax + 0x10]
mov dl, byte [ecx]
cmp dl, 0x45
jne 0x41844c
cmp byte [ecx + 1], 0x4d
jne 0x41844c
cmp byte [ecx + 2], 0x50
jne 0x41844c
cmp byte [ecx + 3], 0x54
jne 0x41844c
cmp byte [ecx + 4], bl
jne 0x41844c
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 0x41841f
push esi
call fcn.00411c00
add esp, 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
cmp byte [ecx], 0
jne 0x418445
push 0xfa
push eax
call fcn.004208b0
add esp, 8
test eax, eax
jg 0x418445
push esi
call fcn.00411370
add esp, 4
mov edi, ebp
jmp 0x4184dd
cmp dl, 0x41
jne 0x4184c3
cmp byte [ecx + 1], 0x4e
jne 0x4184c3
cmp byte [ecx + 2], bl
jne 0x4184c3
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 0x418496
push esi
call fcn.00411c00
add esp, 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
cmp byte [ecx], 0
jne 0x4184bc
push 0xfa
push eax
call fcn.004208b0
add esp, 8
test eax, eax
jg 0x4184bc
push esi
call fcn.00411370
add esp, 4
mov edi, 2
jmp 0x4184dd
cmp dl, 0x28
jne 0x4185cc
lea edx, [esp + 0x10]
push edx
push edi
push esi
call fcn.00418130
add esp, 0xc
mov edi, eax
push esi
call fcn.00411240
mov eax, dword [esi + 0x24]
add esp, 4
mov ecx, dword [eax + 0x10]
cmp byte [ecx], 0
jne 0x41850a
cmp dword [esi + 0x28], ebp
jle 0x41850a
push esi
call fcn.00411370
mov edx, dword [esi + 0x24]
add esp, 4
mov eax, dword [edx + 0x10]
cmp byte [eax], 0
je 0x4184f1
push esi
call fcn.00411240
mov eax, dword [esi + 0x24]
add esp, 4
mov ecx, dword [eax + 0x10]
cmp byte [ecx], 0x3e
je 0x41854a
push 0
push 0x49
push esi
call fcn.00411830
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x418540
mov edx, dword [esi + 8]
push eax
push edx
call fcn.00423760
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esp + 0x1c], eax
je 0x418560
push str.Element_declaration_doesnt_start_and_stop_in_the_same_entity_n
push 0x5a
push esi
call fcn.00412550
add esp, 0xc
push esi
call fcn.00420a10
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x41852b
mov ecx, dword [esi + 0xd4]
test ecx, ecx
jne 0x41852b
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x41852b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x418593
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 0x418540
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x418540
mov ecx, dword [esi + 8]
push eax
push ecx
call fcn.00423760
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dl, 0x25
jne 0x4185f8
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x4185f8
cmp dword [esi + 0x28], ebp
jne 0x4185f8
push str.PEReference:_forbidden_within_markup_decl_in_internal_subset_n
push 0x15
push esi
call fcn.00412550
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.00412550
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret