Function at 0x180164630
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1804e1080]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r12, r8
mov r15, rdx
mov r14, rcx
mov rax, qword [rcx + 0x30]
cmp rax, qword [rcx + 0x38]
je 0x180164672
mov qword [rcx + 0x38], rax
mov edi, 0xe
mov qword [rcx + 0x48], rdi
xor edx, edx
mov r8d, 0x148
lea rcx, [rbp - 0x80]
call fcn.1802d1800
mov rbx, qword [r14]
lea rax, [rbx + 0xe]
cmp rbx, rax
jae 0x18016473a
nop dword [rax]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xd0], xmm0
mov dword [rbp + 0xe0], eax
xor edx, edx
lea r8d, [rax + 2]
lea rcx, [rbp + 0xd0]
call fcn.18025b780
test eax, eax
js 0x1801647b1
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0xf
mov r8, rbx
xor edx, edx
lea rcx, [rbp + 0xd0]
call fcn.18025b680
shr eax, 0x1f
not al
test al, 1
je 0x1801647b1
test byte [rbp - 0x60], 0x80
jne 0x18016478e
movzx r9d, byte [rbp - 0x78]
mov rdx, qword [r14 + 0x38]
mov r8, rbx
lea rcx, [r14 + 0x30]
call fcn.180162f30
movzx ecx, byte [rbp - 0x78]
mov rdi, qword [r14 + 0x48]
add rdi, rcx
mov qword [r14 + 0x48], rdi
add rbx, rcx
mov rax, qword [r14]
add rax, 0xe
cmp rbx, rax
jb 0x1801646a0
mov r8, rdi
lea rdx, [rsp + 0x50]
mov rcx, qword [r12]
call fcn.180165440
nop
cmp byte [rsp + 0x70], 0
jne 0x1801647ba
mov byte [rbp + 0xd0], 0
movzx eax, byte [rsp + 0x50]
mov byte [rbp + 0xd8], al
xor eax, eax
mov dword [rbp + 0xd9], eax
mov word [rbp + 0xdd], ax
mov byte [rbp + 0xdf], al
movups xmm0, xmmword [rbp + 0xd0]
movups xmmword [r15], xmm0
mov byte [r15 + 0x10], al
jmp 0x18016496c
mov byte [rbp + 0xd0], 3
mov qword [rbp + 0xd8], rbx
movups xmm0, xmmword [rbp + 0xd0]
movups xmmword [r15], xmm0
mov byte [r15 + 0x10], 0
jmp 0x18016496c
mov byte [rbp + 0xd0], 1
jmp 0x180164795
lea rcx, [r14 + 0x10]
lea rdx, [rsp + 0x50]
call fcn.180165300
mov rcx, qword [r14 + 0x20]
mov rdx, qword [r14 + 0x28]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
xor r12d, r12d
mov dword [rsp + 0x48], r12d
lea r9, [rsp + 0x48]
lea r8d, [r12 + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov r8, qword [r14 + 0x38]
mov rdx, qword [r14 + 0x30]
sub r8, rdx
mov rcx, qword [r14 + 0x20]
call fcn.1802d1160
mov rcx, qword [r14 + 0x48]
mov rsi, qword [r14 + 0x20]
add rcx, 0xfffffffffffffff2
add rsi, rcx
mov rbx, qword [r14 + 0x38]
sub rbx, qword [r14 + 0x30]
add rbx, qword [r14]
lea rdi, [rsi + 6]
mov qword [rbp + 0xd0], rsi
mov qword [rbp + 0xd8], 6
mov dword [rbp + 0xe0], r12d
lea r9, [rbp + 0xe0]
lea edx, [r12 + 6]
lea r8d, [r12 + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov qword [rdi], rbx
mov word [rsp + 0x31], 0x25ff
sub edi, esi
sub edi, 6
mov dword [rsp + 0x33], edi
mov eax, dword [rsp + 0x31]
mov dword [rsi], eax
movzx eax, word [rsp + 0x35]
mov word [rsi + 4], ax
lea r9, [rbp + 0xe0]
mov r8d, dword [rbp + 0xe0]
mov rdx, qword [rbp + 0xd8]
mov rcx, qword [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rax, [0x180359538]
mov qword [rbp + 0x130], rax
mov qword [rbp + 0x138], r14
lea rax, [rbp + 0x130]
mov qword [rbp + 0x168], rax
lea rax, vtable.std::_Func_impl_no_alloc_class__private:_class_std::expected_void__struct_safetyhook::InlineHook::Error____cdecl_safetyhook::InlineHook::ff_hook_class_std::shared_ptr_class_safetyhook::Allocator__const____ptr64____ptr64::_2::_lambda_1___void___.0
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf8], r14
lea rax, [rbp + 0xf0]
mov qword [rbp + 0x128], rax
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0xf0]
call fcn.180164a80
nop
mov rcx, qword [rbp + 0x128]
test rcx, rcx
je 0x18016491c
mov rax, qword [rcx]
lea rdx, [rbp + 0xf0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x128], r12
mov rcx, qword [rbp + 0x168]
test rcx, rcx
je 0x18016493b
mov rax, qword [rcx]
lea rdx, [rbp + 0x130]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov byte [r15 + 0x10], 1
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
cmp byte [rsp + 0x70], 0
je 0x18016496c
lea rcx, [rsp + 0x50]
call fcn.1801652a0
mov rax, r15
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.18027f9e0
add rsp, 0x280
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret