Function at 0x471780
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4907cb
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x4b04dc]
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 eax, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x6c], eax
mov eax, dword [ebx + 0x64]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
xor edi, edi
and eax, 0xffff
lea esi, [edi + 7]
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x88], eax
mov dword [ebp - 0xfc], edi
mov dword [ebp - 0xec], edi
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xf0], edi
call fcn.0046e390
mov eax, dword [ebp - 0xf0]
xor esi, esi
mov ecx, 1
push 0x5c
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], esi
mov dword [eax + 0x2c], esi
mov dword [eax + 0x30], 0xffffffff
mov dword [eax + 0x38], esi
mov dword [eax + 0x34], esi
lea eax, [ebp - 0xe4]
push esi
push eax
call fcn.00480950
add esp, 0xc
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x6c]
mov byte [ebp - 4], 1
mov dword [ecx + 8], esi
jmp 0x471860
mov ecx, dword [ebp - 0x6c]
lea edx, [ebp - 0x3c]
push edx
call fcn.0046fea0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x70], 0
cmp eax, 1
jne 0x471a03
mov esi, dword [ebx + 0x64]
mov edx, dword [esi + 4]
mov ecx, dword [ebx + 0x44]
cmp ecx, edx
jne 0x47189c
mov eax, ecx
sar eax, 1
add eax, ecx
cmp edx, eax
jge 0x47189c
push eax
call fcn.0046dd70
cmp dword [ebp - 0x74], 0
mov edi, dword [ebx + 0x44]
lea eax, [edi + 1]
mov dword [ebx + 0x44], eax
jne 0x4718ae
mov dword [ebp - 0x74], edi
mov eax, dword [ebx + 0x64]
mov edx, dword [eax]
mov eax, edi
and eax, 0xffff
mov ecx, edi
sar ecx, 0x10
shl eax, 5
add eax, dword [edx + ecx*4]
mov edx, dword [ebp - 0x64]
mov dword [eax + 0x10], edx
mov dword [eax + 0x18], 0
mov ecx, dword [ebx + 0x64]
mov ecx, dword [ecx]
mov esi, edx
and edx, 0xffff
sar esi, 0x10
shl edx, 5
add edx, dword [ecx + esi*4]
mov ecx, dword [edx + 0x14]
test ecx, ecx
je 0x47193d
mov edx, dword [ebx + 0x64]
mov edx, dword [edx]
mov esi, ecx
and ecx, 0xffff
shl ecx, 5
sar esi, 0x10
add ecx, dword [edx + esi*4]
mov edx, dword [ebx + 0x64]
mov edx, dword [edx]
mov dword [ebp - 0x68], ecx
mov ecx, dword [ecx + 0x1c]
mov esi, ecx
mov dword [ebp - 0x60], ecx
sar esi, 0x10
mov edx, dword [edx + esi*4]
and ecx, 0xffff
shl ecx, 5
mov dword [edx + ecx + 0x18], edi
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x68]
mov dword [eax + 0x1c], ecx
mov dword [edx + 0x1c], edi
mov dword [eax + 0xc], 0
jmp 0x47194a
mov dword [edx + 0x14], edi
mov dword [eax + 0x1c], edi
mov dword [eax + 0xc], 0x80000
mov esi, dword [eax + 0xc]
mov ecx, dword [ebp - 0xfc]
mov edx, dword [ebp - 0x88]
add edx, ecx
and esi, 0xffff0000
or esi, edx
mov dword [eax + 0xc], esi
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 0x4719a4
mov edi, dword [ebp - 0x64]
and edx, 0x3fffff
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 4], ecx
jmp 0x471860
mov edx, dword [ebp - 0x6c]
mov esi, dword [edx]
mov eax, dword [edx + 4]
mov edx, dword [edx + 0xc]
sub eax, esi
add edx, esi
mov esi, dword [ebp - 0xe8]
inc ecx
inc eax
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], edx
mov dword [ebp - 0xfc], ecx
cmp ecx, esi
jne 0x4719e7
add esi, esi
lea ecx, [ebp - 0xfc]
call fcn.0046e390
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xfc]
mov esi, ecx
shl esi, 4
sub esi, ecx
mov ecx, dword [ebp - 0xf0]
push eax
lea ecx, [ecx + esi*4]
push edx
call fcn.00401a00
jmp 0x471860
test eax, eax
jne 0x471ceb
mov eax, dword [ebp - 0xfc]
mov esi, edi
mov dword [ebp - 0x70], eax
test eax, eax
je 0x471aee
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 0x10]
and edx, 8
mov dword [ebp - 0x84], edx
mov edx, dword [ebp - 0x6c]
mov edx, dword [edx + 0xc]
add edx, eax
sub ecx, eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x80], edx
mov edx, eax
shl edx, 4
inc ecx
sub edx, eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x60], ecx
lea edx, [eax + edx*4]
lea esp, [esp]
mov eax, edx
sub edx, 0x3c
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x5c], edx
jb 0x471a75
mov edx, dword [eax]
mov dword [ebp - 0x78], edx
jmp 0x471a78
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x80]
call fcn.0046cf00
add esp, 4
test eax, eax
jne 0x471ab4
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x60]
mov al, byte [ecx + edx]
test al, al
je 0x471ae4
cmp al, 0x20
jl 0x471ab4
cmp al, 0x5d
jg 0x471ab4
movsx eax, al
movsx eax, byte [eax + 0x4a3988]
test eax, eax
jne 0x471ae4
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebx + 0x64]
mov eax, dword [eax]
mov edx, esi
and esi, 0xffff
sar edx, 0x10
mov edx, dword [eax + edx*4]
dec ecx
shl esi, 5
mov esi, dword [edx + esi + 0x10]
mov dword [ebp - 0x70], ecx
test ecx, ecx
je 0x471aee
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
jmp 0x471a60
cmp dword [ebp - 0x70], 0
jne 0x471cb1
mov eax, dword [ebx + 0x64]
mov eax, dword [eax]
mov eax, dword [eax]
or dword [eax + 0xc], 0x800000
mov eax, dword [ebx + 0x64]
mov edx, dword [eax]
mov ecx, edi
sar ecx, 0x10
mov ecx, dword [edx + ecx*4]
mov eax, edi
and eax, 0xffff
shl eax, 5
or dword [ecx + eax + 0xc], 0x200000
lea eax, [ecx + eax + 0xc]
mov ecx, dword [ebp - 0x6c]
lea esi, [ebp - 0x58]
call fcn.0046dec0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x38]
push 0xffffffffffffffff
push edx
push 0
push ecx
mov esi, 0x10
mov dword [ebp - 0x5c], esp
mov ecx, esp
cmp dword [eax + 0x14], esi
jb 0x471b48
mov eax, dword [eax]
push ecx
mov dword [ecx], eax
mov eax, esp
mov dword [eax], str.lone_end_tag
lea eax, [ebx + 0x1c]
mov dword [ebp - 0x5c], esp
push eax
call fcn.0046cfb0
add esp, 0x18
mov byte [ebp - 4], 1
cmp dword [ebp - 0x44], esi
jb 0x471b77
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.0047659a
add esp, 4
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp dword [ebp - 0x70], 0
je 0x471860
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xfc]
cmp ecx, dword [ebp - 0x70]
jle 0x471da9
mov eax, dword [ebx + 0x64]
mov edx, dword [eax]
mov eax, dword [edx]
or dword [eax + 0xc], 0x800000
mov eax, dword [ebx + 0x64]
mov edx, dword [eax]
mov eax, edi
and eax, 0xffff
mov ecx, edi
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 esi, dword [eax + 0x10]
and ecx, 0x3fffff
mov dword [eax + 4], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x64], esi
mov dword [eax + 0x14], 0
test ecx, 0x200000
je 0x471c33
xor ecx, 0x200000
mov dword [eax + 0xc], ecx
mov ebx, dword [ebx + 0x64]
mov ebx, dword [ebx]
mov ecx, esi
sar ecx, 0x10
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [ebp - 0x7c]
and esi, 0xffff
shl esi, 5
or dword [ecx + esi + 0xc], 0x200000
lea ecx, [ecx + esi + 0xc]
mov esi, dword [ebp - 0x64]
test edx, edx
je 0x471c9c
mov ebx, dword [ebx + 0x64]
mov ebx, dword [ebx]
mov ecx, edx
sar ecx, 0x10
add ecx, ecx
add ecx, ecx
mov ebx, dword [ecx + ebx]
and edx, 0xffff
shl edx, 5
mov dword [ebx + edx + 0x10], esi
mov esi, dword [ebp - 0x7c]
mov ebx, dword [esi + 0x64]
mov ebx, dword [ebx]
mov ebx, dword [ecx + ebx]
mov dword [ebx + edx + 0x1c], edi
mov esi, dword [esi + 0x64]
mov esi, dword [esi]
mov ebx, edi
and edi, 0xffff
sar ebx, 0x10
mov esi, dword [esi + ebx*4]
shl edi, 5
mov ebx, edi
mov edi, dword [ebp - 0x60]
mov dword [esi + ebx + 0x18], edi
mov ebx, dword [ebp - 0x7c]
mov esi, dword [ebx + 0x64]
mov esi, dword [esi]
mov ecx, dword [esi + ecx]
mov edx, dword [ecx + edx + 0x18]
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x60], edx
test edx, edx
jne 0x471c37
cmp dword [ebp - 0x68], 0
jne 0x471d46
mov edx, dword [ebp - 0x6c]
mov edx, dword [edx]
dec edx
jmp 0x471d49
mov eax, dword [ebx + 0x64]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x34]
mov edx, esi
and esi, 0xffff
sar edx, 0x10
shl esi, 5
add esi, dword [eax + edx*4]
sub ecx, dword [esi]
mov edx, dword [esi + 8]
add ecx, dword [ebp - 0x38]
and edx, 0x3fffff
mov dword [esi + 4], ecx
mov eax, dword [ebp - 0x34]
shl eax, 0x16
or edx, eax
mov dword [esi + 8], edx
jmp 0x471b89
cmp eax, 0xffffffff
jne 0x471d38
mov eax, dword [ebx + 0x64]
mov ecx, dword [eax]
mov eax, dword [ecx]
or dword [eax + 0xc], 0x800000
mov eax, dword [ebx + 0x64]
mov eax, dword [eax]
mov edx, edi
mov ecx, edi
sar edx, 0x10
mov edx, dword [eax + edx*4]
and ecx, 0xffff
shl ecx, 5
or dword [edx + ecx + 0xc], 0x200000
lea eax, [edx + ecx + 0xc]
push 0
lea eax, [ebp - 0x2c]
push eax
lea esi, [ebx + 0x1c]
or eax, 0xffffffff
call fcn.00405800
jmp 0x471860
cmp eax, 0xfffffffe
jne 0x471860
jmp 0x471b96
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebp - 0xfc]
mov edi, ecx
push edx
mov edx, dword [eax]
shl edi, 4
sub edi, ecx
mov ecx, dword [ebp - 0xf0]
cmp dword [ecx + edi*4 + 0x14], 0x10
push edx
lea ecx, [ecx + edi*4]
push 0
push ecx
mov dword [ebp - 0x5c], esp
mov eax, esp
jb 0x471d74
mov ecx, dword [ecx]
push ecx
mov dword [eax], ecx
mov eax, esp
mov dword [eax], str.unended_start_tag
lea eax, [ebx + 0x1c]
mov dword [ebp - 0x5c], esp
push eax
call fcn.0046cfb0
mov eax, dword [ebp - 0xfc]
dec eax
add esp, 0x18
mov edi, esi
mov dword [ebp - 0xfc], eax
cmp eax, dword [ebp - 0x70]
jg 0x471bb3
mov eax, dword [ebp - 0x68]
cmp eax, 0xfffffffe
je 0x471dd6
mov ecx, dword [ebx + 0x64]
mov edx, dword [ecx]
mov eax, edi
and edi, 0xffff
sar eax, 0x10
mov eax, dword [edx + eax*4]
shl edi, 5
mov edi, dword [eax + edi + 0x10]
dec dword [ebp - 0xfc]
mov dword [ebp - 0x64], edi
jmp 0x471860
cmp dword [ebp - 0x18], 0x10
jb 0x471de8
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0047659a
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
test eax, eax
je 0x471e28
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.0046fe30
push edx
push 0x3c
push eax
call fcn.00479310
push esi
call fcn.00476676
add esp, 4
mov eax, dword [ebp - 0x74]
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.00475dcc
mov esp, ebp
pop ebp
ret 4