Function at 0x456600
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4ea0f0], eax
je 0x456626
mov eax, 0x10dd
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4ea0f4]
cmp eax, esi
jne 0x456828
mov eax, dword [ebp + 8]
cmp eax, esi
jne 0x456646
mov eax, 6
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [eax]
cmp edi, esi
jne 0x456669
pop edi
mov dword [0x4ea0f8], eax
mov dword [0x4ea0f4], 6
mov eax, 6
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov dword [ebp - 8], esi
call fcn.00456080
mov edi, dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 0xc], ebx
call fcn.00456080
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x456697
cmp dword [0x4ea0ec], esi
jne 0x4567d8
jmp 0x4567b3
push 0x18
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x4566b5
mov dword [ebp - 4], 8
jmp 0x4567b3
mov eax, ebx
call fcn.00455df0
mov esi, eax
test esi, esi
jne 0x4566ce
mov dword [ebp - 4], 8
jmp 0x4567b3
mov edi, ebx
xor ebx, ebx
lea eax, [ebx + esi]
push eax
lea edx, [ebp - 4]
mov ecx, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
call fcn.00456950
cmp dword [ebp - 4], 0
mov edi, eax
jne 0x456719
mov ecx, dword [ebp - 0x14]
mov ebx, edi
sub ebx, dword [ebp - 0xc]
call fcn.00455da0
test eax, eax
jne 0x456719
cmp ebx, 5
jl 0x4566d2
cmp ebx, 0x12
jbe 0x456734
mov dword [ebp - 4], 6
jmp 0x4567b3
cmp ebx, 5
jge 0x456708
cmp dword [0x4ea0ec], 0
mov dword [ebp - 4], 9
jne 0x4567bc
jmp 0x4567b3
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0xc]
mov dword [esi + 0x1c], eax
lea ecx, [ebx + edi]
mov dword [esi + 0x18], ecx
lea eax, [esi + 0x17]
lea edx, [ebx + esi + 5]
mov byte [eax], bl
sub ecx, edx
mov byte [ebx + esi], 0xe9
mov dword [ebx + esi + 1], ecx
lea ecx, [ebx + esi + 5]
call fcn.00455d70
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push ebx
push edi
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4567aa
mov ecx, edi
call fcn.00456030
mov ebx, eax
test ebx, ebx
je 0x4567fb
mov edx, 0x6544
cmp word [ebx + 0x1c], dx
je 0x4567fb
lea eax, [ebp + 0xc]
push eax
push 0x40
push 0x40
push ebx
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4567ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [0x4ea0f4], ecx
test esi, esi
je 0x4567c7
mov eax, esi
call fcn.00456000
mov eax, dword [ebp - 8]
test eax, eax
je 0x4567d8
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
pop ebx
pop edi
mov dword [0x4ea0f8], edx
pop esi
mov esp, ebp
pop ebp
ret 8
mov dword [ebx + 0x1c], 0x6f746544
mov dword [ebx + 0x20], 0x21737275
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov ecx, dword [0x4ea100]
mov dword [eax + 0xc], edi
mov dword [eax + 4], 0
mov dword [eax + 0x10], esi
mov edx, dword [ebp - 0x10]
pop ebx
mov dword [eax + 0x14], edx
mov dword [eax], ecx
mov dword [0x4ea100], eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8