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

Disassembly:
push 0xffffffffffffffff
push 0x53b371
mov eax, dword fs:[0]
push eax
sub esp, 0x204
mov eax, dword [0x58c950]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58c950]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x228]
mov eax, dword [ebp + 0x60]
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
and eax, 0xffff
xor edi, edi
mov dword [esp + 0x40], eax
lea esi, [ebp + 0x1c]
or eax, 0xffffffff
xor ebx, ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x14], edi
mov dword [ecx + 8], edi
call fcn.00403730
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x220], ebx
lea esi, [edi + 6]
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], ebx
call fcn.0040b4c0
mov dword [esp + 0x18], ebx
jmp 0x40c4c4
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
imul eax, eax, 0x2c
mov edx, dword [esp + 0x34]
lea ebx, [eax + ecx]
mov ecx, ebx
mov dword [esp + 0x20], ebx
call fcn.0040ce10
xor ecx, ecx
mov dword [esp + 0x38], eax
cmp eax, 1
jne 0x40c64b
mov eax, dword [ebp + 0x64]
cmp dword [ebp + 0x44], eax
jne 0x40c500
push ecx
mov esi, ebp
call fcn.0040c000
cmp dword [esp + 0x3c], 0
mov esi, dword [ebp + 0x44]
lea edx, [esi + 1]
mov dword [esp + 0x14], esi
mov dword [ebp + 0x44], edx
jne 0x40c518
mov dword [esp + 0x3c], esi
mov edx, dword [ebp + 0x60]
mov eax, esi
and eax, 0xffff
mov ecx, esi
sar ecx, 0x10
shl eax, 5
add eax, dword [edx + ecx*4]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x10], ecx
mov edx, ecx
mov dword [eax + 0x18], 0
mov edi, dword [ebp + 0x60]
sar edx, 0x10
mov edx, dword [edi + edx*4]
and ecx, 0xffff
shl ecx, 5
lea edx, [edx + ecx + 0x14]
mov ecx, dword [edx]
test ecx, ecx
je 0x40c5b1
mov edx, ecx
sar edx, 0x10
and ecx, 0xffff
shl ecx, 5
add edx, edx
add edx, edx
mov ebx, dword [edx + edi]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + ecx + 0x1c]
mov ebx, ecx
mov dword [esp + 0x38], ecx
and ecx, 0xffff
sar ebx, 0x10
mov edi, dword [edi + ebx*4]
mov ebx, dword [esp + 0x20]
shl ecx, 5
mov dword [edi + ecx + 0x18], esi
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp + 0x60]
mov edx, dword [edx + ecx]
mov ecx, dword [esp + 0x1c]
mov dword [edx + ecx + 0x1c], esi
mov dword [eax + 0xc], 0
jmp 0x40c5bd
mov dword [edx], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0xc], 0x80000
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
add ecx, edx
mov edx, dword [eax + 0xc]
and edx, 0xffff0000
or ecx, edx
mov edx, dword [eax + 8]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x14], 0
mov ecx, dword [ebx + 4]
mov dword [eax], ecx
mov ecx, dword [ebx + 8]
xor edx, ecx
and edx, 0x3fffff
xor dword [eax + 8], edx
test dword [ebx + 0xc], 0x10000
mov ecx, dword [eax + 8]
je 0x40c61a
mov edx, dword [esp + 0x24]
and ecx, 0x3fffff
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [esp + 0x14], edx
mov dword [eax + 4], ecx
jmp 0x40c4c0
mov eax, dword [esp + 0x30]
inc dword [esp + 0x18]
inc eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], esi
cmp eax, dword [esp + 0x2c]
jne 0x40c4c0
mov esi, dword [esp + 0x2c]
lea esi, [esi + esi + 6]
lea ecx, [esp + 0x28]
call fcn.0040b4c0
jmp 0x40c4c0
test eax, eax
jne 0x40c94c
mov edx, dword [esp + 0x18]
mov eax, edx
mov dword [esp + 0x20], edx
mov esi, edi
test eax, eax
je 0x40c6cd
mov ecx, dword [esp + 0x28]
imul eax, eax, 0x2c
lea eax, [eax + ecx - 0x18]
mov dword [esp + 0x1c], eax
jmp 0x40c678
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x14], 8
push ecx
mov dword [esp + 0x4c], esp
mov ecx, esp
jb 0x40c687
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [esp + 0x38]
call fcn.0040b3f0
test al, al
jne 0x40c6c2
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x60]
sub dword [esp + 0x1c], 0x2c
mov edx, esi
and esi, 0xffff
sar edx, 0x10
mov edx, dword [ecx + edx*4]
dec eax
shl esi, 5
mov esi, dword [edx + esi + 0x10]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x40c674
jmp 0x40c6cd
cmp dword [esp + 0x20], 0
jne 0x40c914
mov eax, dword [ebp + 0x60]
mov eax, dword [eax]
or dword [eax + 0xc], 0x800000
mov edx, dword [ebp + 0x60]
mov ecx, edi
mov eax, edi
and eax, 0xffff
sar ecx, 0x10
mov ecx, dword [edx + ecx*4]
shl eax, 5
or dword [ecx + eax + 0xc], 0x200000
cmp dword [ebp + 0x30], 0
lea eax, [ecx + eax + 0xc]
jne 0x40c7a3
mov edx, dword [esp + 0x34]
lea edi, [esp + 0x4c]
call fcn.0040cc00
mov byte [esp + 0x220], 1
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x40c728
mov eax, dword [eax + 4]
jmp 0x40c72b
add eax, 4
mov edx, dword [ebx + 4]
push edx
push eax
push str.No_start_tag_for_end_tag__.50s_at_offset__d
lea edx, [esp + 0x90]
call fcn.0040b370
add esp, 0xc
mov byte [esp + 0x220], 0
cmp dword [esp + 0x64], esi
jb 0x40c75f
mov eax, dword [esp + 0x50]
push eax
call fcn.00410507
add esp, 4
xor ecx, ecx
lea eax, [esp + 0x84]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c780
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x88]
lea esi, [ebp + 0x1c]
call fcn.00404060
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x20], 0
je 0x40c4c4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
cmp edx, ecx
jle 0x40caa3
mov eax, dword [ebp + 0x60]
mov eax, dword [eax]
or dword [eax + 0xc], 0x800000
mov eax, edx
sub eax, ecx
sub edx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
jmp 0x40c7e0
mov edx, dword [ebp + 0x60]
mov esi, edi
and esi, 0xffff
mov ecx, edi
sar ecx, 0x10
shl esi, 5
add esi, dword [edx + ecx*4]
and dword [esi + 8], 0x3fffff
or dword [esi + 0xc], 0x100000
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov ebx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
and eax, 0x3fffff
mov dword [esp + 0x24], ebx
mov dword [esi + 0x14], 0
mov dword [esi + 4], eax
test ecx, 0x200000
je 0x40c856
xor ecx, 0x200000
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0x60]
mov eax, ebx
sar eax, 0x10
mov eax, dword [ecx + eax*4]
mov edi, ebx
and edi, 0xffff
shl edi, 5
or dword [eax + edi + 0xc], 0x200000
lea eax, [eax + edi + 0xc]
test edx, edx
je 0x40c8bc
mov edi, dword [ebp + 0x60]
lea ecx, [ecx]
mov eax, edx
sar eax, 0x10
mov ecx, edx
add eax, eax
add eax, eax
mov edi, dword [edi + eax]
and ecx, 0xffff
shl ecx, 5
mov dword [edi + ecx + 0x10], ebx
mov edi, dword [ebp + 0x60]
mov ebx, dword [edi + eax]
mov edi, dword [esp + 0x14]
mov dword [ebx + ecx + 0x1c], edi
mov ebp, dword [ebp + 0x60]
mov ebx, edi
sar ebx, 0x10
mov ebx, dword [ebp + ebx*4]
mov ebp, dword [esp + 0x44]
and edi, 0xffff
shl edi, 5
mov dword [ebx + edi + 0x18], edx
mov edi, dword [ebp + 0x60]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], edx
mov edx, dword [edi + eax]
mov edx, dword [edx + ecx + 0x18]
test edx, edx
jne 0x40c860
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x30]
dec ebx
mov dword [esp + 0x30], ebx
cmp dword [ebp + 0x30], 0
jne 0x40ca94
cmp dword [esp + 0x38], 0
jne 0x40ca39
mov edx, dword [esp + 0x34]
lea edi, [esp + 0x68]
call fcn.0040cc00
mov byte [esp + 0x220], 2
imul ebx, ebx, 0x2c
mov ecx, dword [esp + 0x28]
lea ecx, [ebx + ecx + 0x10]
mov edi, 8
cmp dword [ecx + 0x18], edi
jb 0x40c9aa
mov ecx, dword [ecx + 4]
jmp 0x40c9ad
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebx + 4]
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 [ebx + 8]
and edx, 0x3fffff
mov dword [esi + 4], ecx
mov ebx, dword [ebx + 8]
shl ebx, 0x16
or edx, ebx
mov dword [esi + 8], edx
jmp 0x40c7a3
cmp eax, 0xffffffff
jne 0x40c99c
mov eax, dword [ebp + 0x60]
mov eax, dword [eax]
or dword [eax + 0xc], 0x800000
mov edx, dword [ebp + 0x60]
mov ecx, edi
mov eax, edi
and eax, 0xffff
sar ecx, 0x10
mov ecx, dword [edx + ecx*4]
shl eax, 5
or dword [ecx + eax + 0xc], 0x200000
cmp dword [ebp + 0x30], 0
lea eax, [ecx + eax + 0xc]
jne 0x40c4c4
push 0xffffffffffffffff
lea eax, [ebx + 0x10]
push 0
lea ecx, [ebp + 0x1c]
call fcn.00403510
jmp 0x40c4c4
cmp eax, 0xfffffffe
jne 0x40c4c4
jmp 0x40c7b2
add ecx, 4
cmp dword [eax + 0x18], edi
jb 0x40c9b7
mov eax, dword [eax + 4]
jmp 0x40c9ba
add eax, 4
mov edx, dword [esi]
push edx
push ecx
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
dec edx
push edx
push eax
push str.End_tag__.50s_at_offset__d_does_not_match_start_tag_.50_s_at_offset__d
lea edx, [esp + 0x98]
call fcn.0040b370
add esp, 0x14
mov byte [esp + 0x220], 0
cmp dword [esp + 0x80], edi
jb 0x40c9f9
mov eax, dword [esp + 0x6c]
push eax
call fcn.00410507
add esp, 4
xor ecx, ecx
lea eax, [esp + 0x84]
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ca20
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x88]
jmp 0x40ca8c
mov edx, dword [esp + 0x28]
imul ebx, ebx, 0x2c
cmp dword [ebx + edx + 0x28], 8
lea eax, [ebx + edx]
jb 0x40ca4f
mov ecx, dword [eax + 0x14]
jmp 0x40ca52
lea ecx, [eax + 0x14]
mov eax, dword [eax + 4]
push eax
push ecx
push str.Element__.50s_at_offset__d_not_ended
lea edx, [esp + 0x90]
call fcn.0040b370
lea eax, [esp + 0x90]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ca75
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x88]
lea esi, [ebp + 0x1c]
call fcn.00404060
sub dword [esp + 0x1c], 1
mov edi, dword [esp + 0x14]
jne 0x40c7e0
cmp dword [esp + 0x38], 0xfffffffe
je 0x40cadc
mov edx, dword [ebp + 0x60]
mov ecx, edi
sar ecx, 0x10
mov eax, dword [edx + ecx*4]
and edi, 0xffff
shl edi, 5
mov eax, dword [eax + edi + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov eax, 1
sub dword [esp + 0x30], eax
sub dword [esp + 0x18], eax
jmp 0x40c4c0
mov dword [esp + 0x220], 0xffffffff
mov esi, dword [esp + 0x28]
test esi, esi
je 0x40cb10
mov ecx, dword [esi - 4]
mov edx, dword [esp + 0x28]
push fcn.004044a0
add esi, 0xfffffffc
push ecx
push 0x2c
push edx
call fcn.0050ed70
push esi
call fcn.00410507
add esp, 4
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0050e8a6
add esp, 0x210
ret 4