Function at 0x405520
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40f5c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [esp + 0x58]
push edi
mov edx, dword [ebp + 0x30]
mov eax, ecx
sar eax, 0x10
mov edi, ecx
and ecx, 0xffff
shl eax, 2
mov dword [esp + 0x20], eax
xor esi, esi
mov eax, dword [eax + edx]
mov dword [esp + 0x30], ebp
shl ecx, 5
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], esi
mov eax, dword [eax + ecx + 0xc]
mov ecx, dword [esp + 0x60]
and eax, 0xffff
mov dword [ecx + 8], esi
lea ecx, [ebp + 4]
mov dword [esp + 0x34], eax
call sub.MFC42.DLL_CString::Empty
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], esi
push 6
lea ecx, [esp + 0x44]
mov dword [esp + 0x58], esi
mov dword [esp + 0x4c], esi
call fcn.00406d30
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x48]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x40]
lea ecx, [eax + edx*4]
mov edx, dword [esp + 0x60]
push ecx
push edx
call fcn.00405f10
add esp, 8
xor ecx, ecx
cmp eax, 1
mov dword [esp + 0x28], eax
jne 0x405753
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x14]
cmp ecx, eax
jne 0x4055e6
push 0
mov ecx, ebp
call fcn.004051d0
mov edi, dword [ebp + 0x14]
lea eax, [edi + 1]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4055fb
mov dword [esp + 0x18], edi
mov edx, dword [ebp + 0x30]
mov ecx, edi
mov ebx, edi
sar ecx, 0x10
and ebx, 0xffff
mov eax, dword [edx + ecx*4]
mov ecx, dword [esp + 0x5c]
shl ebx, 5
add eax, ebx
mov edx, ecx
sar edx, 0x10
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], 0
mov ebx, dword [ebp + 0x30]
and ecx, 0xffff
shl ecx, 5
mov edx, dword [ebx + edx*4]
lea edx, [edx + ecx + 0x14]
mov ecx, dword [edx]
test ecx, ecx
je 0x405696
mov edx, ecx
and ecx, 0xffff
sar edx, 0x10
shl edx, 2
shl ecx, 5
mov esi, dword [edx + ebx]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + ecx + 0x1c]
mov esi, ecx
mov dword [esp + 0x2c], ecx
sar esi, 0x10
and ecx, 0xffff
mov esi, dword [ebx + esi*4]
shl ecx, 5
mov dword [esi + ecx + 0x18], edi
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp + 0x30]
mov esi, dword [esp + 0x10]
mov edx, dword [edx + ecx]
mov ecx, dword [esp + 0x28]
mov dword [edx + ecx + 0x1c], edi
mov dword [eax + 0xc], 0
jmp 0x4056a2
mov dword [edx], edi
mov dword [eax + 0x1c], edi
mov dword [eax + 0xc], 0x80000
mov edx, dword [esp + 0x34]
mov dword [eax + 0x14], 0
lea ecx, [esi + edx]
mov edx, dword [eax + 0xc]
and edx, 0xffff0000
or ecx, edx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
lea ecx, [ecx + ecx*4]
mov ecx, dword [edx + ecx*4 + 4]
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
lea edx, [ecx + ecx*4]
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + edx*4 + 8]
mov edx, dword [eax + 8]
and edx, 0xffd00000
add ecx, edx
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x40]
lea edx, [edx + edx*4]
test byte [ebx + edx*4 + 0xe], 1
je 0x405722
and ecx, 0x2fffff
mov edi, dword [esp + 0x5c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
lea ecx, [ecx + ecx*4]
mov ecx, dword [edx + ecx*4 + 8]
mov dword [eax + 4], ecx
jmp 0x4055a8
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
inc esi
inc ecx
cmp ecx, eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x48], ecx
jne 0x4055a8
lea edx, [eax + eax + 6]
lea ecx, [esp + 0x40]
push edx
call fcn.00406d30
jmp 0x4055a8
test eax, eax
jne 0x405948
test esi, esi
mov dword [esp + 0x14], esi
mov ebx, edi
je 0x405847
lea eax, [esi + esi*4]
shl eax, 2
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x40]
mov edx, dword [eax + ecx - 4]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax]
mov esi, dword [eax + 4]
sub esi, ecx
inc esi
test byte [eax + 0x10], 8
mov eax, dword [eax + 0xc]
je 0x4057cd
add eax, ecx
push esi
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbsnicmp]
add esp, 0xc
test eax, eax
jne 0x405800
mov edx, dword [esp + 0x2c]
mov al, byte [esi + edx]
test al, al
je 0x405837
movsx eax, al
push eax
push str.____
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
jne 0x405837
jmp 0x405800
add eax, ecx
push esi
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbsncmp]
add esp, 0xc
test eax, eax
jne 0x405800
mov eax, dword [esp + 0x2c]
mov al, byte [esi + eax]
test al, al
je 0x405837
movsx eax, al
push eax
push str.____
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
jne 0x405837
mov edx, dword [ebp + 0x30]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov ecx, ebx
sar ecx, 0x10
and ebx, 0xffff
dec eax
mov ecx, dword [edx + ecx*4]
sub esi, 0x14
shl ebx, 5
test eax, eax
mov ebx, dword [ecx + ebx + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], esi
je 0x405843
mov eax, esi
jmp 0x405773
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4058e6
mov esi, dword [esp + 0x10]
mov edx, dword [ebp + 0x30]
mov eax, dword [esp + 0x20]
lea ebx, [ebp + 4]
mov ecx, dword [eax + edx]
mov edx, dword [esp + 0x24]
lea eax, [ecx + edx + 0xc]
mov edx, dword [ecx + edx + 0xc]
or edx, 0x800000
mov dword [eax], edx
mov ecx, dword [ebp + 0x30]
mov eax, edi
mov edx, edi
sar eax, 0x10
and edx, 0xffff
mov eax, dword [ecx + eax*4]
shl edx, 5
mov ecx, dword [eax + edx + 0xc]
lea eax, [eax + edx + 0xc]
or ecx, 0x200000
mov dword [eax], ecx
mov ecx, dword [ebx]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4055a8
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x38]
push edx
push eax
call fcn.00405cf0
add esp, 8
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov byte [esp + 0x54], 1
lea ecx, [ecx + ecx*4]
mov ecx, dword [edx + ecx*4 + 4]
mov edx, dword [eax]
push ecx
push edx
push str.No_start_tag_for_end_tag__s_at_offset__d
push ebx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x38]
mov byte [esp + 0x54], 0
call fcn.0040ea52
jmp 0x4055a8
mov ecx, dword [ebp + 0x30]
mov eax, ebx
sar eax, 0x10
and ebx, 0xffff
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0x48]
shl ebx, 5
lea edx, [ecx + ecx*4]
mov ecx, dword [esp + 0x40]
add eax, ebx
mov esi, dword [ecx + edx*4 + 4]
lea ecx, [ecx + edx*4]
mov ebx, dword [eax]
mov edx, dword [ecx + 8]
add edx, esi
mov esi, dword [esp + 0x10]
sub edx, ebx
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
lea ecx, [ecx + ecx*4]
mov ecx, dword [edx + ecx*4 + 8]
mov edx, dword [eax + 8]
and edx, 0x2fffff
shl ecx, 0x16
add edx, ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x28]
jmp 0x4059c2
cmp eax, 0xffffffff
jne 0x4059b9
mov eax, dword [ebp + 0x30]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + eax]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx + eax + 0xc]
lea eax, [edx + eax + 0xc]
or ecx, 0x800000
mov dword [eax], ecx
mov edx, dword [ebp + 0x30]
mov ecx, edi
mov eax, edi
sar ecx, 0x10
and eax, 0xffff
mov ecx, dword [edx + ecx*4]
shl eax, 5
lea eax, [ecx + eax + 0xc]
mov ecx, dword [eax]
or ecx, 0x200000
mov dword [eax], ecx
mov edx, dword [ebp + 4]
lea ecx, [ebp + 4]
mov eax, dword [edx - 8]
test eax, eax
jne 0x4055a8
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4 + 0x10]
push eax
call fcn.0040eb54
jmp 0x4055a8
cmp eax, 0xfffffffe
jne 0x4055a8
cmp esi, ecx
jle 0x405b84
mov edx, dword [ebp + 0x30]
mov eax, dword [esp + 0x20]
mov edx, dword [eax + edx]
mov eax, dword [esp + 0x24]
mov ebx, dword [edx + eax + 0xc]
lea eax, [edx + eax + 0xc]
or ebx, 0x800000
mov dword [eax], ebx
mov eax, esi
sub eax, ecx
sub esi, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], esi
mov edx, dword [ebp + 0x30]
mov ecx, edi
mov eax, edi
sar ecx, 0x10
and eax, 0xffff
mov esi, dword [edx + ecx*4]
shl eax, 5
add esi, eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov ebx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
and eax, 0x2fffff
or ecx, 0x100000
mov dword [esi + 8], eax
and eax, 0x2fffff
test ecx, 0x200000
mov dword [esp + 0x5c], ebx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x14], 0
mov dword [esi + 4], eax
je 0x405a70
xor ecx, 0x200000
mov dword [esi + 0xc], ecx
mov eax, dword [ebp + 0x30]
mov ecx, ebx
and ebx, 0xffff
sar ecx, 0x10
shl ebx, 5
mov ecx, dword [eax + ecx*4]
lea eax, [ecx + ebx + 0xc]
mov ebx, dword [esp + 0x5c]
or dword [eax], 0x200000
test edx, edx
je 0x405ad9
mov ebp, dword [ebp + 0x30]
jmp 0x405a7d
mov ebp, dword [esp + 0x1c]
mov eax, edx
mov ecx, edx
sar eax, 0x10
shl eax, 2
and ecx, 0xffff
mov ebp, dword [eax + ebp]
shl ecx, 5
mov dword [ecx + ebp + 0x10], ebx
mov ebx, dword [esp + 0x30]
mov ebp, dword [ebx + 0x30]
mov ebp, dword [eax + ebp]
mov dword [ecx + ebp + 0x1c], edi
mov ebx, dword [ebx + 0x30]
mov ebp, edi
and edi, 0xffff
sar ebp, 0x10
shl edi, 5
mov ebx, dword [ebx + ebp*4]
mov ebp, dword [esp + 0x30]
mov dword [ebx + edi + 0x18], edx
mov edi, edx
mov edx, dword [ebp + 0x30]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + edx]
mov edx, dword [edx + ecx + 0x18]
test edx, edx
jne 0x405a79
mov eax, dword [esp + 0x48]
mov ecx, dword [ebp + 4]
mov edi, ebx
lea ebx, [ebp + 4]
dec eax
mov dword [esp + 0x48], eax
mov edx, dword [ecx - 8]
test edx, edx
jne 0x405b6d
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x405b4c
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00405cf0
add esp, 8
mov ecx, dword [esi]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x58], 2
lea edx, [ecx + ecx*4]
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + edx*4 + 0x10]
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [ecx]
dec edx
push edx
push eax
push str.End_tag__s_at_offset__d_does_not_match_start_tag__s_at_offset__d
push ebx
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 0
call fcn.0040ea52
jmp 0x405b6d
mov edx, dword [esp + 0x40]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [edx + ecx*4 + 4]
mov edx, dword [eax + 0x10]
push ecx
push edx
push str.Element__s_at_offset__d_not_ended
push ebx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x4059f6
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
cmp eax, 0xfffffffe
je 0x405bb4
mov ecx, dword [ebp + 0x30]
mov eax, edi
sar eax, 0x10
and edi, 0xffff
mov edx, dword [ecx + eax*4]
mov ecx, dword [esp + 0x48]
shl edi, 5
dec ecx
dec esi
mov edi, dword [edx + edi + 0x10]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x5c], edi
jmp 0x4055a4
mov eax, dword [esp + 0x40]
mov dword [esp + 0x54], 0xffffffff
test eax, eax
je 0x405be1
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x406e80
push ecx
push 0x14
push eax
call fcn.0040ed48
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 8