Function at 0x180015c90
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x80
lea rbp, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x180015cb5
mov ebp, 0x10000
mov qword [rsp + 0x90], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x180015cd4
mov rsi, 0xfffffffffff80000
mov rax, qword [0x180058130]
mov rcx, qword [0x180058128]
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], r14
test rax, rax
jne 0x180015d06
test rcx, rcx
je 0x180015d1d
mov rax, rcx
mov qword [0x180058130], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x180015d1d
cmp rdx, rbp
jb 0x180015d1d
cmp rdx, rsi
jbe 0x180015f19
mov qword [0x180058130], rcx
mov rax, rcx
test rcx, rcx
je 0x180015d58
test rcx, rcx
je 0x180015d48
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x180015d48
cmp rcx, rbp
jb 0x180015d48
cmp rcx, rsi
jbe 0x180015f19
mov rax, qword [rax + 8]
mov qword [0x180058130], rax
test rax, rax
jne 0x180015d31
movzx eax, bx
sub rbx, rax
mov rdi, rbx
cmp rbx, rbp
jbe 0x180015dec
mov r14d, 0x6fff0000
lea rax, [rdi - 0x70000000]
mov r8d, 0x30
cmp rax, 0x10000000
lea rdx, [rsp + 0x50]
cmovbe rdi, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180015dec
cmp dword [rsp + 0x70], 0x10000
jne 0x180015daf
cmp qword [rsp + 0x68], 0x10000
jae 0x180015dc2
mov rdi, qword [rsp + 0x58]
add rdi, 0xffffffffffff0000
cmp rdi, rbp
ja 0x180015d70
jmp 0x180015dec
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x180058130], rax
test rax, rax
jne 0x180015ece
cmp rbx, rsi
jae 0x180015ea3
mov edi, 0x80010000
nop word [rax + rax]
lea rax, [rbx - 0x70000000]
mov r8d, 0x30
cmp rax, 0x10000000
lea rdx, [rsp + 0x20]
cmovbe rbx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180015ea3
cmp dword [rsp + 0x40], 0x10000
jne 0x180015e8d
mov rcx, qword [rsp + 0x38]
cmp rcx, 0x10000
jb 0x180015e92
movzx edx, bx
test rdx, rdx
je 0x180015e67
mov rbx, qword [rsp + 0x20]
mov eax, 0x10000
sub rax, rdx
sub rcx, rax
add rbx, rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x20], rbx
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x180058130], rax
test rax, rax
jne 0x180015ece
mov rcx, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x20]
add rbx, rcx
cmp rbx, rsi
jb 0x180015e00
xor eax, eax
mov r14, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rbp
ret
mov rcx, qword [0x180058128]
lea rdx, [rax + 0xffd8]
xor r8d, r8d
mov qword [rax + 8], rcx
lea rcx, [rax + 0xffb8]
mov dword [rax], 0x52727464
mov qword [rax + 0x10], r8
mov r9d, 0x48f
mov qword [0x180058128], rax
mov qword [rdx], r8
lea rdx, [rdx - 0x38]
mov r8, rcx
sub rcx, 0x38
sub r9, 1
jne 0x180015f01
mov qword [rax + 0x10], r8
mov rdx, qword [rax + 0x10]
cmp rdx, rbp
jb 0x180015ea3
cmp rdx, rsi
ja 0x180015ea3
mov rcx, qword [rdx + 0x20]
mov qword [rax + 0x10], rcx
movabs rax, 0xcccccccccccccccc
mov qword [rdx], rax
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rax
mov qword [rdx + 0x20], rax
mov qword [rdx + 0x28], rax
mov qword [rdx + 0x30], rax
mov rax, rdx
jmp 0x180015ea5