Function at 0x10014010
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x1008f0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x210
push 0
lea eax, [ebp - 0x22c]
push eax
call fcn.10026310
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x224]
push edx
call fcn.100125c0
mov dword [ebp - 0x18], 0
mov eax, dword [0x10088878]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x1008887c]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x10088880]
mov dword [ebp - 0xc], edx
mov ax, word [0x10088884]
mov word [ebp - 8], ax
mov cl, byte [0x10088886]
mov byte [ebp - 6], cl
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
push 0x10088888
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10011ec0
add esp, 0x10
movzx edx, al
test edx, edx
jne 0x100140b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov eax, 7
jmp 0x10014245
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
mov eax, 0x100142b0
sub eax, 0x10014260
mov dword [ebp - 0x238], eax
push 0x40
push 0x3000
mov ecx, dword [ebp - 0x238]
add ecx, 0x220
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jne 0x10014114
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov eax, 3
jmp 0x10014245
push 0
push 0x210
lea edx, [ebp - 0x22c]
push edx
mov eax, dword [ebp - 0x234]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10014164
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
push 0x8000
push 0
mov eax, dword [ebp - 0x234]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 9
jmp 0x10014245
mov edx, dword [ebp - 0x234]
add edx, 0x21f
and edx, 0xfffffff0
mov dword [ebp - 0x23c], edx
push 0
mov eax, dword [ebp - 0x238]
push eax
push 0x10014260
mov ecx, dword [ebp - 0x23c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x100141c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
push 0x8000
push 0
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 9
jmp 0x10014245
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 0x14]
and ecx, 0x20
je 0x100141de
mov byte [ebp - 0x22d], 1
jmp 0x100141e5
mov byte [ebp - 0x22d], 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x1c]
push eax
movzx ecx, byte [ebp - 0x22d]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10017540
add esp, 0x1c
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
cmp dword [ebp + 0x10], 3
je 0x1001423f
push 0x8000
push 0
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10023850
mov esp, ebp
pop ebp
ret