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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x180146540]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r12, r8
mov rdi, rdx
mov rsi, rcx
xor r13d, r13d
mov rax, qword [rcx + 0x30]
cmp rax, qword [rcx + 0x38]
je 0x180004d6a
mov qword [rcx + 0x38], rax
mov r14d, 0xe
mov qword [rcx + 0x48], r14
xor edx, edx
mov r8d, 0x148
lea rcx, [rbp - 0x80]
call fcn.1800a7a60
mov rbx, qword [rsi]
lea rax, [rbx + 0xe]
cmp rbx, rax
jae 0x180004e3c
nop word [rax + rax]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xd0], xmm0
mov dword [rbp + 0xe0], eax
xor edx, edx
mov r8d, 2
lea rcx, [rbp + 0xd0]
call fcn.180011050
test eax, eax
js 0x180004eaf
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0xf
mov r8, rbx
xor edx, edx
lea rcx, [rbp + 0xd0]
call fcn.180010f50
shr eax, 0x1f
not al
test al, 1
je 0x180004eaf
test byte [rbp - 0x60], 0x80
jne 0x180004e8e
movzx r9d, byte [rbp - 0x78]
mov rdx, qword [rsi + 0x38]
mov r8, rbx
lea rcx, [rsi + 0x30]
call fcn.1800018e0
movzx ecx, byte [rbp - 0x78]
mov r14, qword [rsi + 0x48]
add r14, rcx
mov qword [rsi + 0x48], r14
add rbx, rcx
mov rax, qword [rsi]
add rax, 0xe
cmp rbx, rax
jb 0x180004da0
mov r8, r14
lea rdx, [rsp + 0x40]
mov rcx, qword [r12]
call fcn.180002d60
nop
cmp byte [rsp + 0x60], 0
jne 0x180004eb8
mov byte [rbp + 0xd0], 0
movzx eax, byte [rsp + 0x40]
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 [rdi], xmm0
mov byte [rdi + 0x10], al
jmp 0x180005164
mov byte [rbp + 0xd0], 3
mov qword [rbp + 0xd8], rbx
movups xmm0, xmmword [rbp + 0xd0]
movups xmmword [rdi], xmm0
mov byte [rdi + 0x10], r13b
jmp 0x180005164
mov byte [rbp + 0xd0], 1
jmp 0x180004e95
lea rcx, [rsi + 0x10]
lea rdx, [rsp + 0x40]
call fcn.180002440
mov r8, qword [rsi + 0x38]
mov rdx, qword [rsi + 0x30]
sub r8, rdx
mov rcx, qword [rsi + 0x20]
call fcn.1800a73c0
mov rcx, qword [rsi + 0x48]
mov rbx, qword [rsi + 0x20]
add rcx, 0xfffffffffffffff2
add rbx, rcx
mov r15, qword [rsi + 0x38]
sub r15, qword [rsi + 0x30]
add r15, qword [rsi]
lea r14, [rbx + 6]
mov dword [rsp + 0x3c], r13d
lea r9, [rsp + 0x3c]
mov edx, 6
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180004fb2
mov byte [rbp + 0xd0], 5
mov eax, dword [rbp + 0xd1]
mov dword [rbp + 0xd1], eax
movzx eax, word [rbp + 0xd5]
mov word [rbp + 0xd5], ax
movzx eax, byte [rbp + 0xd7]
mov byte [rbp + 0xd7], al
mov qword [rbp + 0xd8], rbx
movups xmm0, xmmword [rbp + 0xd0]
movups xmmword [rdi], xmm0
mov byte [rdi + 0x10], 0
cmp byte [rsp + 0x60], 0
je 0x180005164
lea rcx, [rsp + 0x40]
call fcn.1800051a0
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x180004fad
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x180004fad
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
lock xadd dword [rsi + 0xc], ebx
cmp ebx, 1
jne 0x180004fad
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
nop
jmp 0x180005164
mov qword [r14], r15
mov word [rsp + 0x30], 0x25ff
sub r14d, ebx
sub r14d, 6
mov dword [rsp + 0x32], r14d
mov eax, dword [rsp + 0x30]
mov dword [rbx], eax
movzx eax, word [rsp + 0x34]
mov word [rbx + 4], ax
test rbx, rbx
je 0x180004ff9
mov dword [rsp + 0x30], r13d
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x3c]
mov edx, 6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [rsp + 0x78], 0
lea rax, [0x1800ac938]
mov qword [rbp + 0x130], rax
mov qword [rbp + 0x138], rsi
lea rax, [rbp + 0x130]
mov qword [rbp + 0x168], rax
mov qword [rbp + 0xd0], rsi
lea rax, [rsp + 0x68]
mov qword [rbp + 0xd8], 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
movups xmm0, xmmword [rbp + 0xd0]
movups xmmword [rbp + 0xf8], xmm0
lea rax, [rbp + 0xf0]
mov qword [rbp + 0x128], rax
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0xf0]
call fcn.180004b10
nop
mov rcx, qword [rbp + 0x128]
test rcx, rcx
je 0x180005098
mov rax, qword [rcx]
lea rdx, [rbp + 0xf0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x128], r13
mov rcx, qword [rbp + 0x168]
test rcx, rcx
je 0x1800050b7
mov rax, qword [rcx]
lea rdx, [rbp + 0x130]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
cmp byte [rsp + 0x78], 0
je 0x180005118
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rdi], xmm0
mov byte [rdi + 0x10], 0
cmp byte [rsp + 0x60], 0
je 0x180005164
lea rcx, [rsp + 0x40]
call fcn.1800051a0
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x180005116
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x180005116
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
lock xadd dword [rsi + 0xc], ebx
cmp ebx, 1
jne 0x180005116
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
nop
jmp 0x180005164
mov byte [rdi + 0x10], 1
cmp byte [rsp + 0x60], 0
je 0x180005164
lea rcx, [rsp + 0x40]
call fcn.1800051a0
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x180005164
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x180005164
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
lock xadd dword [rsi + 0xc], ebx
cmp ebx, 1
jne 0x180005164
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
nop
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.180077eb0
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret