Function at 0x1800378b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x180049028]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp byte [rcx + 0x50], 0
mov rdi, rcx
jne 0x180037aae
cmp qword [rcx + 0x20], 0
je 0x180037aae
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.ENABLING_HOOK_n
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
call fcn.180001e70
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Src_Address:_0x
call fcn.180001e70
lea rdx, [0x180034850]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rdx, qword [rdi + 0x18]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [0x180034f60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
lea rdx, [0x180041170]
call fcn.180001e70
mov rbp, qword [rdi + 0x38]
mov rdx, qword [rdi + 0x30]
mov rcx, rbp
movsxd rbx, dword [rdi + 0x28]
sub rcx, rdx
cmp rbx, rcx
jae 0x18003796b
lea rax, [rdx + rbx]
jmp 0x18003799b
jbe 0x18003799f
mov rax, qword [rdi + 0x40]
sub rax, rdx
cmp rbx, rax
jbe 0x180037987
mov rdx, rbx
lea rcx, [rdi + 0x30]
call fcn.1800381d0
jmp 0x18003799f
sub rbx, rcx
xor edx, edx
mov r8, rbx
mov rcx, rbp
call sub.VCRUNTIME140.dll_memset
lea rax, [rbx + rbp]
mov qword [rdi + 0x38], rax
movsxd rdx, dword [rdi + 0x28]
lea r9, [rsp + 0x20]
mov rcx, qword [rdi + 0x18]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movsxd r8, dword [rdi + 0x28]
mov rdx, qword [rdi + 0x18]
mov rcx, qword [rdi + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Enabled_Error_:
call fcn.180001e70
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x180041170]
call fcn.180001e70
movsxd r8, dword [rdi + 0x28]
mov edx, 0x90
mov rcx, qword [rdi + 0x18]
call sub.VCRUNTIME140.dll_memset
mov rdx, qword [rdi + 0x20]
lea rcx, [rsp + 0x28]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rax
call fcn.180037b60
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rdi + 0x18]
sub r8, rdx
call sub.VCRUNTIME140.dll_memcpy
movsxd rdx, dword [rdi + 0x28]
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
mov byte [rdi + 0x50], 1
test rcx, rcx
je 0x180037aae
mov rdx, qword [rsp + 0x38]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x180037aa9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180037aa9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180039a60
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180039920
add rsp, 0x50
pop rdi
ret