Function at 0x180016040
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r15
push rbp
lea rbp, [rax - 0x58]
sub rsp, 0x150
mov rax, qword [0x180116100]
xor rax, rsp
mov qword [rbp + 0x48], rax
xor r15d, r15d
lea rdi, [0x180116ea0]
cmp byte [0x18011ced2], r15b
je 0x180016190
lea rdx, str.45_______74____0F_______0F_______FE____41_______C3
call fcn.18000c5e0
mov rbx, rax
test rax, rax
je 0x18001612a
mov rcx, rax
mov qword [rsp + 0x28], 0x28
sub rcx, qword [0x18011cf18]
lea rax, str.Aspect_Ratio_Limit:_Address_is_:s:x
cmp qword [0x180116eb8], 0xf
lea r8, [rbp + 0x40]
mov qword [rbp + 0x40], rcx
lea rdx, [rsp + 0x48]
mov rcx, rdi
mov qword [rsp + 0x20], rax
cmova rcx, qword [0x180116ea0]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x20]
call fcn.18001e194
lea r9, [rbp + 0x40]
lea edx, [r15 + 2]
lea r8d, [r15 + 0x40]
lea rcx, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rbp + 0x40]
lea r9, [rbp + 0x40]
lea edx, [r15 + 2]
mov word [rbx + 3], 0x9090
lea rcx, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.1800132c4
lea rcx, str.Aspect_Ratio_Limit:_Patched_instruction.
lea r8d, [r15 + 2]
jmp 0x18001613c
call fcn.1800132c4
lea rcx, str.Aspect_Ratio_Limit:_Pattern_scan_failed.
mov r8d, 4
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x20]
mov rcx, qword [rax + 0x1d8]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], 0x28
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
movups xmm1, xmmword [rsp + 0x30]
mov qword [rsp + 0x40], r15
movsd xmm0, qword [rsp + 0x40]
movsd qword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm1
call fcn.180010b6c
movss xmm0, dword [0x18011cef0]
ucomiss xmm0, dword [0x180105ff8]
jp 0x1800161a7
je 0x1800163a1
lea rdx, str.F3_0F__________03_______F3_0F___________________F3_0F___________________48_8B_______48_8B____83____00_F3_0F___________________F3_0F___________________F3_0F___________________F3_0F_______48_8B_______48_8B____83____00
call fcn.18000c5e0
mov rbx, rax
test rax, rax
je 0x18001633b
mov rcx, rax
mov qword [rsp + 0x28], 0x22
sub rcx, qword [0x18011cf18]
lea rax, str.Gameplay_FOV:_Address_is_:s:x
cmp qword [0x180116eb8], 0xf
lea r8, [rsp + 0x48]
mov qword [rsp + 0x48], rcx
lea rdx, [rbp + 0x40]
cmova rdi, qword [0x180116ea0]
lea rcx, [rsp + 0x20]
mov qword [rbp + 0x40], rdi
mov qword [rsp + 0x20], rax
call fcn.18001e194
mov ecx, dword [0x18011c1a0]
mov rax, qword gs:[0x58]
mov edx, 0x10
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x18011d2a0], eax
jle 0x180016302
lea rcx, [0x18011d2a0]
call fcn.1800581f8
cmp dword [0x18011d2a0], 0xffffffff
jne 0x180016302
xor edx, edx
lea rcx, [0x18011d1d0]
mov r8d, 0xa0
call fcn.180083270
or dword [0x18011d268], 0xffffffff
lea rcx, [0x180086b24]
xorps xmm0, xmm0
mov qword [0x18011d228], r15
xorps xmm1, xmm1
movdqa xmmword [0x18011d1e0], xmm0
movups xmmword [0x18011d278], xmm0
mov qword [0x18011d278], r15
movdqa xmmword [0x18011d280], xmm1
movdqa xmmword [0x18011d1f0], xmm1
movdqa xmmword [0x18011d200], xmm0
movdqa xmmword [0x18011d210], xmm1
movups xmmword [0x18011d238], xmm0
mov qword [0x18011d230], r15
movups xmmword [0x18011d248], xmm0
mov dword [0x18011d220], 0x102
movups xmmword [0x18011d258], xmm0
mov dword [0x18011d26c], r15d
mov qword [0x18011d270], r15
mov qword [0x18011d290], r15
mov qword [0x18011d298], r15
call fcn.180058604
lea rcx, [0x18011d2a0]
call fcn.18005818c
lea rdx, [rbx + 8]
lea r8, [0x1800163c8]
lea rcx, [rsp + 0x70]
call fcn.18001e21c
mov rdx, rax
lea rcx, [0x18011d1d0]
call fcn.180003640
lea rcx, [rbp + 0x18]
call fcn.1800015ec
lea rcx, [rsp + 0x70]
call fcn.1800027a8
jmp 0x1800163a1
call fcn.1800132c4
mov qword [rsp + 0x28], 0x22
lea rcx, str.Gameplay_FOV:_Pattern_scan_failed.
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x20]
movaps xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov rcx, qword [rax + 0x1d8]
mov r8d, 4
movdqa xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
movups xmm1, xmmword [rsp + 0x30]
mov qword [rsp + 0x40], r15
movsd xmm0, qword [rsp + 0x40]
movsd qword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm1
call fcn.180010b6c
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.180058130
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r15, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret