Function at 0x1006e8ba
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
lea eax, [ebp - 0x48]
mov edx, dword [0x1006a14e]
call fcn.10065e9e
xor eax, eax
push ebp
push 0x1006eb34
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [0x1009fbb8]
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x1006eb18
xor edx, edx
mov eax, dword [0x1009fadc]
call fcn.1006cb96
mov dword [0x100a16b0], eax
cmp dword [0x100a16b0], 0
je 0x1006eb18
xor edx, edx
mov eax, dword [0x1009fabc]
call fcn.1006ca8a
lea edx, [ebp - 0x48]
call fcn.1006c93e
cmp byte [ebp - 0x48], 0
jne 0x1006e93d
xor edx, edx
mov eax, dword [0x1009fab8]
call fcn.1006ca8a
lea edx, [ebp - 0x48]
call fcn.1006c93e
mov eax, dword [ebp - 0x28]
call fcn.100663d6
test eax, eax
jl 0x1006eb18
inc eax
xor ebx, ebx
mov esi, ebx
shl esi, 3
sub esi, ebx
mov edx, dword [ebp - 0x28]
cmp dword [edx + esi*4 + 0x14], 0
jne 0x1006e96f
mov edx, dword [ebp - 0x28]
cmp dword [edx + esi*4 + 0x18], 0
je 0x1006eb10
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + esi*4 + 0xc]
cmp edx, dword [0x100a16b0]
jne 0x1006eb10
mov eax, dword [ebp - 0x28]
cmp byte [eax + esi*4 + 0x10], 0
je 0x1006e9fc
mov eax, dword [ebp - 0x28]
mov edi, dword [eax + esi*4 + 0xc]
mov eax, dword [ebp - 0x28]
sub edi, dword [eax + esi*4 + 0x14]
sub edi, 4
lea eax, [ebp - 8]
push eax
push 0x40
push 4
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + eax*4 + 0x14]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1006eaeb
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + esi*4 + 0x14]
mov dword [0x1009fba8], eax
mov eax, dword [0x1009fba8]
mov eax, dword [eax]
mov dword [0x1009fbac], eax
mov eax, dword [0x1009fba8]
mov dword [eax], edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + esi*4 + 0x14]
push eax
call sub.KERNEL32.dll_VirtualProtect
jmp 0x1006eaeb
mov eax, dword [ebp - 0x28]
cmp dword [eax + esi*4 + 0x18], 0
je 0x1006ea8d
push 0
push 4
call fcn.1006dffe
mov dword [0x1009fba4], eax
mov eax, dword [0x1009fba4]
mov dword [eax], 0x1006e876
lea eax, [ebp - 8]
push eax
push 0x40
push 4
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + esi*4 + 0x18]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1006ea78
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + esi*4 + 0x18]
mov dword [0x1009fbb0], eax
mov eax, dword [0x1009fbb0]
mov eax, dword [eax]
mov dword [0x1009fbb4], eax
mov eax, dword [0x1009fbb0]
mov edx, dword [0x1009fba4]
mov dword [eax], edx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + esi*4 + 0x18]
push eax
call sub.KERNEL32.dll_VirtualProtect
lea eax, [ebp - 8]
push eax
push 0x20
push 4
mov eax, dword [0x1009fba4]
push eax
call sub.KERNEL32.dll_VirtualProtect
jmp 0x1006eaeb
lea eax, [ebp - 8]
push eax
push 0x40
push 4
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + eax*4 + 0x14]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1006eaeb
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + esi*4 + 0x14]
mov dword [0x1009fbb0], eax
mov eax, dword [0x1009fbb0]
mov eax, dword [eax]
mov dword [0x1009fbb4], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + esi*4 + 0xc]
mov edx, dword [0x1009fbb0]
mov dword [edx], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + esi*4 + 0x14]
push eax
call sub.KERNEL32.dll_VirtualProtect
cmp dword [0x1009fbb0], 0
jne 0x1006eb01
cmp dword [0x1009fba8], 0
jne 0x1006eb01
xor eax, eax
jmp 0x1006eb03
mov al, 1
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
mov byte [0x1009fbb8], al
jmp 0x1006eb18
inc ebx
dec eax
jne 0x1006e950
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1006eb3b
lea eax, [ebp - 0x48]
mov edx, dword [0x1006a14e]
call fcn.10065f62
ret