Function at 0x10101da0
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, ecx
push edi
lea ebp, [esi - 0x7ff80000]
cmp esi, 0x7ff80000
ja 0x10101dbc
mov ebp, 0x80000
lea ebx, [esi + 0x7ff80000]
cmp esi, 0x80000000
jb 0x10101dcf
mov ebx, 0xfff80000
cmp byte [esi], 0xe9
jne 0x10101e08
mov eax, dword [esi + 1]
add eax, 5
add eax, esi
cmp eax, esi
jae 0x10101df6
cmp eax, 0x80000000
jae 0x10101def
lea ebx, [eax + 0x7ff80000]
jmp 0x10101e08
mov ebx, 0xfff80000
jmp 0x10101e08
lea ebp, [eax - 0x7ff80000]
cmp eax, 0x7ff80000
ja 0x10101e08
mov ebp, 0x80000
mov edx, dword [0x10320e90]
mov eax, dword [0x10320e98]
test edx, edx
jne 0x10101e23
test eax, eax
je 0x10101e36
mov edx, eax
mov dword [0x10320e90], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x10101e36
cmp ecx, ebp
jb 0x10101e36
cmp ecx, ebx
jbe 0x10102000
mov edx, eax
mov dword [0x10320e90], edx
test eax, eax
je 0x10101e66
test edx, edx
je 0x10101e59
mov eax, dword [edx + 8]
test eax, eax
je 0x10101e59
cmp eax, ebp
jb 0x10101e59
cmp eax, ebx
jbe 0x10102000
mov edx, dword [edx + 4]
mov dword [0x10320e90], edx
test edx, edx
jne 0x10101e46
and esi, 0xffff0000
lea edi, [esi - 0x10000]
cmp edi, ebp
jbe 0x10101f17
nop word [eax + eax]
cmp edi, dword [0x1031bf1c]
jb 0x10101e98
cmp edi, dword [0x1031c0a0]
ja 0x10101e98
sub edi, 0x8000000
jmp 0x10101f0f
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 0x10101f17
cmp dword [esp + 0x20], 0x10000
jne 0x10101ef9
cmp dword [esp + 0x1c], 0x10000
jb 0x10101ef9
push 0x40
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
jne 0x10101fc0
sub edi, 0x10000
jmp 0x10101f0f
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, ebp
ja 0x10101e80
cmp esi, ebx
jae 0x10101fb6
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp esi, dword [0x1031bf1c]
jb 0x10101f3d
cmp esi, dword [0x1031c0a0]
ja 0x10101f3d
add esi, 0x8000000
jmp 0x10101fae
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 0x10101fb6
cmp dword [esp + 0x3c], 0x10000
mov ecx, dword [esp + 0x38]
jne 0x10101f98
cmp ecx, 0x10000
jb 0x10101f98
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
jne 0x10101fc0
add esi, 0x10000
jmp 0x10101fae
mov esi, dword [esp + 0x2c]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x10101fae
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, ebx
jb 0x10101f25
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 [0x10320e98]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10320e90], edx
mov dword [0x10320e98], edx
nop
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x10101ff0
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebp
jb 0x10101fb6
cmp esi, ebx
ja 0x10101fb6
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret