Function at 0x408b30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44c1f8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x465d3c]
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.00401500
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
xor ebx, ebx
lea ecx, [esi + 0x2c]
mov dword [esp + 0x44], ebx
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.00405ec0
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 ecx, esi
mov dword [esi + 0x14], 1
call fcn.00404d90
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 0x408c47
mov ecx, dword [esi + 0x28]
mov eax, dword [esi]
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x34], ecx
push ebx
mov ecx, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
call fcn.00407bd0
cmp eax, ebx
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
mov dword [edx + 4], edi
jle 0x408c3e
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 0x408c55
push str.Root_element_has_sibling
mov ecx, ebp
call fcn.00402820
jmp 0x408c55
push 0xf
push str.No_root_element
jmp 0x408c4e
push 0xe
push str.Empty_document
mov ecx, ebp
call fcn.00401cf0
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 0x408d08
mov edx, dword [ebp]
cmp dword [edx - 0xc], ebx
jne 0x408c8a
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call fcn.00402100
jmp 0x408d08
push 0x44fa0c
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00405c30
push ebp
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x5c], 1
call fcn.00402610
add esp, 0x18
push eax
mov ecx, ebp
mov byte [esp + 0x48], 2
call fcn.00402100
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x44], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ce4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x44], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, esi
call fcn.00404cf0
mov bl, al
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 0x408d35
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