Function at 0x100c6952
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
test byte [0x11d0c74c], 2
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 8], esi
je 0x100c68b9
cmp dword [esi + 0x296c], 0
jne 0x100c67e6
push 0x10
push 0xc4f0
call fcn.10434a32
add esp, 8
test eax, eax
je 0x100c6895
mov dword [eax + 4], 0
mov ecx, eax
mov dword [eax + 8], 0
mov dword [eax + 0x4c8], 0
mov dword [eax + 0x4cc], 0
mov dword [eax + 0x4d0], 0
mov dword [eax], 0
mov dword [eax + 0x4d8], 0
mov dword [eax + 0x4ec], 0
mov dword [esi + 0x296c], eax
call fcn.100c6bc0
test al, al
je 0x100c689f
mov ecx, dword [esi + 0x296c]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.100c6e50
test al, al
je 0x100c68b9
mov ecx, dword [ebp + 0x10]
lea edx, [esi + 0x2758]
xor edi, edi
mov dword [esi + 0x2958], 0x11cd3480
mov dword [esi + 0x295c], 0
mov dword [esi + 0x2954], 7
mov eax, dword [ecx]
mov dword [esi + 0x274c], eax
lea ebx, [edi + 0x10]
mov eax, dword [ecx + 4]
mov dword [esi + 0x2750], eax
mov eax, dword [ecx + 8]
lea ecx, [esi + 0x27a8]
mov dword [esi + 0x2754], eax
mov byte [esi + 0x2718], 0
mov esi, dword [ebp + 0xc]
nop word [eax + eax]
mov byte [edx], 0
mov dword [ecx - 0x40], 0
mov dword [ecx], 0
mov eax, dword [esi + 0x588]
cmp dword [eax + edi + 0x10], 0xffffffff
je case.0x100c688e.11
mov eax, dword [eax + edi + 0x18]
cmp eax, 0x10
ja case.0x100c688e.11
jmp dword [eax*4 + 0x100c6b7c]
mov dword [esi + 0x296c], 0
mov ecx, dword [esi + 0x296c]
test ecx, ecx
je 0x100c68b9
push ecx
call fcn.100bbd90
mov dword [esi + 0x296c], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ecx - 0x40], 1
mov dword [ecx], 4
jmp case.0x100c688e.11
mov dword [ecx - 0x40], 9
mov dword [ecx], 4
jmp case.0x100c688e.11
mov dword [ecx - 0x40], 2
mov dword [ecx], 2
jmp case.0x100c688e.11
mov dword [ecx - 0x40], 4
mov dword [ecx], 4
jmp case.0x100c688e.11
mov dword [ecx - 0x40], 0xa
mov dword [ecx], 2
jmp case.0x100c688e.11
mov dword [ecx - 0x40], 0xc
mov dword [ecx], 4
jmp case.0x100c688e.11
mov dword [ecx - 0x40], 0x10
mov dword [ecx], 2
jmp case.0x100c688e.11
mov dword [ecx - 0x40], 0x20
mov dword [ecx], 4
jmp case.0x100c688e.11
mov byte [edx], 1
mov dword [ecx], 4
jmp case.0x100c688e.11
mov dword [ecx], 3
jmp case.0x100c688e.11
mov dword [ecx], 1
add ecx, 4
add edi, 0x18
inc edx
sub ebx, 1
jne 0x100c6860
mov ecx, dword [0x11d0c5b8]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [ebp + 8], eax
mov eax, dword [eax + 0x10]
mov dword [eax + 0x30664], ebx
call fcn.100bc170
mov esi, dword [ebp - 8]
xor edi, edi
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0x2964], ebx
test ebx, ebx
je 0x100c69fb
nop dword [eax]
mov eax, dword [ebp - 0x10]
mov ecx, esi
mov dword [esi + 0x271c], 0
mov dword [esi + 0x2720], 0x1010101
mov dword [esi + 0x2724], 0x1010101
mov dword [esi + 0x27e8], 0xffffffff
push dword [eax + edi*4]
call fcn.100bbfc0
cmp dword [esi + 0x2970], 0
jne 0x100c6b64
mov ecx, esi
call fcn.100c5d70
cmp dword [esi + 0x2970], 0
jne 0x100c6b64
inc edi
cmp edi, ebx
jb 0x100c69a0
test byte [0x11d0c74c], 2
mov ebx, dword [ebp + 8]
je 0x100c6a2d
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x30664]
mov eax, dword [eax + 0x30660]
mov dword [ecx + eax], 0x770f
mov eax, dword [ebx + 0x10]
add dword [eax + 0x30664], 2
mov eax, dword [ebx + 0x10]
push 0x40
push 0x3000
mov ecx, dword [eax + 0x30664]
mov eax, dword [eax + 0x30660]
mov dword [ecx + eax], 0x59
mov eax, dword [ebx + 0x10]
inc dword [eax + 0x30664]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x30664]
mov eax, dword [eax + 0x30660]
mov dword [ecx + eax], 0x5f
mov eax, dword [ebx + 0x10]
inc dword [eax + 0x30664]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x30664]
mov eax, dword [eax + 0x30660]
mov dword [ecx + eax], 0x5a
mov eax, dword [ebx + 0x10]
inc dword [eax + 0x30664]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x30664]
mov eax, dword [eax + 0x30660]
mov dword [ecx + eax], 0xe7ff
mov eax, dword [ebx + 0x10]
add dword [eax + 0x30664], 2
mov eax, dword [ebx + 0x10]
mov esi, dword [eax + 0x30664]
lea eax, [esi + 0x4b]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x100c6b57
lea eax, [edx + 0xc]
lea ecx, [eax + 0x3f]
and ecx, 0xffffffc0
sub ecx, eax
add ecx, edx
mov dword [ecx], esi
lea esi, [ecx + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 4], 0x40
test esi, esi
je 0x100c6b59
mov eax, dword [ebx + 0x10]
push dword [eax + 0x30664]
push dword [eax + 0x30660]
push esi
call fcn.10425d60
mov ecx, dword [esi - 8]
add esp, 0xc
mov eax, dword [esi - 0xc]
add ecx, 0xb
add eax, ecx
mov dword [ebp + 8], 0
lea ecx, [ebp + 8]
push ecx
push 0x20
push eax
push dword [esi - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100c6b59
push 0x8000
push eax
push dword [esi - 4]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov dword [esi + 0x2970], 0
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc