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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 0x531d40
push ebx
push esi
push edi
mov edi, dword [0x10047ec4]
mov ecx, dword [edi + 4]
call eax
mov edx, dword [edi + 4]
mov ebx, eax
cmp byte [edx + 0x3ac], 0
je 0x1001717b
mov ecx, dword [edx + 0x3a8]
test ecx, ecx
je 0x1001717b
mov esi, 0x5b86d0
cmp dword [ecx + 0x1a8], edx
je 0x10016f61
push edx
call esi
test al, al
je 0x1001717b
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 0x184], eax
mov ecx, dword [edi]
cmp dword [ecx + 0x164], 0x10
jne 0x10016fb0
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x3a8]
cmp dword [ecx + 0x170], eax
je 0x10016f90
cmp dword [ecx + 0x3a8], eax
jne 0x10016fb0
mov dword [ecx + 0x164], 0
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 0x184], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [ecx + 0x3ac], 0
je 0x10017136
mov eax, dword [ecx + 0x3a8]
test eax, eax
je 0x10017136
cmp dword [eax + 0x1a8], ecx
je 0x10016fe0
push ecx
mov ecx, eax
call esi
test al, al
je 0x10017136
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edx, dword [ecx + 0x3a8]
cmp edx, dword [eax + 0x3a8]
je 0x1001702a
cmp dword [ecx + 0x164], 0x10
je 0x1001701f
push edx
push 0x10
mov eax, 0x521f10
call eax
mov ecx, dword [edi]
mov eax, 0x522660
push 0x7fffffff
call eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.10017f90
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 0xc8], 0
jne 0x100170a2
mov ecx, 0x500127
call fcn.100183f0
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.10008800
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1001708a
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0xc]
add eax, esi
mov dword [ebx + 0xbc], eax
call fcn.100171a0
mov dword [ebx + 0xc4], eax
mov ecx, dword [edi]
mov dword [ebx + 0xc8], ecx
mov ecx, edi
mov eax, dword [edi]
mov dword [eax + 0x3d4], 0x14
call fcn.10016ab0
mov esi, dword [ebp + 0xc]
mov eax, 0x531d40
mov ecx, dword [edi + 4]
add esi, 0x3e8
call eax
cmp byte [ebp + 8], 0
mov dword [eax + 0xc0], esi
je 0x10017122
test byte [edi + 0x14], 2
jne 0x10017122
mov ecx, dword [edi + 4]
mov ebx, 0x50bb70
push 1
push 1
push dword [edi]
call ebx
mov eax, dword [edi + 4]
mov esi, 0x50b700
mov dword [eax + 0x53c], 0x7fffffff
mov ecx, dword [edi + 4]
call esi
mov ecx, dword [edi]
push 1
push 1
push dword [edi + 4]
call ebx
mov eax, dword [edi]
mov dword [eax + 0x53c], 0x7fffffff
mov ecx, dword [edi]
call esi
mov eax, dword [edi]
and byte [eax + 0x14d], 0xdf
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [edi + 4]
mov ecx, dword [edi]
push edx
mov edx, dword [edx + 0x3a8]
call fcn.100167f0
mov ecx, dword [edi + 4]
add esp, 4
mov eax, 0x531d40
call eax
mov ecx, dword [ebp + 0xc]
mov esi, eax
add ecx, 0xbb8
mov dword [esi + 0xbc], ecx
call fcn.100171a0
mov dword [esi + 0xc4], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
pop edi
pop esi
pop ebx
mov dword [eax + 0x184], 0
xor al, al
mov esp, ebp
pop ebp
ret 8