Function at 0x10001900
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.10001280
add esp, 8
test eax, eax
jne 0x10001921
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 0x100019ae
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 0x1000199f
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 0x100019a2
mov eax, dword [ebp + 0xc]
add ecx, 0x28
dec edi
jne 0x10001967
mov ebx, dword [ebp - 8]
mov edi, dword [ebp + 8]
test eax, eax
je 0x10001bad
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 0x100019ee
push 0x40
push 0x3000
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10001bad
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.10053390
xor eax, eax
add esp, 0xc
xor edi, edi
cmp ax, word [ebx + 6]
jae 0x10001a58
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 0x10001a51
mov ecx, dword [ecx + eax*8 + 0xc]
test ecx, ecx
je 0x10001a4e
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.10053390
add esp, 0xc
mov ecx, dword [ebp - 4]
inc edi
cmp di, word [ebx + 6]
jb 0x10001a20
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.100532f9
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10001b9f
push esi
mov dword [ebx + 4], esi
call fcn.10001330
add esp, 4
test eax, eax
je 0x10001b96
test dword [ebp + 0x10], 1
je 0x10001ae3
mov edi, 0x1007fc28
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
jne 0x10001ab2
mov eax, dword [0x1007fc30]
mov dword [ebx], eax
inc dword [0x1007fc2c]
xor eax, eax
mov dword [0x1007fc30], 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.10001420
add esp, 0x10
test eax, eax
je 0x10001b96
mov edi, 0x1007fc28
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
jne 0x10001b00
mov eax, dword [0x1007fc30]
mov dword [ebx], eax
xor eax, eax
inc dword [0x1007fc2c]
mov dword [0x1007fc30], 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 0x10001ad8
mov eax, dword [ebp + 0x10]
test al, 2
jne 0x10001ad8
mov ecx, dword [ecx + 0x28]
test ecx, ecx
je 0x10001ad8
add ecx, esi
mov dword [ebp + 8], ecx
test al, 4
je 0x10001b57
mov eax, esi
jmp 0x10001b62
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 0x10001ad8
call fcn.10001c00
push ebx
push 0x1007fc2c
call fcn.10001bc0
xor eax, eax
xchg dword [edi], eax
mov eax, dword [ebp + 0xc]
push 0
add eax, esi
push esi
push eax
call fcn.100015b0
add esp, 0x14
push ebx
call fcn.100532c1
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