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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push edi
call fcn.10001270
add esp, 8
test eax, eax
jne 0x10001911
pop edi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edi + 0x3c]
mov edx, 0xe0
mov ax, word [ecx + edi + 0x14]
push ebx
lea ebx, [ecx + edi]
sub ax, dx
movzx edx, word [ebx + 6]
movzx eax, ax
mov dword [ebp - 0x10], eax
add eax, ecx
push esi
lea ecx, [edi + 0xf8]
mov dword [ebp - 8], ebx
add ecx, eax
xor esi, esi
mov eax, dword [ebx + 0x50]
mov dword [ebp - 4], ecx
mov dword [ebp + 0xc], eax
cmp si, dx
jae 0x1000199e
mov eax, dword [ebx + 0x38]
add ecx, 8
mov edi, edx
mov ebx, eax
mov esi, dword [ecx]
mov eax, esi
cmp dword [ecx + 8], esi
cmova eax, dword [ecx + 8]
xor edx, edx
dec eax
add eax, dword [ecx + 4]
add eax, ebx
div ebx
imul eax, ebx
cmp dword [ebp + 0xc], eax
ja 0x1000198f
cmp dword [ecx + 8], esi
mov eax, dword [ecx + 4]
cmova esi, dword [ecx + 8]
dec eax
add eax, esi
xor edx, edx
add eax, ebx
div ebx
imul eax, ebx
mov dword [ebp + 0xc], eax
jmp 0x10001992
mov eax, dword [ebp + 0xc]
add ecx, 0x28
dec edi
jne 0x10001957
mov ebx, dword [ebp - 8]
mov edi, dword [ebp + 8]
test eax, eax
je 0x10001b9d
push 0x40
add eax, 0x14
push 0x3000
push eax
push dword [ebx + 0x34]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x100019de
push 0x40
push 0x3000
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10001b9d
movzx eax, word [ebx + 6]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x3c]
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 0x10]
add ecx, 0xf8
add eax, ecx
push eax
push edi
push esi
call fcn.10050b30
xor eax, eax
add esp, 0xc
xor edi, edi
cmp ax, word [ebx + 6]
jae 0x10001a48
mov ecx, dword [ebp - 4]
mov edi, edi
movzx eax, di
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*8 + 0x10]
test edx, edx
je 0x10001a41
mov ecx, dword [ecx + eax*8 + 0xc]
test ecx, ecx
je 0x10001a3e
push edx
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*8 + 0x14]
add eax, dword [ebp + 8]
push eax
lea eax, [ecx + esi]
push eax
call fcn.10050b30
add esp, 0xc
mov ecx, dword [ebp - 4]
inc edi
cmp di, word [ebx + 6]
jb 0x10001a10
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
add edi, esi
push 8
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], eax
mov dword [edi + 4], 0
mov dword [edi], 0
call fcn.10050a99
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10001b8f
push esi
mov dword [ebx + 4], esi
call fcn.10001320
add esp, 4
test eax, eax
je 0x10001b86
test dword [ebp + 0x10], 1
je 0x10001ad3
mov edi, 0x1007dc48
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
jne 0x10001aa2
mov eax, dword [0x1007dc50]
mov dword [ebx], eax
inc dword [0x1007dc4c]
xor eax, eax
mov dword [0x1007dc50], ebx
xchg dword [edi], eax
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push edi
call fcn.10001410
add esp, 0x10
test eax, eax
je 0x10001b86
mov edi, 0x1007dc48
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
jne 0x10001af0
mov eax, dword [0x1007dc50]
mov dword [ebx], eax
xor eax, eax
inc dword [0x1007dc4c]
mov dword [0x1007dc50], ebx
xchg dword [edi], eax
mov ecx, dword [ebp - 8]
mov edx, 0x2000
mov ax, word [ecx + 0x16]
and ax, dx
xor edx, edx
cmp dx, ax
je 0x10001ac8
mov eax, dword [ebp + 0x10]
test al, 2
jne 0x10001ac8
mov ecx, dword [ecx + 0x28]
test ecx, ecx
je 0x10001ac8
add ecx, esi
mov dword [ebp + 8], ecx
test al, 4
je 0x10001b47
mov eax, esi
jmp 0x10001b52
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [ebp + 8]
push 0
push 1
push eax
call ecx
test eax, eax
jne 0x10001ac8
call fcn.10001bf0
push ebx
push 0x1007dc4c
call fcn.10001bb0
xor eax, eax
xchg dword [edi], eax
mov eax, dword [ebp + 0xc]
push 0
add eax, esi
push esi
push eax
call fcn.100015a0
add esp, 0x14
push ebx
call fcn.10050a61
add esp, 4
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x14