Function at 0x4180e0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a5b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov dword [esi], vtable.XML::Node.0
mov ecx, 7
xor edx, edx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], eax
mov word [esi + 4], dx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], eax
mov word [esi + 0x20], ax
lea eax, [esi + 0x40]
mov dword [ebp - 0x14], eax
lea ecx, [eax + 4]
mov byte [ebp - 4], 4
mov dword [eax], vtable.IO::SharedPtr_class_XML::List_.0
call fcn.00411370
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 5
mov dword [ecx + 0x20], 0
call fcn.00414130
lea eax, [esi + 0x70]
mov dword [ebp - 0x14], eax
lea ecx, [eax + 4]
mov byte [ebp - 4], 7
mov dword [eax], vtable.IO::SharedPtr_class_XML::Result_.0
call fcn.00411370
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 8
mov dword [ecx + 0x20], 0
call fcn.0040c670
push 9
push str.undefined
lea ecx, [esi + 4]
mov byte [ebp - 4], 9
call fcn.00401eb0
push 9
push str.undefined
lea ecx, [esi + 0x20]
call fcn.00401eb0
xor edi, edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], 5
cmp dword [ebp + 0x28], edi
je 0x4181f4
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x60], vtable.IO::SharedPtr_class_XML::Result_.0
call fcn.00411370
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xb
call fcn.0040c670
lea ecx, [ebp - 0x60]
call fcn.0040c420
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0xc
lea ebx, [edi + 1]
jmp 0x418249
push 0x1004
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, edi
je 0x41820b
mov dword [eax], edi
mov ebx, eax
jmp 0x41820d
xor ebx, ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xd
mov dword [ebp - 0x3c], vtable.IO::SharedPtr_class_XML::Result_.0
call fcn.00411370
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x1c], ebx
call fcn.0040c670
lea ecx, [ebp - 0x3c]
call fcn.0040c420
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0xf
mov ebx, 2
mov edx, dword [esi + 0x70]
lea ecx, [esi + 0x70]
push eax
mov eax, dword [edx + 0x58]
mov dword [ebp - 0x10], ebx
call eax
test bl, 2
je 0x418280
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x3c], vtable.IO::SharedPtr_class_XML::Result_.0
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0x10
call fcn.00411390
mov dword [ebp - 0x3c], vtable.IO::ISharedPtr_class_XML::Result_.0
mov dword [ebp - 4], 9
test bl, 1
je 0x4182a3
mov dword [ebp - 0x60], vtable.IO::SharedPtr_class_XML::Result_.0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x11
call fcn.00411390
mov byte [ebp - 4], 9
push 0x5c
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 0x12
cmp ebx, edi
je 0x4182d3
sub esp, 0x24
mov ecx, esp
mov dword [ebp - 0x10], esp
push ecx
mov ecx, esi
call fcn.0040c920
mov ecx, ebx
call fcn.00414780
jmp 0x4182d5
xor eax, eax
mov edx, dword [esi + 0x40]
lea ecx, [esi + 0x40]
push eax
mov eax, dword [edx + 0x5c]
mov byte [ebp - 4], 9
call eax
cmp dword [0x4f718c], edi
jne 0x41832e
push 0x24
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
test edi, edi
je 0x418326
lea ecx, [edi + 4]
mov byte [ebp - 4], 0x14
mov dword [edi], vtable.IO::SharedPtr_class_XML::Node_.0
call fcn.00411370
mov ecx, edi
mov byte [ebp - 4], 0x15
mov dword [edi + 0x20], 0
call fcn.0040c730
jmp 0x418328
xor edi, edi
mov dword [0x4f7188], edi
inc dword [0x4f718c]
mov dword [ebp + 8], vtable.IO::SharedPtr_class_XML::Result_.0
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0x16
call fcn.00411390
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x24