Function at 0x1000e220
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hook routines via microsoft detours

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
push edi
cmp esi, 0x7ff80000
jbe 0x1000e248
lea ebx, [esi - 0x7ff80000]
cmp esi, 0x80000000
jb 0x1000e24d
mov ebp, 0xfff80000
jmp 0x1000e253
mov ebx, 0x80000
lea ebp, [esi + 0x7ff80000]
cmp byte [esi], 0xe9
jne 0x1000e28c
mov eax, dword [esi + 1]
add eax, 5
add eax, esi
cmp eax, esi
jae 0x1000e27a
cmp eax, 0x80000000
jae 0x1000e273
lea ebp, [eax + 0x7ff80000]
jmp 0x1000e28c
mov ebp, 0xfff80000
jmp 0x1000e28c
lea ebx, [eax - 0x7ff80000]
cmp eax, 0x7ff80000
ja 0x1000e28c
mov ebx, 0x80000
mov edx, dword [0x1005ca34]
mov eax, dword [0x1005ca30]
test edx, edx
jne 0x1000e2a7
test eax, eax
je 0x1000e2ba
mov edx, eax
mov dword [0x1005ca34], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x1000e2ba
cmp ecx, ebx
jb 0x1000e2ba
cmp ecx, ebp
jbe 0x1000e490
mov edx, eax
mov dword [0x1005ca34], edx
test eax, eax
je 0x1000e2f0
mov ecx, eax
test eax, eax
je 0x1000e2df
mov eax, dword [ecx + 8]
test eax, eax
je 0x1000e2df
cmp eax, ebx
jb 0x1000e2df
cmp eax, ebp
jbe 0x1000e490
mov edx, dword [edx + 4]
mov ecx, edx
mov dword [0x1005ca34], edx
mov eax, edx
test ecx, ecx
jne 0x1000e2c8
and esi, 0xffff0000
lea edi, [esi - 0x10000]
cmp edi, ebx
jbe 0x1000e39b
cmp edi, dword [section..data]
jb 0x1000e31c
cmp edi, dword [0x1005b004]
ja 0x1000e31c
sub edi, 0x8000000
jmp 0x1000e393
push 0x1c
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [esp + 0x1c], xmm0
movq qword [esp + 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000e39b
cmp dword [esp + 0x20], 0x10000
jne 0x1000e37d
cmp dword [esp + 0x1c], 0x10000
jb 0x1000e37d
push 0x40
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
jne 0x1000e44b
sub edi, 0x10000
jmp 0x1000e393
mov ecx, dword [esp + 0x14]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x1000e304
cmp esi, ebp
jae 0x1000e441
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [eax]
cmp esi, dword [section..data]
jb 0x1000e3c8
cmp esi, dword [0x1005b004]
ja 0x1000e3c8
add esi, 0x8000000
jmp 0x1000e439
push 0x1c
lea eax, [esp + 0x30]
mov dword [esp + 0x48], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [esp + 0x38], xmm0
movq qword [esp + 0x48], xmm0
call edi
test eax, eax
je 0x1000e441
cmp dword [esp + 0x3c], 0x10000
mov ecx, dword [esp + 0x38]
jne 0x1000e423
cmp ecx, 0x10000
jb 0x1000e423
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
jne 0x1000e44b
add esi, 0x10000
jmp 0x1000e439
mov esi, dword [esp + 0x2c]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x1000e439
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, ebp
jb 0x1000e3b0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
mov dword [edx], 0x52727464
xor ecx, ecx
mov dword [edx + 8], 0
mov esi, 0x38b
mov eax, dword [0x1005ca30]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x1005ca34], edx
mov dword [0x1005ca30], edx
nop dword [eax]
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x1000e480
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x1000e441
cmp esi, ebp
ja 0x1000e441
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.10028850
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret