Function at 0x10080854
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 [0x1007c0f0]
call fcn.10077e90
xor eax, eax
push ebp
push 0x10080ad6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x100af6b0], 0
setne byte [ebp - 1]
cmp byte [ebp - 1], 0
jne 0x10080aba
xor edx, edx
mov eax, dword [0x100adadc]
call fcn.1007eb30
mov dword [0x100af6b0], eax
cmp dword [0x100af6b0], 0
je 0x10080aba
xor edx, edx
mov eax, dword [0x100adabc]
call fcn.1007ea24
lea edx, [ebp - 0x48]
call fcn.1007e8d8
cmp byte [ebp - 0x48], 0
jne 0x100808da
xor edx, edx
mov eax, dword [0x100adab8]
call fcn.1007ea24
lea edx, [ebp - 0x48]
call fcn.1007e8d8
mov eax, dword [ebp - 0x28]
call fcn.100783c8
test eax, eax
jl 0x10080aad
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 0x1008090c
mov edx, dword [ebp - 0x28]
cmp dword [edx + esi*4 + 0x18], 0
je 0x10080aa5
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + esi*4 + 0xc]
cmp edx, dword [0x100af6b0]
jne 0x10080aa5
mov eax, dword [ebp - 0x28]
cmp byte [eax + esi*4 + 0x10], 0
je 0x10080999
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 0x10080a88
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + esi*4 + 0x14]
mov dword [0x100adba8], eax
mov eax, dword [0x100adba8]
mov eax, dword [eax]
mov dword [0x100adbac], eax
mov eax, dword [0x100adba8]
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 0x10080a88
mov eax, dword [ebp - 0x28]
cmp dword [eax + esi*4 + 0x18], 0
je 0x10080a2a
push 0
push 4
call fcn.1007ff98
mov dword [0x100adba4], eax
mov eax, dword [0x100adba4]
mov dword [eax], 0x10080810
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 0x10080a15
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + esi*4 + 0x18]
mov dword [0x100adbb0], eax
mov eax, dword [0x100adbb0]
mov eax, dword [eax]
mov dword [0x100adbb4], eax
mov eax, dword [0x100adbb0]
mov edx, dword [0x100adba4]
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 [0x100adba4]
push eax
call sub.KERNEL32.dll_VirtualProtect
jmp 0x10080a88
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 0x10080a88
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + esi*4 + 0x14]
mov dword [0x100adbb0], eax
mov eax, dword [0x100adbb0]
mov eax, dword [eax]
mov dword [0x100adbb4], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + esi*4 + 0xc]
mov edx, dword [0x100adbb0]
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 [0x100adbb0], 0
jne 0x10080a9e
cmp dword [0x100adba8], 0
jne 0x10080a9e
xor eax, eax
jmp 0x10080aa0
mov al, 1
mov byte [ebp - 1], al
jmp 0x10080aad
inc ebx
dec eax
jne 0x100808ed
cmp byte [ebp - 1], 0
jne 0x10080aba
xor eax, eax
mov dword [0x100af6b0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10080add
lea eax, [ebp - 0x48]
mov edx, dword [0x1007c0f0]
call fcn.10077f54
ret