Function at 0x10026918
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1007f7c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
and dword [ebp - 0x18], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x1c], eax
mov eax, ebx
push 0x70
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002bd76
mov esi, eax
mov dword [ebp - 0x14], esi
pop ecx
test esi, esi
je 0x10026c24
push edi
call fcn.100266ec
xor edi, edi
test ebx, ebx
jle 0x10026a39
add esi, 4
mov ecx, dword [ebp - 0x1c]
push 0x58
push 0
mov eax, dword [ecx + edi*8]
mov eax, dword [eax]
and dword [esi + 8], 0
and dword [esi + 4], 0
mov dword [esi - 4], eax
mov eax, dword [ecx + edi*8 + 4]
mov dword [esi], eax
lea eax, [esi + 0xc]
push eax
call fcn.10028e00
push dword [esi - 4]
mov word [esi + 0x64], 0
call fcn.10026fc1
push dword [esi]
mov dword [ebp - 0x10], eax
mov dword [esi - 4], eax
call fcn.10026fc1
push dword [ebp - 0x10]
mov dword [esi], eax
push edi
push 0
push dword [ebp - 0x14]
call fcn.10026734
add esp, 0x24
test al, al
je 0x100269cc
and dword [esi + 8], 0
jmp 0x10026a2a
lea eax, [esi + 0xc]
push eax
push 5
push dword [ebp - 0x10]
call fcn.100265e5
push 0x102
push dword [esi - 4]
mov dword [esi + 4], eax
call fcn.100267bc
push 0x103
push dword [esi - 4]
mov byte [esi + 0x64], al
call fcn.100267bc
add esp, 0x1c
mov byte [esi + 0x65], al
cmp dword [esi + 4], 5
jb 0x10026a2a
cmp byte [esi + 0x64], 0
je 0x10026a10
test al, al
jne 0x10026a2a
push dword [esi + 0x18]
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi - 4]
call fcn.100271cf
add esp, 0x14
mov dword [esi + 8], eax
inc edi
add esi, 0x70
cmp edi, ebx
jl 0x1002696e
mov esi, dword [ebp - 0x14]
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x10]
and dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10026790
pop ecx
pop ecx
test al, al
je 0x10026c14
push dword [ebp - 0x10]
push ebx
push esi
call fcn.100270dd
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edi, edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], edi
test ebx, ebx
jle 0x10026c06
add esi, 0xc
cmp dword [esi], 0
je 0x10026bf4
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
and dword [ebp - 8], 0
push eax
push 0x40
push dword [esi - 4]
push dword [esi - 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10026bdb
lea eax, [ebp - 8]
push eax
push 0x40
push 0x74
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10026bb9
mov edx, dword [esi]
xor edi, edi
mov eax, dword [esi - 4]
add edx, 0x2c
mov ecx, eax
test eax, eax
je 0x10026aea
mov eax, dword [esi - 0xc]
mov cl, byte [edi + eax]
mov byte [edi + edx], cl
mov eax, dword [esi]
mov byte [eax + edi + 0x4c], cl
inc edi
mov eax, dword [esi - 4]
mov ecx, eax
cmp edi, eax
jb 0x10026ad1
cmp byte [esi + 0x5c], 0
jne 0x10026afa
cmp byte [esi + 0x5d], 0
jne 0x10026afa
add edx, eax
jmp 0x10026b0a
push dword [esi - 0xc]
push edx
call fcn.10026dd3
pop ecx
pop ecx
mov ecx, dword [esi - 4]
mov edx, eax
mov eax, dword [esi - 0xc]
add eax, ecx
push eax
push edx
call fcn.100266a4
mov edx, dword [esi - 8]
mov edi, dword [esi - 0xc]
mov eax, edi
pop ecx
pop ecx
mov ecx, edx
sub eax, edx
sub ecx, edi
cmp edx, edi
cmovae eax, ecx
cmp eax, 0x7fff0000
jbe 0x10026b61
mov eax, dword [esi]
add eax, 0xc
push edx
push eax
call fcn.100266a4
pop ecx
pop ecx
mov ecx, dword [esi]
sub eax, ecx
sub eax, 0xc
push eax
lea eax, [ecx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [esi]
mov edi, dword [esi - 0xc]
add edx, 0xc
push edx
push edi
call fcn.100266a4
mov eax, dword [esi - 4]
mov edi, dword [ebp - 0x10]
pop ecx
pop ecx
mov ecx, dword [esi]
mov dword [ecx + 4], eax
mov ecx, dword [esi]
mov eax, dword [esi - 0xc]
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi - 8]
mov dword [ecx + 8], eax
mov eax, dword [esi]
cmp dword [eax], 0
je 0x10026b98
lea ecx, [eax + 0x2c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + edi*8]
mov dword [eax], ecx
mov eax, dword [esi]
push dword [esi - 4]
add eax, 0x2c
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x74
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [esi - 4]
push dword [esi - 0xc]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push dword [esi - 4]
push dword [esi - 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi]
cmp dword [eax], 0
je 0x10026be7
inc dword [ebp - 0x18]
jmp 0x10026bf4
push 1
push eax
call fcn.10027245
and dword [esi], 0
pop ecx
pop ecx
inc edi
add esi, 0x70
mov dword [ebp - 0x10], edi
cmp edi, ebx
jl 0x10026a7e
mov esi, dword [ebp - 0x14]
call fcn.10026f32
push dword [ebp - 0x24]
call fcn.10026591
pop ecx
push esi
call fcn.1002bd5b
pop ecx
call fcn.10026855
mov eax, dword [ebp - 0x18]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10027632
leave
ret