Function at 0x1008ae70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [0x1023648c]
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp byte [esi + 0x34], 0
je 0x1008ae93
cmp byte [esi + 0x35], 0
jne 0x1008b0d9
cmp byte [0x101be00e], 0
push edi
jne 0x1008aef7
mov edi, dword [0x101be038]
cmp dword [0x1022f614], edi
je 0x1008aef7
mov eax, dword [0x1022c028]
test eax, eax
je 0x1008aeb9
lea ebx, [eax + 1]
jmp 0x1008aebb
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push ebx
add edi, 3
mov dword [ebp - 4], 0
call esi
lea eax, [ebp - 4]
mov dword [ebx], edi
push eax
push dword [ebp - 4]
push 4
push ebx
call esi
mov eax, dword [0x101be038]
mov esi, dword [0x1023648c]
mov ebx, dword [ebp - 8]
mov dword [0x1022f614], eax
cmp byte [0x101be014], 0
jne 0x1008af20
cmp byte [esi + 0x36], 0
je 0x1008af20
mov ecx, dword [0x101be088]
mov eax, dword [esi + 0x3c]
sub eax, dword [ecx + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jge 0x1008af20
mov cl, 1
jmp 0x1008af22
xor cl, cl
mov eax, dword [0x1022b698]
test eax, eax
je 0x1008af36
mov al, byte [eax + 0x20]
test al, al
jne 0x1008b0c4
mov eax, dword [0x1022b844]
test al, 1
jne 0x1008af53
or eax, 1
mov dword [0x1022b844], eax
mov eax, dword [0x1022b820]
mov dword [0x1022b840], eax
jmp 0x1008af58
mov eax, dword [0x1022b840]
mov edx, dword [0x101be07c]
test byte [eax + edx], 0x40
jne 0x1008b0c4
test cl, cl
jne 0x1008b0c4
mov eax, dword [0x101beb14]
cmp dword [eax + edx], 0
je 0x1008afea
cmp byte [esi + 0x34], cl
je 0x1008af85
cmp byte [esi + 0x35], cl
jne 0x1008afe1
mov ecx, dword [0x10236490]
call fcn.10084e20
test al, al
jne 0x1008afe1
cmp byte [0x10232e89], 0
mov eax, dword [0x1023648c]
je 0x1008afc6
cmp byte [eax + 0x1c], 0
jne 0x1008afd8
cmp byte [eax + 0x1d], 0
je 0x1008afd8
cmp dword [eax + 0x20], 0
jg 0x1008afd8
cmp byte [eax + 0xb], 0
jne 0x1008afd8
mov ecx, ebx
call fcn.1008aaf0
jmp 0x1008b046
cmp byte [eax + 0x1c], 0
jne 0x1008afd8
cmp byte [eax + 0x1d], 0
je 0x1008afd8
cmp dword [eax + 0x20], 0
jle 0x1008afe1
cmp byte [0x10232e88], 0
jne 0x1008afea
mov ecx, ebx
call fcn.1008aaf0
jmp 0x1008b046
movzx esi, byte [0x10232e6d]
mov ecx, ebx
call fcn.1008aaf0
mov ecx, dword [0x10232e8c]
mov edi, eax
sub ecx, 0
je 0x1008b036
sub ecx, 1
je 0x1008b032
sub ecx, 1
jne 0x1008b048
mov eax, dword [0x1022b620]
lea ecx, [edi + 1]
mov ebx, dword [eax + 0x1c]
mov eax, dword [0x1022f610]
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
jle 0x1008b032
mov dword [0x1022f610], ebx
jmp 0x1008b048
mov esi, edi
jmp 0x1008b048
push dword [0x10232e90]
push 1
call fcn.10064ba0
add esp, 8
mov esi, eax
mov eax, dword [0x1023648c]
cmp byte [eax + 0x1c], 0
jne 0x1008b0cb
test esi, esi
je 0x1008b0cb
cmp byte [0x101be014], 0
jne 0x1008b099
mov eax, dword [0x1022b90c]
test al, 1
jne 0x1008b07f
mov ecx, dword [0x1022b8e0]
or eax, 1
mov dword [0x1022b90c], eax
mov dword [0x1022b908], ecx
jmp 0x1008b085
mov ecx, dword [0x1022b908]
mov eax, dword [0x101be07c]
mov eax, dword [ecx + eax]
mov ecx, 0x64
cdq
idiv ecx
test edx, edx
jne 0x1008b0a8
mov ecx, dword [0x10236490]
call fcn.10084e20
test al, al
je 0x1008b0cb
mov eax, dword [0x1022b678]
pop edi
cmp dword [eax + 0x4d30], esi
mov eax, dword [0x101be08c]
setge cl
pop esi
pop ebx
mov byte [eax], cl
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x3c], 0
mov eax, dword [0x101be08c]
cmp byte [eax], 0
jne 0x1008b0d8
mov byte [eax], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret