Function at 0x10002c70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0x678
jne 0x10002eb3
cmp eax, edx
ja 0x10002eb3
mov ecx, dword [esi + 0x18]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x14], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], 0xffffffff
test ecx, ecx
je 0x10002ccb
mov eax, dword [esi + 0x674]
mov edx, 1
cmp eax, dword [ecx + 0x10]
cmovne ebx, edx
mov eax, dword [esi + 4]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x1c
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x3c], eax
push ecx
push dword [ebp - 0x34]
xorps xmm0, xmm0
mov dword [ebp - 0x18], edi
push eax
movups xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x10002ea0
test byte [ebp - 0x1c], 0xf0
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x40
mov eax, 4
cmovne eax, ecx
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x34]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10002ea0
mov eax, dword [esi + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x1c
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x38], eax
push ecx
push dword [ebp - 0x34]
xorps xmm0, xmm0
mov dword [ebp - 0x18], edi
push eax
movups xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x10002e6e
test byte [ebp - 0x1c], 0xf0
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x40
mov eax, 4
cmovne eax, ecx
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10002e6e
push dword [esi + 4]
lea eax, [esi + 0x1c]
push eax
push dword [esi + 0x10]
call fcn.10005eb0
push dword [esi + 8]
lea eax, [esi + 0x5c]
push eax
push dword [esi + 0x14]
call fcn.10005eb0
mov eax, dword [esi + 0x18]
add esp, 0x18
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x10002e56
test ebx, ebx
jne 0x10002e56
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
push 0x1c
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x34], eax
push ebx
push eax
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x18], edi
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x10002e5b
test byte [ebp - 0x1c], 0xf0
lea eax, [ebp - 8]
push eax
mov ecx, 0x40
mov eax, 4
cmovne eax, ecx
push eax
push dword [ebp - 0x38]
push ebx
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10002e5b
push dword [esi + 0xc]
lea eax, [esi + 0x664]
push eax
push dword [esi + 0x18]
call fcn.10005eb0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [esi + 0xc]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, 1
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [esi + 8]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x10]
mov ebx, edi
push eax
push dword [ebp - 0x14]
push dword [esi + 4]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test ebx, ebx
je 0x10002ea0
mov ecx, esi
call fcn.100028e0
test eax, eax
je 0x10002ea0
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003277
mov esp, ebp
pop ebp
ret
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.10003277
mov esp, ebp
pop ebp
ret