Function at 0x453540
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fadd8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x547320]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x547320]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], cx
mov byte [esp + 0x70], cl
mov dword [esp + 0x88], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x2c], eax
and eax, 0xffffff
mov dword [esp + 0x6c], 4
push eax
lea eax, [esp + 0x18]
push eax
test ecx, ecx
jne 0x45361f
call fcn.00474e50
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov ebx, eax
lea eax, [esp + 0x30]
cmp eax, ebx
je 0x453605
cmp dword [esp + 0x44], 8
jb 0x4535e4
push dword [esp + 0x30]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
call fcn.0040a810
cmp dword [esp + 0x28], 8
jb 0x453615
push dword [esp + 0x14]
call esi
add esp, 4
mov ecx, 0x5534d0
jmp 0x4536dc
cmp ecx, 1
jne 0x453681
call fcn.00474e50
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov ebx, eax
lea eax, [esp + 0x30]
cmp eax, ebx
je 0x45366a
cmp dword [esp + 0x44], 8
jb 0x453649
push dword [esp + 0x30]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
call fcn.0040a810
cmp dword [esp + 0x28], 8
jb 0x45367a
push dword [esp + 0x14]
call esi
add esp, 4
mov ecx, 0x553590
jmp 0x4536dc
cmp ecx, 3
jne 0x4536b2
call fcn.00474e50
push eax
lea ecx, [esp + 0x34]
call fcn.00428c00
cmp dword [esp + 0x28], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x4536ab
push dword [esp + 0x14]
call esi
add esp, 4
mov ecx, 0x553710
jmp 0x4536dc
call fcn.00474e50
push eax
lea ecx, [esp + 0x34]
call fcn.00428c00
cmp dword [esp + 0x28], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x4536d7
push dword [esp + 0x14]
call esi
add esp, 4
mov ecx, 0x553650
sub esp, 0x18
push esp
call fcn.00474700
mov ecx, dword [edi]
lea eax, [esp + 0x44]
push eax
call fcn.00454490
mov ecx, dword [edi]
mov dword [esp + 0x10], eax
call fcn.0045e950
mov edi, dword [edi]
cmp byte [edi + 0x65c], 0
jne 0x45374a
lea ecx, [edi + 0x658]
call fcn.00484950
test al, al
jne 0x45374a
push 8
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x453737
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax], vtable.FunctionRunable_class__lambda_a7b113c3799f30343cd6f8095b01fe7a__.0
mov dword [eax + 4], edi
jmp 0x453739
xor eax, eax
push eax
push 0x12c
lea ecx, [edi + 0x658]
call fcn.00484980
mov ecx, dword [esp + 0x10]
push str.redPointControl
call fcn.004d0040
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xe0]
cmp dword [esp + 0x44], 8
jb 0x453774
push dword [esp + 0x30]
call esi
add esp, 4
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004f203a
mov esp, ebp
pop ebp
ret 8