Function at 0x14004a570
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
xor r13d, r13d
mov qword [rsp + 0x50], r13
mov rax, qword [0x140370f18]
test rax, rax
jne 0x14004a5c1
lea ecx, [rax + 0x10]
call fcn.14012a87c
mov qword [rsp + 0xb0], rax
mov dword [rax + 8], r13d
mov qword [0x140370f18], rax
mov dword [rsp + 0x30], 0x64
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, str.xxxxxxxxxxxx____xxxxxxxx____________________________________________________________________________________________________________________xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx____xxxxxxxxxxxxxxxxxxxxxx
mov qword [rsp + 0x20], rcx
lea r9, [0x1401687c0]
mov rcx, rax
call fcn.14005fd70
mov r15, qword [rsp + 0x40]
mov rsi, r15
mov r12, qword [rsp + 0x48]
cmp r15, r12
je 0x14004a79b
mov ecx, 8
call fcn.14012a87c
mov rbx, rax
mov qword [rsp + 0x58], rax
lea rdi, [rax + 8]
mov qword [rsp + 0x68], rdi
xor eax, eax
mov qword [rbx], rax
mov qword [rsp + 0x60], rdi
mov rbp, qword [rsi]
mov rax, qword [0x140370f18]
test rax, rax
jne 0x14004a653
lea ecx, [rax + 0x10]
call fcn.14012a87c
mov qword [rsp + 0xb8], rax
mov dword [rax + 8], r13d
mov qword [0x140370f18], rax
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x20], rcx
mov r9d, 0x40
lea r8d, [r9 - 0x38]
mov rdx, rbp
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rbp, qword [rsi]
mov rax, qword [0x140370f18]
test rax, rax
jne 0x14004a6a0
lea ecx, [rax + 0x10]
call fcn.14012a87c
mov qword [rsp + 0xb8], rax
mov dword [rax + 8], r13d
mov qword [0x140370f18], rax
mov qword [rsp + 0x20], r13
mov r9d, 8
mov r8, rbx
lea rdx, [rbp + 0x2c]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbp, qword [rsi]
mov rax, qword [0x140370f18]
test rax, rax
jne 0x14004a6e5
lea ecx, [rax + 0x10]
call fcn.14012a87c
mov qword [rsp + 0xb8], rax
mov dword [rax + 8], r13d
mov qword [0x140370f18], rax
mov qword [rsp + 0x20], r13
mov r9d, 8
mov r8, rbx
lea rdx, [rbp + 0x28]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, dword [rsp + 0xb0]
mov r14, qword [rsi]
mov rax, qword [0x140370f18]
test rax, rax
jne 0x14004a731
lea ecx, [rax + 0x10]
call fcn.14012a87c
mov qword [rsp + 0xb8], rax
mov dword [rax + 8], r13d
mov qword [0x140370f18], rax
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x20], rcx
mov r9d, ebp
mov r8d, 8
mov rdx, r14
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
test rbx, rbx
je 0x14004a788
sub rdi, rbx
cmp rdi, 0x1000
jb 0x14004a77d
add rdi, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x14004a794
mov rbx, rcx
mov rdx, rdi
mov rcx, rbx
call fcn.14012abd8
add rsi, 8
cmp rsi, r12
jmp 0x14004a5fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test r15, r15
je 0x14004a7dc
mov rdx, qword [rsp + 0x50]
sub rdx, r15
and rdx, 0xfffffffffffffff8
mov rax, r15
cmp rdx, 0x1000
jb 0x14004a7d4
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a7d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.14012abd8
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret