Function at 0x408dd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x532d28
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5847b0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
lea ebp, [esi + 4]
sub eax, 0x10
push eax
call fcn.004053f0
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x44], ebx
lea edi, [esi + 0x2c]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x1c], ebx
call fcn.004089c0
mov eax, dword [esi]
mov edi, dword [eax - 0xc]
mov eax, edi
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
add eax, 8
push eax
mov dword [esi + 0x14], 1
call fcn.00408c60
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x18], ebx
mov eax, dword [ecx]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
cmp edi, ebx
je 0x408ee3
mov eax, dword [esi]
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x20]
push edx
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
call fcn.00409010
cmp eax, ebx
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
mov dword [edx + 4], edi
jle 0x408eda
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
mov dword [edx + 0x14], eax
mov edx, dword [esi + 0x30]
mov ecx, eax
sar ecx, 0x10
mov ecx, dword [edx + ecx*4]
and eax, 0xffff
shl eax, 5
cmp dword [ecx + eax + 0x18], ebx
je 0x408ef1
push str.Root_element_has_sibling
mov ecx, ebp
call fcn.00405a20
jmp 0x408ef1
push 0xf
push str.No_root_element
jmp 0x408eea
push 0xe
push str.Empty_document
mov ecx, ebp
call fcn.00405930
mov edi, dword [esp + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x1c], ebx
cmp dword [edi - 0xc], ebx
je 0x408fa4
mov edx, dword [ebp]
cmp dword [edx - 0xc], ebx
jne 0x408f26
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call fcn.0040aac0
jmp 0x408fa4
push 0x5633e8
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.0040a960
push ebp
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x5c], 1
call fcn.0040a3e0
add esp, 0x18
push eax
mov ecx, ebp
mov byte [esp + 0x48], 2
call fcn.0040aac0
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408f80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408fa4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x34], ebx
je 0x408fd6
mov esi, dword [esi + 0x30]
mov eax, dword [esi]
test dword [eax + 0xc], 0x800000
jne 0x408fd6
mov eax, dword [eax + 0x14]
cmp eax, ebx
je 0x408fd6
mov ecx, eax
sar ecx, 0x10
mov edx, dword [esi + ecx*4]
and eax, 0xffff
shl eax, 5
cmp dword [edx + eax + 0x18], ebx
jne 0x408fd6
mov bl, 1
lea eax, [edi - 0x10]
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ffa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret