Function at 0x40c300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4227ce
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x42a8c0]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42a8c0]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x108]
mov edi, dword [esp + 0x10c]
mov ebp, ecx
mov eax, dword [ebp + 0x64]
mov eax, dword [eax]
mov ecx, esi
sar ecx, 0x10
mov edx, esi
and edx, 0xffff
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x28], edx
shl edx, 5
mov eax, dword [ecx + edx + 0xc]
xor ebx, ebx
and eax, 0xffff
lea ecx, [esp + 0x54]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], eax
call fcn.0040bfe0
mov dword [esp + 0x100], ebx
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
mov byte [esp + 0x100], 1
mov dword [edi + 8], ebx
lea ebx, [ebx]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xc8]
push edx
call fcn.0040de90
xor ebx, ebx
cmp eax, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
jne 0x40c564
mov ecx, dword [ebp + 0x64]
mov esi, dword [ecx + 4]
mov edx, dword [ebp + 0x44]
cmp edx, esi
jne 0x40c401
mov eax, edx
sar eax, 1
add eax, edx
cmp esi, eax
jge 0x40c401
push eax
call fcn.00407560
cmp dword [esp + 0x24], ebx
mov esi, dword [ebp + 0x44]
lea eax, [esi + 1]
mov dword [ebp + 0x44], eax
jne 0x40c414
mov dword [esp + 0x24], esi
mov eax, dword [ebp + 0x64]
mov edx, dword [eax]
mov eax, esi
and eax, 0xffff
mov ecx, esi
sar ecx, 0x10
shl eax, 5
add eax, dword [edx + ecx*4]
mov edx, dword [esp + 0x108]
mov dword [eax + 0x10], edx
mov dword [eax + 0x18], ebx
mov edi, dword [ebp + 0x64]
mov ebx, dword [edi]
mov ecx, edx
and edx, 0xffff
sar ecx, 0x10
shl edx, 5
add edx, dword [ebx + ecx*4]
mov ecx, dword [edx + 0x14]
test ecx, ecx
je 0x40c499
mov edx, ecx
and ecx, 0xffff
shl ecx, 5
sar edx, 0x10
add ecx, dword [ebx + edx*4]
mov edi, ebx
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, edx
mov ebx, edx
sar ecx, 0x10
mov ecx, dword [edi + ecx*4]
and ebx, 0xffff
shl ebx, 5
mov dword [ecx + ebx + 0x18], esi
mov dword [eax + 0x1c], edx
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x1c], esi
mov dword [eax + 0xc], 0
jmp 0x40c4a6
mov dword [edx + 0x14], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0xc], 0x80000
mov edi, dword [eax + 0xc]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x34]
add edx, ecx
and edi, 0xffff0000
or edi, edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x14], 0
mov edx, dword [esp + 0xcc]
mov dword [eax], edx
mov edx, dword [eax + 8]
xor edx, dword [esp + 0xd0]
and edx, 0x3fffff
xor dword [eax + 8], edx
test dword [esp + 0xd4], 0x10000
mov edx, dword [eax + 8]
je 0x40c510
mov esi, dword [esp + 0x108]
and edx, 0x3fffff
mov dword [eax + 8], edx
mov ecx, dword [esp + 0xd0]
mov dword [eax + 4], ecx
jmp 0x40c3c0
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
mov edi, dword [edx + 4]
mov ebx, dword [edx + 0xc]
sub edi, eax
add ebx, eax
mov eax, dword [esp + 0x68]
add ecx, 1
add edi, 1
cmp ecx, eax
mov dword [esp + 0x108], esi
mov dword [esp + 0x54], ecx
jne 0x40c54a
lea edx, [eax + eax]
push edx
lea ecx, [esp + 0x58]
call fcn.0040bba0
mov ecx, dword [esp + 0x54]
mov eax, ecx
shl eax, 4
sub eax, ecx
mov ecx, dword [esp + 0x60]
push edi
lea ecx, [ecx + eax*4]
push ebx
call fcn.00408f70
jmp 0x40c3c0
cmp eax, ebx
jne 0x40c839
mov eax, dword [esp + 0x54]
cmp eax, ebx
mov edi, esi
mov dword [esp + 0x14], eax
je 0x40c5e7
mov edx, eax
shl edx, 4
sub edx, eax
mov eax, dword [esp + 0x60]
lea ebx, [eax + edx*4]
mov eax, ebx
push ecx
sub ebx, 0x3c
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x1c], esp
mov ecx, esp
jb 0x40c59f
mov eax, dword [eax + 4]
jmp 0x40c5a2
add eax, 4
mov dword [ecx], eax
mov ecx, dword [esp + 0x24]
call fcn.00407820
test al, al
jne 0x40c5dc
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x64]
mov eax, dword [eax]
mov edx, edi
and edi, 0xffff
sar edx, 0x10
mov edx, dword [eax + edx*4]
sub ecx, 1
shl edi, 5
test ecx, ecx
mov edi, dword [edx + edi + 0x10]
mov dword [esp + 0x14], ecx
jne 0x40c588
jmp 0x40c5e7
cmp dword [esp + 0x14], 0
jne 0x40c7f3
mov eax, dword [ebp + 0x64]
mov eax, dword [eax]
mov edx, dword [esp + 0x2c]
mov eax, dword [eax + edx*4]
mov ecx, dword [esp + 0x28]
shl ecx, 5
or dword [eax + ecx + 0xc], 0x800000
lea eax, [eax + ecx + 0xc]
mov eax, dword [ebp + 0x64]
mov edx, dword [eax]
mov ecx, esi
sar ecx, 0x10
mov ecx, dword [edx + ecx*4]
mov eax, esi
and eax, 0xffff
shl eax, 5
or dword [ecx + eax + 0xc], 0x200000
lea eax, [ecx + eax + 0xc]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x38]
push edx
call fcn.0040a030
mov ecx, dword [esp + 0xcc]
push 0xffffffffffffffff
push ecx
push 0
push ecx
mov edi, 0x10
cmp dword [eax + 0x18], edi
mov byte [esp + 0x110], 2
mov dword [esp + 0x28], esp
mov ecx, esp
jb 0x40c661
mov eax, dword [eax + 4]
jmp 0x40c664
add eax, 4
push ecx
mov dword [ecx], eax
mov eax, esp
lea edx, [ebp + 0x1c]
mov dword [esp + 0x2c], esp
push edx
mov dword [eax], str.lone_end_tag
call fcn.0040d0c0
add esp, 0x18
cmp dword [esp + 0x50], edi
mov byte [esp + 0x100], 1
jb 0x40c69a
mov eax, dword [esp + 0x3c]
push eax
call fcn.0041070c
add esp, 4
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
cmp dword [esp + 0x14], 0
je 0x40c3c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x54]
cmp ecx, dword [esp + 0x14]
jle 0x40c909
mov eax, dword [ebp + 0x64]
mov edx, dword [eax]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [edx + ecx*4]
shl eax, 5
or dword [edx + eax + 0xc], 0x800000
lea eax, [edx + eax + 0xc]
mov eax, dword [ebp + 0x64]
mov edx, dword [eax]
mov eax, esi
and eax, 0xffff
mov ecx, esi
sar ecx, 0x10
shl eax, 5
add eax, dword [edx + ecx*4]
and dword [eax + 8], 0x3fffff
or dword [eax + 0xc], 0x100000
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
mov edi, dword [eax + 0x14]
and ecx, 0x3fffff
test edx, 0x200000
mov dword [esp + 0x108], ebx
mov dword [eax + 0x14], 0
mov dword [eax + 4], ecx
je 0x40c76d
xor edx, 0x200000
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 0x64]
mov ecx, dword [ecx]
mov edx, ebx
and ebx, 0xffff
sar edx, 0x10
mov edx, dword [ecx + edx*4]
shl ebx, 5
or dword [edx + ebx + 0xc], 0x200000
lea ecx, [edx + ebx + 0xc]
mov ebx, dword [esp + 0x108]
test edi, edi
je 0x40c7da
mov ebp, dword [ebp + 0x64]
mov ebp, dword [ebp]
mov ecx, edi
sar ecx, 0x10
mov edx, edi
add ecx, ecx
add ecx, ecx
mov ebp, dword [ecx + ebp]
and edx, 0xffff
shl edx, 5
mov dword [edx + ebp + 0x10], ebx
mov ebx, dword [esp + 0x30]
mov ebp, dword [ebx + 0x64]
mov ebp, dword [ebp]
mov ebp, dword [ecx + ebp]
mov dword [edx + ebp + 0x1c], esi
mov ebx, dword [ebx + 0x64]
mov ebx, dword [ebx]
mov ebp, esi
sar ebp, 0x10
mov ebx, dword [ebx + ebp*4]
mov ebp, dword [esp + 0x30]
and esi, 0xffff
shl esi, 5
mov dword [ebx + esi + 0x18], edi
mov ebx, dword [esp + 0x108]
mov esi, edi
mov edi, dword [ebp + 0x64]
mov edi, dword [edi]
mov ecx, dword [ecx + edi]
mov edi, dword [ecx + edx + 0x18]
test edi, edi
jne 0x40c771
cmp dword [esp + 0x1c], 0
jne 0x40c8a6
mov edx, dword [esp + 0x20]
mov edx, dword [edx]
sub edx, 1
jmp 0x40c8a9
mov eax, dword [ebp + 0x64]
mov edx, dword [eax]
mov eax, dword [esp + 0xd0]
mov ecx, edi
and edi, 0xffff
sar ecx, 0x10
shl edi, 5
add edi, dword [edx + ecx*4]
sub eax, dword [edi]
mov ecx, dword [edi + 8]
add eax, dword [esp + 0xcc]
and ecx, 0x3fffff
mov dword [edi + 4], eax
mov edx, dword [esp + 0xd0]
shl edx, 0x16
or ecx, edx
mov dword [edi + 8], ecx
jmp 0x40c6af
cmp eax, 0xffffffff
jne 0x40c898
mov eax, dword [ebp + 0x64]
mov eax, dword [eax]
mov edx, dword [esp + 0x2c]
mov eax, dword [eax + edx*4]
mov ecx, dword [esp + 0x28]
shl ecx, 5
or dword [eax + ecx + 0xc], 0x800000
lea eax, [eax + ecx + 0xc]
mov eax, dword [ebp + 0x64]
mov edx, dword [eax]
mov ecx, esi
sar ecx, 0x10
mov ecx, dword [edx + ecx*4]
mov eax, esi
and eax, 0xffff
push 0xffffffffffffffff
shl eax, 5
or dword [ecx + eax + 0xc], 0x200000
lea eax, [ecx + eax + 0xc]
push ebx
lea edx, [esp + 0xe0]
push edx
lea ecx, [ebp + 0x1c]
call fcn.00408920
jmp 0x40c3c0
cmp eax, 0xfffffffe
jne 0x40c3c0
jmp 0x40c6be
mov edx, dword [ebp + 0x14]
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x60]
push edx
mov edx, dword [eax]
mov ecx, edi
shl ecx, 4
sub ecx, edi
cmp dword [esi + ecx*4 + 0x18], 0x10
push edx
lea ecx, [esi + ecx*4]
push 0
push ecx
mov dword [esp + 0x28], esp
mov eax, esp
jb 0x40c8d4
mov ecx, dword [ecx + 4]
jmp 0x40c8d7
add ecx, 4
push ecx
mov dword [eax], ecx
mov eax, esp
mov dword [eax], str.unended_start_tag
lea eax, [ebp + 0x1c]
mov dword [esp + 0x2c], esp
push eax
call fcn.0040d0c0
sub edi, 1
add esp, 0x18
cmp edi, dword [esp + 0x14]
mov esi, ebx
mov dword [esp + 0x54], edi
jg 0x40c6eb
mov eax, dword [esp + 0x1c]
cmp eax, 0xfffffffe
je 0x40c939
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx]
mov eax, esi
and esi, 0xffff
sar eax, 0x10
mov eax, dword [edx + eax*4]
shl esi, 5
mov esi, dword [eax + esi + 0x10]
sub dword [esp + 0x54], 1
mov dword [esp + 0x108], esi
jmp 0x40c3c0
cmp dword [esp + 0xf0], 0x10
jb 0x40c953
mov ecx, dword [esp + 0xdc]
push ecx
call fcn.0041070c
add esp, 4
mov eax, dword [esp + 0x60]
test eax, eax
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], 0
mov byte [esp + 0xdc], 0
mov dword [esp + 0x100], 0xffffffff
je 0x40c9a1
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x408820
push edx
push 0x3c
push eax
call fcn.00412e36
push esi
call fcn.0041129f
add esp, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.00410c90
add esp, 0xf0
ret 8