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

Disassembly:
push 0xffffffffffffffff
push 0x446c78
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45b8b4]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx]
mov ebx, dword [edx + 0xc]
mov eax, dword [esp + 0x50]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
and ebx, 0xffff
mov dword [eax + 8], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], edi
push ecx
mov esi, 6
mov dword [esp + 0x3c], edi
call fcn.00408cf0
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x50]
lea edx, [ebp + ebp*4]
lea ebx, [esi + edx*4]
push ebx
push eax
call fcn.00409d40
add esp, 8
cmp eax, 1
mov dword [esp + 0x2c], eax
jne 0x4096fc
mov edi, dword [esp + 0x4c]
mov eax, dword [edi + 0x34]
cmp dword [edi + 0x14], eax
jne 0x4095a4
push 0
mov esi, edi
call fcn.00409130
mov esi, dword [esp + 0x30]
cmp dword [esp + 0x20], 0
mov edi, dword [edi + 0x14]
mov edx, dword [esp + 0x4c]
lea ecx, [edi + 1]
mov dword [edx + 0x14], ecx
jne 0x4095be
mov dword [esp + 0x20], edi
jmp 0x4095c9
cmp dword [esp + 0x14], 0
je 0x4097f5
mov esi, dword [edx + 0x30]
mov eax, edi
and eax, 0xffff
mov ecx, edi
sar ecx, 0x10
shl eax, 5
add eax, dword [esi + ecx*4]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], 0
mov esi, dword [edx + 0x30]
mov edx, ecx
sar edx, 0x10
mov edx, dword [esi + edx*4]
and ecx, 0xffff
shl ecx, 5
lea edx, [edx + ecx + 0x14]
mov ecx, dword [edx]
test ecx, ecx
je 0x40966a
mov edx, ecx
sar edx, 0x10
add edx, edx
add edx, edx
and ecx, 0xffff
mov dword [esp + 0x28], edx
mov edx, dword [edx + esi]
shl ecx, 5
mov dword [esp + 0x2c], ecx
mov ecx, dword [edx + ecx + 0x1c]
mov edx, ecx
mov dword [esp + 0x24], ecx
sar edx, 0x10
mov edx, dword [esi + edx*4]
and ecx, 0xffff
shl ecx, 5
mov dword [edx + ecx + 0x18], edi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
mov dword [eax + 0x1c], ecx
mov ecx, dword [edx + 0x30]
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + ecx]
mov edx, dword [esp + 0x2c]
mov dword [ecx + edx + 0x1c], edi
mov dword [eax + 0xc], 0
jmp 0x409676
mov dword [edx], edi
mov dword [eax + 0x1c], edi
mov dword [eax + 0xc], 0x80000
mov ecx, dword [eax + 0xc]
and ecx, 0xffff0000
or ecx, dword [esp + 0x18]
mov dword [eax + 0x14], 0
mov dword [eax + 0xc], ecx
mov edx, dword [ebx + 4]
mov dword [eax], edx
mov edx, dword [eax + 8]
mov ecx, dword [ebx + 8]
and edx, 0xffd00000
add ecx, edx
mov dword [eax + 8], ecx
test dword [ebx + 0xc], 0x10000
je 0x4096c4
mov edi, dword [esp + 0x1c]
and ecx, 0x2fffff
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax + 4], ecx
jmp 0x409565
mov eax, 1
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
add ebp, eax
cmp ebp, dword [esp + 0x34]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], ebp
jne 0x409565
mov esi, dword [esp + 0x34]
lea edx, [esp + 0x30]
lea esi, [esi + esi + 6]
push edx
call fcn.00408cf0
jmp 0x409561
test eax, eax
jne 0x4097b9
test ebp, ebp
je 0x409844
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 0x30]
mov eax, edi
sar eax, 0x10
and edi, 0xffff
shl edi, 5
add edi, dword [edx + eax*4]
mov eax, dword [ebx + 4]
sub eax, dword [edi]
mov ecx, dword [edi + 8]
add eax, dword [ebx + 8]
and ecx, 0x2fffff
mov dword [edi + 4], eax
mov ebx, dword [ebx + 8]
mov eax, dword [esp + 0x50]
sub ebp, 1
shl ebx, 0x16
add ecx, ebx
mov dword [edi + 8], ecx
mov ecx, dword [eax]
lea edx, [ebp + ebp*4]
mov ebx, dword [esi + edx*4 + 0x10]
lea esi, [esi + edx*4]
mov esi, dword [eax + 4]
mov eax, dword [eax + 0xc]
sub esi, ecx
add esi, 1
push esi
add eax, ecx
push ebx
push eax
mov dword [esp + 0x44], ebp
call fcn.0042f061
add esp, 0xc
test eax, eax
jne 0x4098c5
mov bl, byte [esi + ebx]
test bl, bl
je 0x40979b
movsx eax, bl
push eax
push 0x44f6c0
call fcn.0042f132
add esp, 8
test eax, eax
je 0x4098c5
mov edi, dword [edi + 0x10]
mov esi, dword [esp + 0x30]
mov eax, 1
sub dword [esp + 0x14], eax
sub dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], edi
test eax, eax
jge 0x409565
or ebx, 0xffffffff
cmp eax, ebx
jne 0x409960
mov ecx, dword [esp + 0x4c]
lea edx, [ebp + ebp*4]
lea eax, [esi + edx*4 + 0x10]
add ecx, 4
push eax
call fcn.00403ee0
test esi, esi
mov dword [esp + 0x44], ebx
je 0x40983d
mov eax, dword [esi - 4]
lea edi, [esi - 4]
push 0x404a40
push eax
jmp 0x40982c
lea ecx, [ebp + ebp*4]
lea eax, [esi + ecx*4]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0x10]
push ecx
push eax
add edx, 4
push str.Element__s_at_offset__d_is_sibling_to_root
push edx
call fcn.00403d50
or ebx, 0xffffffff
add esp, 0x10
test esi, esi
mov dword [esp + 0x44], ebx
je 0x40983d
mov ecx, dword [esi - 4]
lea edi, [esi - 4]
push 0x404a40
push ecx
push 0x14
push esi
call fcn.0042eb7c
push edi
call fcn.0040cae3
add esp, 4
mov eax, ebx
jmp 0x409a19
mov edx, dword [esp + 0x50]
lea ebx, [esp + 0x50]
call fcn.00409b40
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x44], 1
mov esi, dword [esp + 0x30]
mov edx, dword [esi + 4]
mov eax, dword [eax]
push edx
push eax
add ecx, 4
push str.No_start_tag_for_end_tag__s_at_offset__d
push ecx
call fcn.00403d50
mov byte [esp + 0x54], 0
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
or ebx, 0xffffffff
add esp, 0x10
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40989d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x404a40
mov dword [esp + 0x48], ebx
mov ecx, dword [esi - 4]
lea edi, [esi - 4]
push ecx
push 0x14
push esi
call fcn.0042eb7c
push edi
call fcn.0040cae3
add esp, 4
mov eax, ebx
jmp 0x409a19
mov edx, dword [esp + 0x50]
lea ebx, [esp + 0x2c]
call fcn.00409b40
mov byte [esp + 0x44], 2
mov edx, dword [edi]
mov esi, dword [esp + 0x30]
mov eax, dword [eax]
push edx
lea ecx, [ebp + ebp*4]
mov edx, dword [esi + ecx*4 + 0x10]
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x54]
sub edx, 1
push edx
push eax
add ecx, 4
push str.End_tag__s_at_offset__d_does_not_match_start_tag__s_at_offset__d
push ecx
call fcn.00403d50
mov byte [esp + 0x5c], 0
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
or ebx, 0xffffffff
add esp, 0x18
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409930
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
mov dword [esp + 0x44], ebx
je 0x40983d
mov ecx, dword [esi - 4]
push 0x404a40
lea edi, [esi - 4]
push ecx
push 0x14
push esi
call fcn.0042eb7c
push edi
call fcn.0040cae3
add esp, 4
mov eax, ebx
jmp 0x409a19
cmp dword [esp + 0x14], 0
jle 0x4099b0
sub ebp, 1
lea ecx, [ebp + ebp*4]
mov edx, dword [esi + ecx*4 + 4]
lea eax, [esi + ecx*4]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x4c]
push edx
push eax
add ecx, 4
push str.Element__s_at_offset__d_not_ended
push ecx
mov dword [esp + 0x48], ebp
call fcn.00403d50
add esp, 0x10
test esi, esi
mov dword [esp + 0x44], ebx
je 0x40983d
mov edx, dword [esi - 4]
lea edi, [esi - 4]
push 0x404a40
push edx
jmp 0x40982c
mov ebp, dword [esp + 0x20]
test ebp, ebp
jne 0x4099f2
mov ecx, dword [esp + 0x4c]
push str.Root_element_not_found
add ecx, 4
call fcn.00403d70
test esi, esi
mov dword [esp + 0x44], ebx
je 0x4099ee
mov eax, dword [esi - 4]
push 0x404a40
lea edi, [esi - 4]
push eax
push 0x14
push esi
call fcn.0042eb7c
push edi
call fcn.0040cae3
add esp, 4
xor eax, eax
jmp 0x409a19
test esi, esi
mov dword [esp + 0x44], ebx
je 0x409a17
mov ecx, dword [esi - 4]
push 0x404a40
lea edi, [esi - 4]
push ecx
push 0x14
push esi
call fcn.0042eb7c
push edi
call fcn.0040cae3
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8