Function at 0x410340
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529a3b
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x58c8c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, ecx
mov edx, dword [edi + 0x64]
mov edx, dword [edx]
mov dword [ebp - 0x6c], eax
mov eax, ebx
sar eax, 0x10
mov dword [ebp - 0x84], eax
mov eax, dword [edx + eax*4]
mov ecx, ebx
and ecx, 0xffff
mov dword [ebp - 0x80], ecx
shl ecx, 5
mov eax, dword [eax + ecx + 0xc]
and eax, 0xffff
mov dword [ebp - 0x8c], eax
xor eax, eax
push 7
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x78], 0
mov esi, ebx
mov dword [ebp - 0x104], eax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xf8], eax
call fcn.0040f340
mov eax, dword [ebp - 0xf8]
mov ecx, 1
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
xor ecx, ecx
push 0x5c
push ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x34], ecx
lea ecx, [ebp - 0xec]
push ecx
mov dword [eax + 0x30], 0xffffffff
call fcn.00508fc0
add esp, 0xc
xor eax, eax
xor edx, edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], dx
mov ecx, dword [ebp - 0x6c]
mov byte [ebp - 4], 1
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x6c]
lea edx, [ebp - 0x3c]
push edx
call fcn.00412030
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], 0
cmp eax, 1
jne 0x4105ef
mov ecx, dword [edi + 0x64]
mov esi, dword [ecx + 4]
mov edx, dword [edi + 0x44]
cmp edx, esi
jne 0x410481
mov eax, edx
sar eax, 1
add eax, edx
cmp esi, eax
jge 0x410481
push eax
call fcn.0040bbe0
cmp dword [ebp - 0x78], 0
mov esi, dword [edi + 0x44]
lea eax, [esi + 1]
mov dword [edi + 0x44], eax
jne 0x410493
mov dword [ebp - 0x78], esi
mov eax, dword [edi + 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, ebx
sar edx, 0x10
mov dword [ebp - 0x60], edx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x18], 0
mov ecx, dword [edi + 0x64]
mov ecx, dword [ecx]
mov edx, ebx
mov ebx, dword [ebp - 0x60]
and edx, 0xffff
shl edx, 5
add edx, dword [ecx + ebx*4]
mov ecx, dword [edx + 0x14]
test ecx, ecx
je 0x410527
mov edx, dword [edi + 0x64]
mov edx, dword [edx]
mov ebx, ecx
and ecx, 0xffff
shl ecx, 5
sar ebx, 0x10
add ecx, dword [edx + ebx*4]
mov edx, dword [edi + 0x64]
mov edx, dword [edx]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ecx + 0x1c]
mov ebx, ecx
mov dword [ebp - 0x60], ecx
sar ebx, 0x10
mov edx, dword [edx + ebx*4]
and ecx, 0xffff
shl ecx, 5
mov dword [edx + ecx + 0x18], esi
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x70]
mov dword [eax + 0x1c], ecx
mov dword [edx + 0x1c], esi
mov dword [eax + 0xc], 0
jmp 0x410534
mov dword [edx + 0x14], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0xc], 0x80000
mov ebx, dword [eax + 0xc]
mov ecx, dword [ebp - 0x104]
mov edx, dword [ebp - 0x8c]
add edx, ecx
and ebx, 0xffff0000
or ebx, edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x14], 0
mov edx, dword [ebp - 0x38]
mov dword [eax], edx
mov edx, dword [eax + 8]
xor edx, dword [ebp - 0x34]
and edx, 0x3fffff
xor dword [eax + 8], edx
test dword [ebp - 0x30], 0x10000
mov edx, dword [eax + 8]
je 0x410590
mov esi, dword [ebp - 0x5c]
and edx, 0x3fffff
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 4], ecx
mov ebx, esi
jmp 0x410445
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx]
mov ebx, dword [edx + 4]
mov edx, dword [edx + 0xc]
sub ebx, eax
lea eax, [edx + eax*2]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xf0]
inc ecx
inc ebx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x104], ecx
cmp ecx, eax
jne 0x4105cd
lea ecx, [eax + eax]
push ecx
lea ecx, [ebp - 0x104]
call fcn.0040f340
mov ecx, dword [ebp - 0x104]
mov eax, dword [ebp - 0xf8]
mov edx, ecx
shl edx, 4
sub edx, ecx
lea ecx, [eax + edx*4]
mov edx, dword [ebp - 0x60]
push ebx
push edx
call fcn.004031e0
mov ebx, dword [ebp - 0x5c]
jmp 0x410445
test eax, eax
jne 0x4107db
mov eax, dword [ebp - 0x104]
mov ebx, esi
mov dword [ebp - 0x68], eax
test eax, eax
je 0x4106e2
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
sub eax, edx
mov dword [ebp - 0x74], edx
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
and edx, 8
mov dword [ebp - 0x90], edx
mov edx, dword [ebp - 0x74]
lea ecx, [ecx + edx*2]
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp - 0x104]
mov edx, ecx
shl edx, 4
inc eax
sub edx, ecx
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0x60], eax
lea edx, [ecx + edx*4]
lea esp, [esp]
mov ecx, edx
sub edx, 0x3c
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x64], edx
jb 0x410665
mov edx, dword [ecx]
mov dword [ebp - 0x74], edx
jmp 0x410668
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x74]
push ecx
push eax
mov eax, dword [ebp - 0x7c]
push edx
push eax
call fcn.0040b8b0
add esp, 0x10
test eax, eax
jne 0x4106a8
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x60]
movzx eax, word [ecx + edx*2]
test ax, ax
je 0x4106d8
cmp eax, 0x20
jb 0x4106a8
cmp eax, 0x5d
ja 0x4106a8
movsx eax, byte [eax + 0x544268]
test eax, eax
jne 0x4106d8
mov ecx, dword [ebp - 0x68]
mov eax, dword [edi + 0x64]
mov eax, dword [eax]
mov edx, ebx
and ebx, 0xffff
sar edx, 0x10
mov edx, dword [eax + edx*4]
dec ecx
shl ebx, 5
mov ebx, dword [edx + ebx + 0x10]
mov dword [ebp - 0x68], ecx
test ecx, ecx
je 0x4106e2
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x60]
jmp 0x410650
cmp dword [ebp - 0x68], 0
jne 0x4107a4
mov eax, dword [edi + 0x64]
mov eax, dword [eax]
mov edx, dword [ebp - 0x84]
mov eax, dword [eax + edx*4]
mov ecx, dword [ebp - 0x80]
shl ecx, 5
or dword [eax + ecx + 0xc], 0x800000
lea eax, [eax + ecx + 0xc]
mov eax, dword [edi + 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 [ebp - 0x6c]
lea edx, [ebp - 0x58]
push edx
call fcn.0040dfd0
mov ecx, dword [ebp - 0x38]
push 0xffffffffffffffff
push ecx
push 0
push ecx
mov ebx, 8
mov byte [ebp - 4], 2
mov dword [ebp - 0x64], esp
mov ecx, esp
cmp dword [eax + 0x14], ebx
jb 0x41074f
mov eax, dword [eax]
push ecx
mov dword [ecx], eax
mov eax, esp
lea edx, [edi + 0x1c]
mov dword [ebp - 0x64], esp
push edx
mov dword [eax], str.lone_end_tag
call fcn.00411200
add esp, 0x18
mov byte [ebp - 4], 1
cmp dword [ebp - 0x44], ebx
jb 0x41077e
mov eax, dword [ebp - 0x58]
push eax
call fcn.0041a1a9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], cx
cmp dword [ebp - 0x68], 0
jne 0x410844
mov ebx, dword [ebp - 0x5c]
jmp 0x410445
mov eax, dword [edi + 0x64]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x34]
mov edx, ebx
and ebx, 0xffff
sar edx, 0x10
shl ebx, 5
add ebx, dword [eax + edx*4]
sub ecx, dword [ebx]
mov edx, dword [ebx + 8]
add ecx, dword [ebp - 0x38]
and edx, 0x3fffff
mov dword [ebx + 4], ecx
mov eax, dword [ebp - 0x34]
shl eax, 0x16
or edx, eax
mov dword [ebx + 8], edx
jmp 0x410792
cmp eax, 0xffffffff
jne 0x410839
mov eax, dword [edi + 0x64]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x84]
mov ecx, dword [ecx + eax*4]
mov edx, dword [ebp - 0x80]
shl edx, 5
or dword [ecx + edx + 0xc], 0x800000
lea eax, [ecx + edx + 0xc]
mov eax, dword [edi + 0x64]
mov eax, dword [eax]
mov edx, esi
mov ecx, esi
and ecx, 0xffff
sar edx, 0x10
mov edx, dword [eax + edx*4]
shl ecx, 5
or dword [edx + ecx + 0xc], 0x200000
lea eax, [edx + ecx + 0xc]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 0x1c]
call fcn.004030d0
jmp 0x410445
cmp eax, 0xfffffffe
jne 0x410445
jmp 0x410847
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x104]
cmp ecx, dword [ebp - 0x68]
jle 0x4109dc
mov eax, dword [edi + 0x64]
mov edx, dword [eax]
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x84]
mov edx, dword [edx + ecx*4]
shl eax, 5
or dword [edx + eax + 0xc], 0x800000
lea eax, [edx + eax + 0xc]
mov eax, dword [edi + 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
mov ecx, dword [eax + 8]
or dword [eax + 0xc], 0x100000
mov edx, dword [eax + 0x14]
mov ebx, dword [eax + 0x10]
and ecx, 0x3fffff
mov dword [eax + 4], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], ebx
mov dword [eax + 0x14], 0
test ecx, 0x200000
je 0x4108f9
xor ecx, 0x200000
mov dword [eax + 0xc], ecx
mov edi, dword [edi + 0x64]
mov edi, dword [edi]
mov ecx, ebx
sar ecx, 0x10
mov ecx, dword [edi + ecx*4]
mov edi, dword [ebp - 0x88]
and ebx, 0xffff
shl ebx, 5
or dword [ecx + ebx + 0xc], 0x200000
lea ecx, [ecx + ebx + 0xc]
mov ebx, dword [ebp - 0x5c]
test edx, edx
je 0x41096b
lea ecx, [ecx]
mov edi, dword [edi + 0x64]
mov edi, dword [edi]
mov ecx, edx
sar ecx, 0x10
add ecx, ecx
add ecx, ecx
mov edi, dword [ecx + edi]
and edx, 0xffff
shl edx, 5
mov dword [edi + edx + 0x10], ebx
mov edi, dword [ebp - 0x88]
mov ebx, dword [edi + 0x64]
mov ebx, dword [ebx]
mov ebx, dword [ecx + ebx]
mov dword [ebx + edx + 0x1c], esi
mov edi, dword [edi + 0x64]
mov edi, dword [edi]
mov ebx, esi
sar ebx, 0x10
mov edi, dword [edi + ebx*4]
and esi, 0xffff
shl esi, 5
mov ebx, esi
mov esi, dword [ebp - 0x60]
mov dword [edi + ebx + 0x18], esi
mov edi, dword [ebp - 0x88]
mov ebx, dword [edi + 0x64]
mov ebx, dword [ebx]
mov ecx, dword [ebx + ecx]
mov edx, dword [ecx + edx + 0x18]
mov ebx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], edx
test edx, edx
jne 0x410900
cmp dword [ebp - 0x70], 0
jne 0x410979
mov edx, dword [ebp - 0x6c]
mov edx, dword [edx]
dec edx
jmp 0x41097c
mov edx, dword [edi + 0x10]
mov ecx, dword [ebp - 0x104]
mov esi, ecx
push edx
mov edx, dword [eax]
shl esi, 4
sub esi, ecx
mov ecx, dword [ebp - 0xf8]
cmp dword [ecx + esi*4 + 0x14], 8
push edx
lea ecx, [ecx + esi*4]
push 0
push ecx
mov dword [ebp - 0x64], esp
mov eax, esp
jb 0x4109a7
mov ecx, dword [ecx]
push ecx
mov dword [eax], ecx
mov eax, esp
mov dword [eax], str.unended_start_tag
lea eax, [edi + 0x1c]
mov dword [ebp - 0x64], esp
push eax
call fcn.00411200
mov eax, dword [ebp - 0x104]
dec eax
add esp, 0x18
mov esi, ebx
mov dword [ebp - 0x104], eax
cmp eax, dword [ebp - 0x68]
jg 0x410876
mov eax, dword [ebp - 0x70]
cmp eax, 0xfffffffe
je 0x410a0b
mov ecx, dword [edi + 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]
dec dword [ebp - 0x104]
mov dword [ebp - 0x5c], esi
mov ebx, esi
jmp 0x410445
cmp dword [ebp - 0x18], 8
jb 0x410a1d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0041a1a9
add esp, 4
mov eax, dword [ebp - 0xf8]
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x410a5f
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.00402e30
push ecx
push 0x3c
push eax
call fcn.0050c9c9
push esi
call fcn.0041a1a9
add esp, 4
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005089e3
mov esp, ebp
pop ebp
ret 8