Function at 0x1000c789
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10015ab8], eax
je 0x1000c7b0
mov eax, 0x10dd
jmp 0x1000c99a
mov eax, dword [0x10015ab4]
test eax, eax
jne 0x1000c99a
test esi, esi
jne 0x1000c7c9
push 6
pop eax
jmp 0x1000c99a
mov ecx, dword [esi]
test ecx, ecx
jne 0x1000c7e5
push 6
pop edi
mov dword [0x10015ab4], edi
mov eax, edi
mov dword [0x10015ac0], esi
jmp 0x1000c99a
push ebx
call fcn.1000c50f
mov esi, eax
mov ecx, edi
mov dword [ebp - 0x14], esi
call fcn.1000c50f
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x1000c987
push 0x18
call fcn.10002084
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x1000c81f
push 8
pop eax
mov edi, eax
mov dword [0x10015ab4], eax
jmp 0x1000c98f
mov ecx, esi
call fcn.1000c296
mov dword [ebp - 8], eax
test eax, eax
jne 0x1000c83c
push 8
pop eax
mov edi, eax
mov dword [0x10015ab4], eax
jmp 0x1000c97e
xor edi, edi
mov ecx, esi
mov edx, edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x10]
push ecx
push ecx
lea ecx, [edx + eax]
mov dword [ebp - 0x10], edi
mov edx, dword [ebp - 0xc]
call fcn.1000c9a0
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1000c966
cmp dword [ebp - 0x10], edi
jne 0x1000c895
mov ecx, dword [ebp - 0x20]
mov edx, eax
sub edx, esi
mov dword [ebp - 4], edx
call fcn.1000c222
test eax, eax
jne 0x1000c898
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp edx, 5
jl 0x1000c848
cmp edx, 0x12
jbe 0x1000c8a5
push 6
jmp 0x1000c89f
mov edx, dword [ebp - 4]
cmp edx, 5
jge 0x1000c88c
push 9
pop edi
jmp 0x1000c96b
mov ecx, dword [ebp - 8]
add esi, edx
mov eax, dword [ebp - 0x24]
mov dword [ecx + 0x1c], eax
lea edx, [ecx + 0x17]
mov eax, dword [ebp - 4]
mov dword [ecx + 0x18], esi
add ecx, eax
mov byte [edx], al
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub esi, eax
mov dword [ecx + 1], esi
add ecx, 5
call fcn.1000c1f9
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push 0x40
push dword [ebp - 4]
mov dword [ebp - 0x18], edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000c8f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000c96b
mov ecx, esi
call fcn.1000c4ab
mov esi, eax
test esi, esi
je 0x1000c93a
mov eax, 0x6544
cmp word [esi + 0x1c], ax
je 0x1000c93a
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], edi
push eax
push 0x40
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000c92c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000c96d
mov dword [esi + 0x1c], 0x6f746544
mov dword [esi + 0x20], 0x21737275
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0xc], eax
mov dword [ebx + 4], edi
mov dword [ebx + 0x10], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x14], eax
mov eax, dword [0x10015ad0]
mov dword [ebx], eax
xor eax, eax
mov dword [0x10015ad0], ebx
jmp 0x1000c999
mov edi, 0x225
mov eax, edi
mov ecx, dword [ebp - 8]
mov dword [0x10015ab4], eax
call fcn.1000c48a
test ebx, ebx
je 0x1000c98f
push ebx
call fcn.10002079
pop ecx
jmp 0x1000c98f
xor edi, edi
mov dword [0x10015ab4], edi
mov eax, dword [ebp - 0x1c]
mov dword [0x10015ac0], eax
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 0xc