Function at 0x100026c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1001d040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0x678
jne 0x100028e4
cmp eax, edx
ja 0x100028e4
mov ecx, dword [esi + 0x18]
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0x14], 0xffffffff
xor edi, edi
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], 0xffffffff
test ecx, ecx
je 0x1000271b
mov eax, dword [esi + 0x674]
mov edx, 1
cmp eax, dword [ecx + 0x10]
cmovne edi, 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], ebx
push eax
movups xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x100028d1
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 0x100028d1
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], ebx
push eax
movups xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x100028be
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 0x100028be
push dword [esi + 4]
lea eax, [esi + 0x1c]
push eax
push dword [esi + 0x10]
call fcn.10004600
push dword [esi + 8]
lea eax, [esi + 0x5c]
push eax
push dword [esi + 0x14]
call fcn.10004600
mov eax, dword [esi + 0x18]
add esp, 0x18
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x100028a6
test edi, edi
jne 0x100028a6
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
push 0x1c
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x34], eax
push edi
push eax
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x18], ebx
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x100028ab
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 edi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x100028ab
push dword [esi + 0xc]
lea eax, [esi + 0x664]
push eax
push dword [esi + 0x18]
call fcn.10004600
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 ebx, 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]
push eax
push dword [ebp - 0x14]
push dword [esi + 4]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov eax, ebx
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000315a
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.1000315a
mov esp, ebp
pop ebp
ret