Function at 0x410400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a13b
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x58c920]
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.0040f400
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.005096d0
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.004120f0
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], 0
cmp eax, 1
jne 0x4106af
mov ecx, dword [edi + 0x64]
mov esi, dword [ecx + 4]
mov edx, dword [edi + 0x44]
cmp edx, esi
jne 0x410541
mov eax, edx
sar eax, 1
add eax, edx
cmp esi, eax
jge 0x410541
push eax
call fcn.0040bc70
cmp dword [ebp - 0x78], 0
mov esi, dword [edi + 0x44]
lea eax, [esi + 1]
mov dword [edi + 0x44], eax
jne 0x410553
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 0x4105e7
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 0x4105f4
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 0x410650
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 0x410505
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 0x41068d
lea ecx, [eax + eax]
push ecx
lea ecx, [ebp - 0x104]
call fcn.0040f400
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.004031c0
mov ebx, dword [ebp - 0x5c]
jmp 0x410505
test eax, eax
jne 0x41089b
mov eax, dword [ebp - 0x104]
mov ebx, esi
mov dword [ebp - 0x68], eax
test eax, eax
je 0x4107a2
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 0x410725
mov edx, dword [ecx]
mov dword [ebp - 0x74], edx
jmp 0x410728
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.0040b940
add esp, 0x10
test eax, eax
jne 0x410768
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x60]
movzx eax, word [ecx + edx*2]
test ax, ax
je 0x410798
cmp eax, 0x20
jb 0x410768
cmp eax, 0x5d
ja 0x410768
movsx eax, byte [eax + 0x5442e0]
test eax, eax
jne 0x410798
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 0x4107a2
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x60]
jmp 0x410710
cmp dword [ebp - 0x68], 0
jne 0x410864
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.0040e090
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 0x41080f
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.004112c0
add esp, 0x18
mov byte [ebp - 4], 1
cmp dword [ebp - 0x44], ebx
jb 0x41083e
mov eax, dword [ebp - 0x58]
push eax
call fcn.0041a274
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 0x410904
mov ebx, dword [ebp - 0x5c]
jmp 0x410505
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 0x410852
cmp eax, 0xffffffff
jne 0x4108f9
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.004030b0
jmp 0x410505
cmp eax, 0xfffffffe
jne 0x410505
jmp 0x410907
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x104]
cmp ecx, dword [ebp - 0x68]
jle 0x410a9c
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 0x4109b9
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 0x410a2b
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 0x4109c0
cmp dword [ebp - 0x70], 0
jne 0x410a39
mov edx, dword [ebp - 0x6c]
mov edx, dword [edx]
dec edx
jmp 0x410a3c
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 0x410a67
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.004112c0
mov eax, dword [ebp - 0x104]
dec eax
add esp, 0x18
mov esi, ebx
mov dword [ebp - 0x104], eax
cmp eax, dword [ebp - 0x68]
jg 0x410936
mov eax, dword [ebp - 0x70]
cmp eax, 0xfffffffe
je 0x410acb
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 0x410505
cmp dword [ebp - 0x18], 8
jb 0x410add
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0041a274
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 0x410b1f
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.0040cc10
push ecx
push 0x3c
push eax
call fcn.0050d0c9
push esi
call fcn.0041a274
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.005090f3
mov esp, ebp
pop ebp
ret 8