Function at 0x10011400
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
cmp dword [0x1002189c], 0
jne 0x10011427
cmp dword [0x100218ac], 0
je 0x10011427
mov eax, dword [ebp - 8]
jmp 0x1001168c
cmp dword [0x1002189c], 0
je 0x10011682
cmp dword [0x10021378], 0x1770
jb 0x100115ca
mov eax, 4
imul ecx, eax, 0x13
mov edx, dword [0x1002189c]
mov eax, dword [edx + ecx]
mov dword [0x100218b0], eax
mov ecx, 4
imul edx, ecx, 9
mov eax, dword [0x1002189c]
mov ecx, dword [eax + edx]
mov dword [0x100218b8], ecx
mov edx, 4
shl edx, 0
mov eax, dword [0x1002189c]
mov ecx, dword [eax + edx]
mov dword [0x100218b4], ecx
mov edx, 4
imul eax, edx, 0xe
mov ecx, dword [0x1002189c]
mov edx, dword [ecx + eax]
mov dword [0x100218a4], edx
mov eax, 4
imul ecx, eax, 0xc
mov edx, dword [0x1002189c]
mov eax, dword [edx + ecx]
mov dword [0x10021894], eax
mov ecx, 4
imul edx, ecx, 0xb
mov eax, dword [0x1002189c]
mov ecx, dword [eax + edx]
mov dword [0x1002188c], ecx
mov edx, 4
imul eax, edx, 0xa
mov ecx, dword [0x1002189c]
mov edx, dword [ecx + eax]
mov dword [0x100218bc], edx
mov eax, 4
imul ecx, eax, 0xd
mov edx, dword [0x1002189c]
mov eax, dword [edx + ecx]
mov dword [0x100218a0], eax
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x50
mov edx, dword [0x1002189c]
push edx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x10011519
mov eax, dword [ebp - 8]
jmp 0x1001168c
mov eax, 4
imul ecx, eax, 0x13
mov edx, dword [0x1002189c]
mov dword [edx + ecx], 0x10010b80
mov eax, 4
shl eax, 0
mov ecx, dword [0x1002189c]
mov dword [ecx + eax], 0x10010640
mov edx, 4
imul eax, edx, 0xe
mov ecx, dword [0x1002189c]
mov dword [ecx + eax], 0x10010910
mov edx, 4
imul eax, edx, 0xc
mov ecx, dword [0x1002189c]
mov dword [ecx + eax], 0x10010750
mov edx, 4
imul eax, edx, 0xb
mov ecx, dword [0x1002189c]
mov dword [ecx + eax], 0x10010ab0
mov edx, 4
imul eax, edx, 0xa
mov ecx, dword [0x1002189c]
mov dword [ecx + eax], 0x10010830
mov edx, 4
imul eax, edx, 0xd
mov ecx, dword [0x1002189c]
mov dword [ecx + eax], 0x100109e0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 4]
push eax
push 0x50
mov ecx, dword [0x1002189c]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x10011682
cmp dword [0x10021378], 0xece
ja 0x10011682
mov edx, 4
imul eax, edx, 0
mov ecx, dword [0x1002189c]
mov edx, dword [ecx + eax]
mov dword [0x100218c0], edx
mov eax, 4
shl eax, 0
mov ecx, dword [0x1002189c]
mov edx, dword [ecx + eax]
mov dword [0x100218a8], edx
mov eax, 4
shl eax, 1
mov ecx, dword [0x1002189c]
mov edx, dword [ecx + eax]
mov dword [0x10021880], edx
mov eax, 4
imul ecx, eax, 3
mov edx, dword [0x1002189c]
mov eax, dword [edx + ecx]
mov dword [0x10021884], eax
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x10
mov edx, dword [0x1002189c]
push edx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x10011654
mov eax, dword [ebp - 8]
jmp 0x1001168c
mov eax, 4
imul ecx, eax, 0
mov edx, dword [0x1002189c]
mov dword [edx + ecx], 0x10010570
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0x10
mov edx, dword [0x1002189c]
push edx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret