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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10089014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1008ab98], 0
jne 0x1001424b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012fae
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x1008ac00]
mov eax, 0xad602b59
sub ecx, dword [0x1008abfc]
imul ecx
push ebx
add edx, ecx
sar edx, 9
push esi
mov eax, edx
push edi
xor edi, edi
shr eax, 0x1f
mov dword [ebp - 8], edi
add eax, edx
je 0x10014483
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, esi
mov eax, dword [0x1008abfc]
mov edx, dword [esi + eax + 0x14]
cmp edx, dword [ebp + 8]
jne 0x10014452
mov ecx, dword [ebp + 0x10]
cmp dword [esi + eax + 0x24], ecx
jne 0x10014452
cmp dword [ebp + 0xc], 0
je 0x1001438c
cmp dword [esi + eax + 0xc], 0
jne 0x10014452
mov ecx, dword [esi + eax + 4]
sub ecx, 0
je 0x10014344
sub ecx, 1
je 0x100142f1
sub ecx, 1
jne 0x1001437a
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
push 4
push dword [esi + eax + 8]
push edx
call ebx
mov eax, dword [0x1008abfc]
mov dword [esi + eax + 0xc], 1
jmp 0x10014452
push dword [esi + eax + 0x24]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1001449b
mov ecx, dword [0x1008abfc]
push dword [esi + ecx + 8]
push 0
push dword [esi + ecx]
push dword [esi + ecx + 0x14]
push edi
call fcn.10016570
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1008abfc]
mov edi, dword [ebp - 8]
mov dword [esi + eax + 0xc], 1
jmp 0x10014452
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push 0x40
push dword [esi + eax + 8]
push edx
call ebx
mov eax, dword [0x1008abfc]
lea ecx, [ebp - 8]
push ecx
mov eax, dword [esi + eax + 0x14]
mov byte [eax], 0xcc
mov eax, dword [0x1008abfc]
push dword [ebp - 8]
push dword [esi + eax + 8]
push dword [esi + eax + 0x14]
call ebx
mov eax, dword [0x1008abfc]
mov dword [esi + eax + 0xc], 1
jmp 0x10014452
cmp dword [esi + eax + 0xc], 0
je 0x10014452
mov ecx, dword [esi + eax + 4]
sub ecx, 0
je 0x10014402
sub ecx, 1
je 0x100143c1
sub ecx, 1
jne 0x10014445
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [esi + eax + 8]
push edx
jmp 0x10014443
push dword [esi + eax + 0x24]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1001449b
mov ecx, dword [0x1008abfc]
push dword [esi + ecx + 8]
push 0
push dword [esi + ecx]
push 0
push edi
call fcn.10016570
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 8]
jmp 0x10014445
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push 0x40
push dword [esi + eax + 8]
push edx
call ebx
mov eax, dword [0x1008abfc]
push dword [esi + eax + 8]
push dword [esi + eax + 0x1c]
push dword [esi + eax + 0x14]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [0x1008abfc]
lea ecx, [ebp - 8]
add esp, 0xc
push ecx
push dword [ebp - 8]
push dword [esi + eax + 8]
push dword [esi + eax + 0x14]
call ebx
mov eax, dword [0x1008abfc]
mov dword [esi + eax + 0xc], 0
mov ecx, dword [0x1008ac00]
mov eax, 0xad602b59
sub ecx, dword [0x1008abfc]
inc edi
imul ecx
add esi, 0x2f4
mov dword [ebp - 8], edi
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x10014280
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012fae
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10012fae
mov esp, ebp
pop ebp
ret 0xc