Function at 0x18000f600
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x180080920]
xor rax, rsp
mov qword [rbp + 0x17], rax
cmp byte [0x180083adf], 0
mov r12, r8
mov r14d, edx
mov rdi, rcx
jne 0x18000f649
lea rcx, [0x180083ce8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [0x180083adf], 1
mov qword [rsp + 0x88], rbx
lea rcx, [0x180083ce8]
mov qword [rsp + 0x80], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
mov r15b, 1
mov qword [rbp - 0x21], rcx
test r12, r12
je 0x18000f8cd
mov r8, qword [0x1800909e0]
movabs rdx, 0x82fa0be82fa0be83
mov rax, qword [0x1800909d8]
sub r8, rax
imul r8, rdx
movsxd r9, r8d
test r8d, r8d
jle 0x18000f6e0
add rax, 0x13
cmp r8, rcx
jbe 0x18000f92b
mov rdx, qword [rax - 0x12]
cmp rdx, rdi
jne 0x18000f6d4
cmp byte [rax - 0x13], r15b
jne 0x18000f6c9
cmp dword [rax], 1
jbe 0x18000f8cd
cmp rdx, rdi
jne 0x18000f6d4
cmp byte [rax - 0x13], 2
jne 0x18000f6d4
cmp dword [rax], 1
jbe 0x18000f727
inc rcx
add rax, 0x2b
cmp rcx, r9
jl 0x18000f6a3
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp + 7], rax
mov word [rbp + 0xf], ax
mov byte [rbp + 0x11], al
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
cmp r14d, 0x10000000
jae 0x18000f747
mov eax, dword [0x180081340]
cmp eax, 2
je 0x18000f774
cmp eax, 3
jne 0x18000f756
mov r8d, 2
lea rbx, [0x180081344]
mov qword [rbp - 0x10], r8
mov sil, 3
jmp 0x18000f79d
lea rcx, [0x180083ce8]
xor r15b, r15b
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rdi
call sym.TitanEngine.dll_EnableBPX
movzx ebx, al
jmp 0x18000f8cf
mov eax, r14d
and eax, 0xff000000
cmp eax, 0x10000000
jne 0x18000f76d
mov r8d, 1
lea rbx, [0x180081346]
mov qword [rbp - 0x10], r8
movzx esi, r15b
jmp 0x18000f79d
cmp eax, 0x20000000
jne 0x18000f78a
mov r8d, 2
lea rbx, [0x180081348]
mov qword [rbp - 0x10], r8
mov sil, 2
jmp 0x18000f79d
cmp eax, 0x30000000
je 0x18000f711
mov r8, qword [rbp - 0x10]
movzx esi, byte [rbp - 0x25]
mov rbx, qword [rbp - 0x21]
mov rcx, qword [0x180082d08]
lea rax, [rbp - 0x29]
mov r9d, 0x40
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18000f8cd
mov r9, qword [rbp - 0x10]
lea rax, [rbp - 0x21]
mov rcx, qword [0x180082d08]
lea r8, [rbp - 8]
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x180082d08]
mov rdx, rdi
test eax, eax
je 0x18000f910
mov r9, qword [rbp - 0x10]
lea rax, [rbp - 0x21]
mov r8, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [0x180082d08]
test eax, eax
je 0x18000f8b3
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rdx, qword [0x1800909e0]
cmp rdx, qword [0x1800909e8]
movzx eax, sil
mov dword [rbp - 2], eax
movzx eax, r14b
mov dword [rbp - 6], eax
mov byte [rbp - 0x19], r15b
mov qword [rbp - 0x18], rdi
mov qword [rbp + 6], r12
je 0x18000f883
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp - 9]
movups xmmword [rdx + 0x10], xmm1
movsd xmm0, qword [rbp + 7]
movsd qword [rdx + 0x20], xmm0
movzx eax, word [rbp + 0xf]
mov word [rdx + 0x28], ax
movzx eax, byte [rbp + 0x11]
mov byte [rdx + 0x2a], al
add qword [0x1800909e0], 0x2b
jmp 0x18000f88c
lea r8, [rbp - 0x19]
call fcn.1800113e0
mov r9d, dword [rbp - 0x29]
lea rax, [rbp - 0x29]
mov r8, qword [rbp - 0x10]
mov rdx, rdi
mov rcx, qword [0x180082d08]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
movzx ebx, r15b
jmp 0x18000f8cf
mov r9d, dword [rbp - 0x29]
lea rax, [rbp - 0x29]
mov r8, qword [rbp - 0x10]
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
xor bl, bl
test r15b, r15b
je 0x18000f8e1
lea rcx, [0x180083ce8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, qword [rsp + 0x80]
movzx eax, bl
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.180049ad0
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov r9d, dword [rbp - 0x29]
lea rax, [rbp - 0x29]
mov r8, qword [rbp - 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
xor bl, bl
jmp 0x18000f8d4
call fcn.180005850
int3