Function at 0x14000a7bc
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1400157e0], eax
je 0x14000a7eb
mov eax, 0x10dd
jmp 0x14000aa76
xor r14d, r14d
cmp dword [0x1400157e4], r14d
je 0x14000a801
call fcn.14000a53c
jmp 0x14000aa70
mov rbx, qword [0x1400157a0]
mov ebp, r14d
jmp 0x14000a897
mov rdx, qword [rbx + 0x20]
cmp dword [rbx + 8], r14d
je 0x14000a839
movzx r8d, byte [rdx + 0x3e]
add rdx, 0x20
mov rcx, qword [rbx + 0x18]
call sub.msvcrt.dll_memcpy
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
mov qword [rcx], rax
jmp 0x14000a894
lea rcx, [rdx + 0x58]
mov word [rcx], 0x25ff
lea rax, [rcx + 6]
sub edx, eax
add edx, 0x50
mov dword [rcx + 2], edx
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x20]
add rcx, 0x58
mov byte [rdx], 0xe9
lea rax, [rdx + 5]
sub ecx, eax
mov dword [rdx + 1], ecx
lea rcx, [rdx + 5]
mov r9, qword [rbx + 0x20]
mov r8, qword [r9 + 0x48]
sub r8, rcx
cmp rcx, qword [r9 + 0x48]
cmova r8, r14
test r8, r8
je 0x14000a88d
mov dl, 0xcc
call sub.msvcrt.dll_memset
mov r9, qword [rbx + 0x20]
mov rax, qword [rbx + 0x10]
mov qword [rax], r9
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000a810
mov rbx, qword [0x1400157d8]
jmp 0x14000a8b5
mov rcx, qword [rbx + 8]
call fcn.14000a66c
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000a8a9
mov rbx, qword [0x1400157b0]
jmp 0x14000a8cf
mov rcx, qword [rbx + 8]
call fcn.14000a66c
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000a8c3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, qword [0x1400157a0]
mov rdi, rax
jmp 0x14000a8ff
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rbx + 0x18]
movzx r8d, byte [rcx + 0x3e]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000a8e6
mov rbx, qword [0x1400157d8]
jmp 0x14000a91a
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000a90d
mov rdi, qword [0x1400157b0]
test rdi, rdi
je 0x14000a95c
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rdi, qword [rdi]
test rdi, rdi
jne 0x14000a92b
mov rdi, qword [0x1400157b0]
test rdi, rdi
je 0x14000a95c
mov rbx, qword [rdi]
mov rcx, rdi
call fcn.140001274
mov rdi, rbx
test rbx, rbx
jne 0x14000a949
mov rdi, qword [0x1400157a0]
mov qword [0x1400157b0], r14
mov qword [0x1400157d8], r14
test rdi, rdi
je 0x14000a9e0
mov rax, qword [rdi + 0x20]
lea r9, [rsp + 0x40]
mov r8d, dword [rdi + 0x28]
mov rcx, qword [rdi + 0x18]
movzx edx, byte [rax + 0x3e]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [rdi + 8], r14d
je 0x14000a9cd
mov rsi, qword [rdi + 0x20]
test rsi, rsi
je 0x14000a9cd
xor edx, edx
mov rbx, rsi
and rbx, 0xffffffffffff0000
mov rcx, rsi
lea r8d, [rdx + 0x60]
call sub.msvcrt.dll_memset
mov rax, qword [rbx + 0x10]
mov ebp, 1
mov qword [rsi + 0x48], rax
mov qword [rbx + 0x10], rsi
mov qword [rdi + 0x20], r14
mov rbx, qword [rdi]
mov rcx, rdi
call fcn.140001274
mov rdi, rbx
test rbx, rbx
jne 0x14000a976
mov qword [0x1400157a0], r14
test ebp, ebp
je 0x14000aa64
cmp dword [0x1400157b8], r14d
jne 0x14000aa64
mov rcx, qword [0x1400157c0]
lea rbx, [0x1400157c0]
jmp 0x14000aa5f
cmp dword [rcx], 0x52727464
jne 0x14000aa58
lea r8, [rcx + 0x10000]
mov edx, r14d
lea rax, [rcx + 0xa8]
cmp qword [rax], r14
je 0x14000aa2c
cmp qword [rax], rcx
jb 0x14000aa58
cmp qword [rax], r8
jae 0x14000aa58
inc edx
add rax, 0x60
cmp edx, 0x2a9
jb 0x14000aa1d
mov rax, qword [rcx + 8]
xor edx, edx
mov r8d, 0x8000
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [0x1400157d0], r14
jmp 0x14000aa5c
lea rbx, [rcx + 8]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14000aa04
call fcn.140009fd8
mov dword [0x1400157e0], r14d
mov eax, dword [0x1400157e4]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret