Function at 0x180022190
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 [0x1800ffe28], edx
jle 0x180022214
lea rcx, [0x1800ffe28]
call fcn.1800b2a48
cmp dword [0x1800ffe28], 0xffffffff
jne 0x180022214
lea rcx, [0x1800ba3d0]
call fcn.1800b2f40
lea rcx, [0x1800ffe28]
call fcn.1800b29dc
mov rdi, qword [0x1800ff208]
test rdi, rdi
jne 0x180022429
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 [0x1800ff208]
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.patchFluxSwing
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0xe0]
vzeroupper
call fcn.18004dd80
nop
cmp qword [rax + 0x18], 0xf
jbe 0x1800223d2
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 0x1800223f3
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 0x1800229bb
test bl, bl
je 0x1800227ac
cmp byte [0x1800ffcc8], 0
jne 0x1800229bb
mov r8d, 5
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.18000d160
mov rbx, rax
lea rax, [0x1800ffd58]
xor esi, esi
cmp rax, rbx
je 0x1800224dd
mov rcx, qword [0x1800ffd58]
test rcx, rcx
je 0x1800224b2
mov rdx, qword [0x1800ffd68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002249b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180022514
call fcn.1800b2f60
xorps xmm0, xmm0
movdqu xmmword [0x1800ffd58], xmm0
mov qword [0x1800ffd68], rsi
mov rax, qword [rbx]
mov qword [0x1800ffd58], rax
mov rax, qword [rbx + 8]
mov qword [0x1800ffd60], rax
mov rax, qword [rbx + 0x10]
mov qword [0x1800ffd68], rax
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
je 0x180022532
mov rdx, qword [rbp + 0xb0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002251b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002251b
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, 5
call fcn.1800b2adc
mov qword [rbp + 0x60], rax
lea rdi, [rax + 5]
mov qword [rbp + 0x70], rdi
movabs rcx, 0x9090909090909090
mov dword [rax], ecx
mov byte [rax + 4], cl
mov qword [rbp + 0x68], rdi
mov rbx, qword [0x1800ff208]
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 [0x1800ff208]
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.patchFluxSwing
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x20]
call fcn.18004dd80
nop
cmp qword [rax + 0x18], 0xf
jbe 0x18002270d
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
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180022730
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 [0x1800ffcc8], 1
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x1800229bb
mov rdx, qword [rbp + 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800227a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800227a2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800b2f60
jmp 0x1800229bb
cmp byte [0x1800ffcc8], 0
je 0x1800229bb
mov rbx, qword [0x1800ffd60]
sub rbx, qword [0x1800ffd58]
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 [0x1800ffd58]
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 [0x1800ff208]
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.patchFluxSwing
lea rdx, [rbp]
lea rcx, [rbp + 0x20]
call fcn.18004dd80
nop
cmp qword [rax + 0x18], 0xf
jbe 0x180022965
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
inc r8
cmp byte [rax + r8], sil
jne 0x180022986
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 [0x1800ffcc8], 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