Function at 0x415490
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436955
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x443d3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x34], esi
xor ebx, ebx
lea edi, [esi + 0xc]
mov dword [ebp - 0x28], ebx
mov ecx, edi
mov dword [esi], vtable.CXRNode.0
call fcn.00412fa0
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x18]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00412fa0
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov edi, dword [ebp + 8]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [ebp - 4], 2
lea ebx, [ebx]
push edi
mov ecx, esi
call fcn.00414370
cmp eax, 1
je 0x415540
push edi
mov ecx, esi
call fcn.00415160
cmp eax, ebx
jne 0x4156b8
lea ecx, [ecx]
cmp dword [ebp - 0x2c], ebx
jne 0x4156b8
push edi
mov ecx, esi
call fcn.00412c30
mov eax, dword [edi]
mov edx, dword [eax + 0x34]
push 1
lea ecx, [ebp - 0x11]
push ecx
mov ecx, edi
call edx
cmp eax, ebx
jne 0x4155d6
push 0xc
call fcn.00415a5a
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
cmp esi, ebx
mov byte [ebp - 4], 3
je 0x4155bc
push str.Node_was_not_closed
lea ecx, [ebp - 0x2c]
call fcn.0040b930
mov eax, dword [eax]
or dword [ebp - 0x28], 1
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.004140d0
jmp 0x4155be
xor eax, eax
mov dword [ebp - 0x30], eax
push 0x43f62c
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], 5
call fcn.00421d44
movsx cx, byte [ebp - 0x11]
push ecx
call fcn.00423cc0
add esp, 4
test eax, eax
jne 0x4155ff
cmp dword [ebp - 0x18], ebx
jne 0x4155ff
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
add eax, 0xffffffff
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x18], eax
movsx cx, byte [ebp - 0x11]
push ecx
call fcn.00423cc0
add esp, 4
test eax, eax
jne 0x415626
cmp byte [ebp - 0x11], 0x3c
je 0x415630
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x20], eax
cmp byte [ebp - 0x11], 0x3c
jne 0x415560
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, edi
call eax
push edi
mov ecx, esi
call fcn.00414370
cmp eax, ebx
jne 0x415560
push edi
mov ecx, esi
call fcn.004144c0
cmp eax, ebx
mov dword [ebp - 0x2c], eax
jne 0x415560
push 0x34
call fcn.00415a5a
mov ecx, eax
add esp, 4
mov dword [ebp + 8], ecx
cmp ecx, ebx
mov byte [ebp - 4], 6
je 0x415684
push edi
call fcn.00415490
mov dword [ebp + 8], eax
jmp 0x415687
mov dword [ebp + 8], ebx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
mov byte [ebp - 4], 2
call fcn.00412bf0
add esp, 4
lea ecx, [ebp - 0x44]
push ecx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x50]
push edx
lea ecx, [esi + 0xc]
mov dword [ebp - 0x40], eax
call fcn.004141a0
jmp 0x415560
cmp dword [esi + 0x14], ebx
jne 0x41572f
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x41572f
cmp eax, dword [ebp - 0x20]
jge 0x41572f
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], edx
cdq
push ebx
push edx
push eax
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
mov ecx, edi
call eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x18]
mov dword [ebp + 8], eax
add eax, 1
push eax
call fcn.00415a8a
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [esi + 4], eax
mov edx, dword [edi]
mov edx, dword [edx + 0x34]
push ecx
push eax
mov ecx, edi
call edx
mov ecx, dword [esi + 4]
mov byte [eax + ecx], bl
mov edx, dword [esi + 4]
push edx
mov ecx, esi
call fcn.00414640
mov eax, dword [ebp - 0x44]
cdq
push ebx
push edx
push eax
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
mov ecx, edi
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4