Function at 0x4ecef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5018af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x64]
mov eax, dword [eax]
push esi
mov esi, dword [esp + 0xfc]
mov ecx, esi
sar ecx, 0x10
mov edx, esi
and edx, 0xffff
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x20], edx
shl edx, 5
mov eax, dword [ecx + edx + 0xc]
and eax, 0xffff
xor ebx, ebx
push edi
lea ecx, [esp + 0x60]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], eax
call fcn.004ecb30
lea ecx, [esp + 0x44]
mov dword [esp + 0xf8], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov edi, dword [esp + 0x104]
mov byte [esp + 0xf8], 1
mov dword [edi + 8], ebx
jmp 0x4ecf80
lea edx, [esp + 0x34]
push edx
mov ecx, edi
call fcn.004eec50
xor ebx, ebx
cmp eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
jne 0x4ed108
mov ecx, ebp
call fcn.004eb2e0
cmp dword [esp + 0x1c], ebx
mov esi, eax
jne 0x4ecfb2
mov dword [esp + 0x1c], 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 + 0x100]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x10], edx
mov ecx, dword [ebp + 0x64]
mov ecx, dword [ecx]
mov ebx, edx
and edx, 0xffff
sar ebx, 0x10
shl edx, 5
add edx, dword [ecx + ebx*4]
mov ecx, dword [edx + 0x14]
test ecx, ecx
je 0x4ed043
mov edi, dword [ebp + 0x64]
mov ebx, dword [edi]
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 + 0x10], ecx
mov ecx, edx
mov ebx, edx
sar ecx, 0x10
mov ecx, dword [edi + ecx*4]
mov edi, dword [esp + 0x104]
and ebx, 0xffff
shl ebx, 5
mov dword [ecx + ebx + 0x18], esi
mov dword [eax + 0x1c], edx
mov edx, dword [esp + 0x10]
mov dword [edx + 0x1c], esi
mov dword [eax + 0xc], 0
jmp 0x4ed050
mov dword [edx + 0x14], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0xc], 0x80000
mov ebx, dword [eax + 0xc]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x30]
add edx, ecx
and ebx, 0xffff0000
or ebx, edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x14], 0
mov edx, dword [esp + 0x38]
mov dword [eax], edx
mov edx, dword [eax + 8]
xor edx, dword [esp + 0x3c]
and edx, 0x3fffff
xor dword [eax + 8], edx
test dword [esp + 0x40], 0x10000
mov edx, dword [eax + 8]
je 0x4ed0ae
mov esi, dword [esp + 0x100]
and edx, 0x3fffff
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
jmp 0x4ecf80
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov edx, dword [edi + 0xc]
sub ebx, eax
lea eax, [edx + eax*2]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
add ecx, 1
add ebx, 1
cmp ecx, eax
mov dword [esp + 0x100], esi
mov dword [esp + 0x60], ecx
jne 0x4ed0e9
lea ecx, [eax + eax]
push ecx
lea ecx, [esp + 0x64]
call fcn.004ec990
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x6c]
mov edx, ecx
shl edx, 4
sub edx, ecx
lea ecx, [eax + edx*4]
mov edx, dword [esp + 0x10]
push ebx
push edx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const___unsigned_int_]
jmp 0x4ecf80
cmp eax, ebx
jne 0x4ed439
mov eax, dword [esp + 0x60]
test eax, eax
mov ebx, esi
mov dword [esp + 0x14], eax
je 0x4ed203
mov edx, dword [esp + 0x6c]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea ecx, [edx + ecx*4]
mov eax, ecx
sub ecx, 0x3c
cmp dword [eax + 0x18], 8
mov dword [esp + 0x18], ecx
jb 0x4ed148
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
jmp 0x4ed151
add eax, 4
mov dword [esp + 0x20], eax
mov edx, eax
mov eax, dword [edi]
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x104]
sub edi, eax
add edi, 1
test byte [ecx + 0x10], 8
mov ecx, dword [ecx + 0xc]
push edi
push edx
je 0x4ed187
lea edx, [ecx + eax*2]
push edx
call fcn.004e8c30
add esp, 0xc
test eax, eax
jne 0x4ed1b8
mov eax, dword [esp + 0x20]
movzx eax, word [eax + edi*2]
jmp 0x4ed1a0
lea eax, [ecx + eax*2]
push eax
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x4ed1b8
mov edx, dword [esp + 0x20]
movzx eax, word [edx + edi*2]
test ax, ax
je 0x4ed1f1
push eax
push 0x522a6c
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 8
test eax, eax
jne 0x4ed1f1
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x64]
mov eax, dword [eax]
mov edx, ebx
and ebx, 0xffff
sar edx, 0x10
mov edx, dword [eax + edx*4]
sub ecx, 1
shl ebx, 5
test ecx, ecx
mov ebx, dword [edx + ebx + 0x10]
mov dword [esp + 0x14], ecx
je 0x4ed1fc
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x104]
jmp 0x4ed130
cmp dword [esp + 0x14], 0
jne 0x4ed3f5
mov edi, dword [esp + 0x104]
mov eax, dword [ebp + 0x64]
mov eax, dword [eax]
mov edx, dword [esp + 0x28]
mov eax, dword [eax + edx*4]
mov ecx, dword [esp + 0x24]
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]
lea edx, [esp + 0xd4]
push edx
mov ecx, edi
call fcn.004e8b00
cmp dword [eax + 0x18], 8
mov ecx, dword [esp + 0x38]
push 0xffffffffffffffff
push ecx
push 0
push ecx
mov byte [esp + 0x108], 2
mov dword [esp + 0x28], esp
mov ecx, esp
jb 0x4ed277
mov eax, dword [eax + 4]
jmp 0x4ed27a
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.004edea0
add esp, 0x18
lea ecx, [esp + 0xd4]
mov byte [esp + 0xf8], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esp + 0x14], 0
je 0x4ecf80
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x60]
cmp ecx, dword [esp + 0x14]
jle 0x4ed50b
mov eax, dword [ebp + 0x64]
mov edx, dword [eax]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
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 + 0x100], ebx
mov dword [eax + 0x14], 0
mov dword [eax + 4], ecx
je 0x4ed368
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 + 0x100]
test edi, edi
je 0x4ed3d9
lea esp, [esp]
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 + 0x2c]
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 + 0x2c]
and esi, 0xffff
shl esi, 5
mov dword [ebx + esi + 0x18], edi
mov ebx, dword [esp + 0x100]
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 0x4ed370
cmp dword [esp + 0x10], 0
jne 0x4ed4a1
mov edx, dword [esp + 0x104]
mov edx, dword [edx]
sub edx, 1
jmp 0x4ed4a4
mov eax, dword [ebp + 0x64]
mov edx, dword [eax]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x104]
mov ecx, ebx
and ebx, 0xffff
sar ecx, 0x10
shl ebx, 5
add ebx, dword [edx + ecx*4]
sub eax, dword [ebx]
mov ecx, dword [ebx + 8]
add eax, dword [esp + 0x38]
and ecx, 0x3fffff
mov dword [ebx + 4], eax
mov edx, dword [esp + 0x3c]
shl edx, 0x16
or ecx, edx
mov dword [ebx + 8], ecx
jmp 0x4ed2aa
cmp eax, 0xffffffff
jne 0x4ed493
mov eax, dword [ebp + 0x64]
mov eax, dword [eax]
mov edx, dword [esp + 0x28]
mov eax, dword [eax + edx*4]
mov ecx, dword [esp + 0x24]
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]
lea edx, [esp + 0x44]
push edx
lea ecx, [ebp + 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
jmp 0x4ecf80
cmp eax, 0xfffffffe
jne 0x4ecf80
jmp 0x4ed2b9
mov edx, dword [ebp + 0x14]
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x6c]
push edx
mov edx, dword [eax]
mov ecx, edi
shl ecx, 4
sub ecx, edi
cmp dword [esi + ecx*4 + 0x18], 8
push edx
lea ecx, [esi + ecx*4]
push 0
push ecx
mov dword [esp + 0x28], esp
mov eax, esp
jb 0x4ed4cf
mov ecx, dword [ecx + 4]
jmp 0x4ed4d2
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.004edea0
sub edi, 1
add esp, 0x18
cmp edi, dword [esp + 0x14]
mov esi, ebx
mov dword [esp + 0x60], edi
jg 0x4ed2e6
mov edi, dword [esp + 0x104]
mov eax, dword [esp + 0x10]
cmp eax, 0xfffffffe
je 0x4ed53b
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 + 0x60], 1
mov dword [esp + 0x100], esi
jmp 0x4ecf80
lea ecx, [esp + 0x44]
mov byte [esp + 0xf8], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0x6c]
test eax, eax
mov dword [esp + 0xf8], 0xffffffff
je 0x4ed57d
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x4b1480
push ecx
push 0x3c
push eax
call fcn.004f02d5
push esi
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov ecx, dword [esp + 0xf0]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xec
ret 8