Function at 0x140013000
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1419c60c0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov r14, rdx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rax
mov r8, rdx
mov edx, ecx
lea rcx, [rsp + 0x38]
call fcn.140012ac0
nop
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
cmp rbx, rbp
je 0x140013196
xor r15d, r15d
nop dword [rax]
mov rdi, qword [r14 + 0x10]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14001a060
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8, rdi
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14001314b
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova r8, qword [rsp + 0x50]
mov qword [rsp + 0x20], r15
mov r9, rdi
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400130f3
lea rdx, [0x14018c718]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001b420
mov rdx, qword [rbx]
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___void_const____ptr64____ptr64]
lea rdx, [0x14001b600]
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::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14001312c
lea rcx, reloc.OLEAUT32.dll_SysReAllocString
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x1400131ec
cmp dword [0x1419c9b9c], 0x7fffffff
je 0x1400131d6
mov byte [0x142315162], 1
lea rcx, reloc.OLEAUT32.dll_SysReAllocString
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov r8, rdi
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140013184
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001317f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400131f8
call fcn.140121530
add rbx, 8
cmp rbx, rbp
jne 0x140013060
mov rbx, qword [rsp + 0x38]
movzx edi, byte [0x142315162]
test rbx, rbx
je 0x140013207
mov rdx, qword [rsp + 0x48]
sub rdx, rbx
and rdx, 0xfffffffffffffff8
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400131ff
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400131ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dword [0x1419c9b9c], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rbx
call fcn.140121530
movzx eax, dil
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140121510
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret