Function at 0x140040230
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
xor r12d, r12d
mov qword [rsp + 0x68], r12
mov rax, qword [0x140495fa0]
test rax, rax
jne 0x140040283
lea ecx, [rax + 0x10]
call fcn.14011cc04
mov qword [rsp + 0xa0], rax
mov dword [rax + 8], r12d
mov qword [0x140495fa0], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, rax
call fcn.1400576f0
mov r14, qword [rsp + 0x58]
mov rsi, r14
mov r15, qword [rsp + 0x60]
cmp r14, r15
je 0x140040459
nop dword [rax + rax]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.140040580
mov rdi, qword [rsp + 0x40]
lea rbx, [rdi + 8]
mov r8, rbx
sub r8, rdi
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x48], rbx
mov rbx, qword [rsi]
mov rax, qword [0x140495fa0]
test rax, rax
jne 0x140040315
lea ecx, [rax + 0x10]
call fcn.14011cc04
mov qword [rsp + 0xa8], rax
mov dword [rax + 8], r12d
mov qword [0x140495fa0], rax
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x20], rcx
mov r9d, 0x40
lea r8d, [r9 - 0x38]
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rbx, qword [rsi]
mov rax, qword [0x140495fa0]
test rax, rax
jne 0x140040362
lea ecx, [rax + 0x10]
call fcn.14011cc04
mov qword [rsp + 0xa8], rax
mov dword [rax + 8], r12d
mov qword [0x140495fa0], rax
mov qword [rsp + 0x20], r12
mov r9d, 8
mov r8, rdi
lea rdx, [rbx + 0x2c]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rsi]
mov rax, qword [0x140495fa0]
test rax, rax
jne 0x1400403a7
lea ecx, [rax + 0x10]
call fcn.14011cc04
mov qword [rsp + 0xa8], rax
mov dword [rax + 8], r12d
mov qword [0x140495fa0], rax
mov qword [rsp + 0x20], r12
mov r9d, 8
mov r8, rdi
lea rdx, [rbx + 0x28]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, dword [rsp + 0xa0]
mov rbp, qword [rsi]
mov rax, qword [0x140495fa0]
test rax, rax
jne 0x1400403f3
lea ecx, [rax + 0x10]
call fcn.14011cc04
mov qword [rsp + 0xa8], rax
mov dword [rax + 8], r12d
mov qword [0x140495fa0], rax
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x20], rcx
mov r9d, ebx
mov r8d, 8
mov rdx, rbp
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
test rdi, rdi
je 0x14004044c
mov rdx, qword [rsp + 0x50]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x140040444
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040492
mov rcx, rdi
call fcn.14011cf50
add rsi, 8
cmp rsi, r15
jne 0x1400402b0
test r14, r14
je 0x1400404a1
mov rdx, qword [rsp + 0x68]
sub rdx, r14
and rdx, 0xfffffffffffffff8
mov rax, r14
cmp rdx, 0x1000
jb 0x140040499
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040499
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, r14
call fcn.14011cf50
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret