Function at 0x1000c7f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
xor edi, edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1001675c], eax
je 0x1000c816
mov eax, 0x10dd
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x10016760]
cmp eax, edi
jne 0x1000ca18
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x1000c836
mov eax, 6
pop edi
mov esp, ebp
pop ebp
ret 8
push esi
mov esi, dword [eax]
cmp esi, edi
jne 0x1000c859
pop esi
mov dword [0x10016764], eax
mov dword [0x10016760], 6
mov eax, 6
pop edi
mov esp, ebp
pop ebp
ret 8
push ebx
mov dword [ebp - 8], edi
call fcn.1000c270
mov esi, dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 0xc], ebx
call fcn.1000c270
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x1000c887
cmp dword [0x10016758], edi
jne 0x1000c9c8
jmp 0x1000c9a3
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 0x1000c8a5
mov dword [ebp - 4], 8
jmp 0x1000c9a3
mov eax, ebx
call fcn.1000bf80
mov edi, eax
test edi, edi
jne 0x1000c8be
mov dword [ebp - 4], 8
jmp 0x1000c9a3
mov esi, ebx
xor ebx, ebx
lea eax, [ebx + edi]
push eax
lea edx, [ebp - 4]
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.1000cb40
cmp dword [ebp - 4], 0
mov esi, eax
jne 0x1000c909
mov ecx, dword [ebp - 0x14]
mov ebx, esi
sub ebx, dword [ebp - 0xc]
call fcn.1000bf30
test eax, eax
jne 0x1000c909
cmp ebx, 5
jl 0x1000c8c2
cmp ebx, 0x12
jbe 0x1000c924
mov dword [ebp - 4], 6
jmp 0x1000c9a3
cmp ebx, 5
jge 0x1000c8f8
cmp dword [0x10016758], 0
mov dword [ebp - 4], 9
jne 0x1000c9ac
jmp 0x1000c9a3
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
mov dword [edi + 0x1c], eax
lea ecx, [ebx + esi]
mov dword [edi + 0x18], ecx
lea eax, [edi + 0x17]
lea edx, [ebx + edi + 5]
mov byte [eax], bl
sub ecx, edx
mov byte [ebx + edi], 0xe9
mov dword [ebx + edi + 1], ecx
lea ecx, [ebx + edi + 5]
call fcn.1000bf00
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push ebx
push esi
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000c99a
mov ecx, esi
call fcn.1000c1c0
mov ebx, eax
test ebx, ebx
je 0x1000c9eb
mov edx, 0x6544
cmp word [ebx + 0x1c], dx
je 0x1000c9eb
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 0x1000c9dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [0x10016760], ecx
test edi, edi
je 0x1000c9b7
mov eax, edi
call fcn.1000c190
mov eax, dword [ebp - 8]
test eax, eax
je 0x1000c9c8
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 esi
mov dword [0x10016764], edx
pop edi
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 [0x1001676c]
mov dword [eax + 0xc], esi
mov dword [eax + 4], 0
mov dword [eax + 0x10], edi
mov edx, dword [ebp - 0x10]
pop ebx
mov dword [eax + 0x14], edx
mov dword [eax], ecx
mov dword [0x1001676c], eax
xor eax, eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8