Function at 0x180021940
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x50]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1800ee040]
xor rax, rsp
mov qword [rbp + 0x100], rax
movzx ebx, cl
mov edx, dword [0x1800feee8]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov edx, dword [rcx + rax]
cmp dword [0x1800fffec], edx
jle 0x1800219c4
lea rcx, [0x1800fffec]
call fcn.1800b2a48
cmp dword [0x1800fffec], 0xffffffff
jne 0x1800219c4
lea rcx, [0x1800ba360]
call fcn.1800b2f40
lea rcx, [0x1800fffec]
call fcn.1800b29dc
mov rdi, qword [0x1800ff988]
test rdi, rdi
jne 0x180021bd9
movabs rax, 0xd9b7d419d6dbe0c8
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp], rax
movabs rdx, 0xf8871e883a16dd06
mov qword [rbp + 0x40], rdx
mov rax, qword [rbp + 0x40]
mov qword [rbp + 8], rax
movabs r8, 0xd9b7d419d6dbe0b5
mov qword [rbp + 0x40], r8
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x40], rdx
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x88], rax
movdqa xmm0, xmmword [rbp]
xorps xmm0, xmmword [rbp + 0x80]
movdqa xmmword [rbp], xmm0
mov rcx, qword [0x1800ff988]
movabs rax, 0xa2cfe439a2bac0c8
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x10], rax
movabs rax, 0xf8871e883a16853c
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x40], r8
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x40], rdx
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x98], rax
movdqa xmm0, xmmword [rbp + 0x10]
xorps xmm0, xmmword [rbp + 0x90]
movdqa xmmword [rbp + 0x10], xmm0
movabs rax, 0xad97b07cbab281f3
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x60], rax
movabs rax, 0xd8ef7dfc5b66fd69
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x68], rax
movabs rax, 0xc9b512e71ef497bc
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x70], rax
movabs r9, 0x96ea6c66d25a988
mov qword [rbp + 0x40], r9
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x40], r8
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0x40], rdx
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0xc8], rax
movabs rax, 0xc9b512e71ef497c7
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0x40], r9
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0xd8], rax
vmovdqu ymm0, ymmword [rbp + 0x60]
vpxor ymm1, ymm0, ymmword [rbp + 0xc0]
vmovdqa ymmword [rbp + 0x60], ymm1
lea rax, [rbp]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x10]
lea r8, str.patchNoSwitchAnimation
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0xe0]
vzeroupper
call fcn.18004dd80
nop
cmp qword [rax + 0x18], 0xf
jbe 0x180021b82
mov rax, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
xor esi, esi
mov qword [rbp + 0xb0], rsi
mov qword [rbp + 0xb8], rsi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], sil
jne 0x180021ba3
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.18000cd20
lea rcx, [rbp + 0xa0]
call fcn.18000c4a0
nop
lea rcx, [rbp + 0xe0]
call fcn.180048190
jmp 0x180022165
test bl, bl
je 0x180021f4f
cmp byte [0x1800ffcd8], 0
jne 0x180022165
mov r8d, 4
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.18000d160
mov rbx, rax
lea rax, [0x1800feef0]
xor esi, esi
cmp rax, rbx
je 0x180021c8d
mov rcx, qword [0x1800feef0]
test rcx, rcx
je 0x180021c62
mov rdx, qword [0x1800fef00]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180021c4b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180021cc4
call fcn.1800b2f60
xorps xmm0, xmm0
movdqu xmmword [0x1800feef0], xmm0
mov qword [0x1800fef00], rsi
mov rax, qword [rbx]
mov qword [0x1800feef0], rax
mov rax, qword [rbx + 8]
mov qword [0x1800feef8], rax
mov rax, qword [rbx + 0x10]
mov qword [0x1800fef00], rax
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
je 0x180021ce2
mov rdx, qword [rbp + 0xb0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180021ccb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180021ccb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800b2f60
mov qword [rbp + 0xa0], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xa8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
mov qword [rbp + 0x70], rsi
mov ecx, 4
call fcn.1800b2adc
mov qword [rbp + 0x60], rax
lea rdi, [rax + 4]
mov qword [rbp + 0x70], rdi
mov dword [rax], 0x90909090
mov qword [rbp + 0x68], rdi
mov rbx, qword [0x1800ff988]
sub rdi, qword [rbp + 0x60]
lea r9, [rbp + 0x40]
mov r8d, 0x40
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, rdi
mov rdx, qword [rbp + 0x60]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rbp + 0x40]
mov r8d, dword [rbp + 0x40]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movabs rax, 0xd9b7d419d6dbe0c8
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x10], rax
movabs rdx, 0xf8871e883a16dd06
mov qword [rbp + 0x40], rdx
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x18], rax
movabs r8, 0xd9b7d419d6dbe0b5
mov qword [rbp + 0x40], r8
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x40], rdx
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x98], rax
movdqa xmm0, xmmword [rbp + 0x10]
xorps xmm0, xmmword [rbp + 0x90]
movdqa xmmword [rbp + 0x10], xmm0
mov rcx, qword [0x1800ff988]
movabs rax, 0xa2cfe439a2bac0c8
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp], rax
movabs rax, 0xf8871e883a16853c
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 8], rax
mov qword [rbp + 0x40], r8
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0x40], rdx
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0xe8], rax
movdqa xmm0, xmmword [rbp]
xorps xmm0, xmmword [rbp + 0xe0]
movdqa xmmword [rbp], xmm0
movabs rax, 0xf9d3b171b5af81e5
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x80], rax
movabs rax, 0xf8871e883a16dd7d
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x88], rax
mov qword [rbp + 0x40], r8
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0x40], rdx
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0xa8], rax
movdqa xmm0, xmmword [rbp + 0x80]
xorps xmm0, xmmword [rbp + 0xa0]
movdqa xmmword [rbp + 0x80], xmm0
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rbp]
lea r8, str.patchNoSwitchAnimation
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x20]
call fcn.18004dd80
nop
cmp qword [rax + 0x18], 0xf
jbe 0x180021eb4
mov rax, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd0], rsi
mov qword [rbp + 0xd8], rsi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180021ed3
mov rdx, rax
lea rcx, [rbp + 0xc0]
call fcn.18000cd20
lea rcx, [rbp + 0xc0]
call fcn.18000c4a0
nop
lea rcx, [rbp + 0x20]
call fcn.180048190
mov byte [0x1800ffcd8], 1
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x180022165
mov rdx, qword [rbp + 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180021f45
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180021f45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800b2f60
jmp 0x180022165
cmp byte [0x1800ffcd8], 0
je 0x180022165
mov rbx, qword [0x1800feef8]
sub rbx, qword [0x1800feef0]
lea r9, [rbp + 0x40]
mov r8d, 0x40
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, rbx
mov rdx, qword [0x1800feef0]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rbp + 0x40]
mov r8d, dword [rbp + 0x40]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movabs rax, 0xd9b7d419d6dbe0c8
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x80], rax
movabs rdx, 0xf8871e883a16dd06
mov qword [rbp + 0x40], rdx
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x88], rax
movabs r8, 0xd9b7d419d6dbe0b5
mov qword [rbp + 0x40], r8
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0x40], rdx
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0xa8], rax
movdqa xmm0, xmmword [rbp + 0x80]
xorps xmm0, xmmword [rbp + 0xa0]
movdqa xmmword [rbp + 0x80], xmm0
mov rcx, qword [0x1800ff988]
movabs rax, 0xa2cfe439a2bac0c8
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x10], rax
movabs rax, 0xf8871e883a16853c
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x40], r8
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0x40], rdx
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0xe8], rax
movdqa xmm0, xmmword [rbp + 0x10]
xorps xmm0, xmmword [rbp + 0xe0]
movdqa xmmword [rbp + 0x10], xmm0
movabs rax, 0xbcdfb76db7ab8ee0
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp], rax
movabs rax, 0xf8871e883a6dfd62
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 8], rax
mov qword [rbp + 0x40], r8
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x40], rdx
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x98], rax
movdqa xmm0, xmmword [rbp]
xorps xmm0, xmmword [rbp + 0x90]
movdqa xmmword [rbp], xmm0
lea rax, [rbp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x10]
lea r8, str.patchNoSwitchAnimation
lea rdx, [rbp]
lea rcx, [rbp + 0x20]
call fcn.18004dd80
nop
cmp qword [rax + 0x18], 0xf
jbe 0x180022108
mov rax, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
xor esi, esi
mov qword [rbp + 0xd0], rsi
mov qword [rbp + 0xd8], rsi
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], sil
jne 0x180022130
mov rdx, rax
lea rcx, [rbp + 0xc0]
call fcn.18000cd20
lea rcx, [rbp + 0xc0]
call fcn.18000c4a0
nop
lea rcx, [rbp + 0x20]
call fcn.180048190
mov byte [0x1800ffcd8], 0
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1800b2980
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret