Function at 0x140001540
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rbp + 0xf], rax
xor r12d, r12d
lea rdx, str.Mouse_Assistance_Program_started._Use_the_following_keys_to_switch_modes:_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001b20
lea rdx, str._1__Recoil_Compensation_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001b20
lea rdx, str._2__Prediction_Mode_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001b20
lea rdx, str._3__None__disable_all__n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001b20
lea rdx, str.Press_Enter_to_stop_the_program.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001b20
mov rcx, rax
lea rdx, [0x140001d00]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 8
call fcn.140002160
lea rcx, [0x1400012e0]
mov qword [rax], rcx
mov qword [rbp - 0x49], rax
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x140002100]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x29], rax
test rax, rax
je 0x140001a9d
mov ecx, 8
call fcn.140002160
lea rcx, [0x140001460]
mov qword [rax], rcx
mov qword [rbp - 0x49], rax
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x140002100]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x39], rax
test rax, rax
je 0x140001a8d
movzx eax, byte [0x1400060b4]
test al, al
je 0x140001972
movsd xmm7, qword [0x1400045d8]
movsd xmm8, qword [0x1400045e0]
nop
mov ecx, dword [0x140006760]
sub ecx, 1
je 0x14000181a
cmp ecx, 2
je 0x1400016ca
mov qword [rbp - 0x49], 0x64
lea rcx, [rbp - 0x49]
call fcn.140001d40
jmp 0x140001963
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rax
movzx eax, byte [0x1400060b4]
test al, al
je 0x140001963
mov qword [rbp - 0x49], 0x32
mov r11, qword [0x140006788]
cmp r11, 2
jb 0x1400017fd
mov r8, qword [0x140006780]
lea rcx, [r8 - 1]
add rcx, r11
mov r9, qword [0x140006778]
dec r9
mov rax, rcx
shr rax, 1
and rax, r9
and ecx, 1
mov rdx, qword [0x140006770]
mov rax, qword [rdx + rax*8]
mov r10, qword [rax + rcx*8]
lea rcx, [r8 - 2]
add rcx, r11
mov rax, rcx
shr rax, 1
and rax, r9
and ecx, 1
mov rax, qword [rdx + rax*8]
mov r8, qword [rax + rcx*8]
mov ecx, r10d
sub ecx, r8d
mov rdx, r10
shr rdx, 0x20
shr r8, 0x20
mov eax, edx
sub eax, r8d
add ecx, r10d
lea r8d, [rdx + rax]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp - 0x11], edx
mov eax, 0x66666667
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp - 0xd], edx
mov dword [rbp - 5], 1
mov r8d, 0x28
lea rdx, [rbp - 0x19]
mov ecx, 1
call qword [sym.imp.USER32.dll_SendInput]
lea rdx, str._Prediction__Predicted_position_correction:_X
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001b20
mov rcx, rax
mov edx, dword [rbp - 0x11]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, str.__Y
call fcn.140001b20
mov rcx, rax
mov edx, dword [rbp - 0xd]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001d00]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, [rbp - 0x49]
call fcn.140001d40
movzx eax, byte [0x1400060b4]
test al, al
jne 0x1400016f2
jmp 0x140001963
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rax
mov r15d, r12d
movzx eax, byte [0x1400060b4]
test al, al
je 0x140001963
mov qword [rbp - 0x49], 0xa
mov rcx, qword [0x140006788]
cmp rcx, 2
jb 0x14000194b
mov rax, qword [0x140006780]
lea rsi, [rax - 2]
add rsi, rcx
lea r14, [rax - 1]
add r14, rcx
mov rdx, qword [0x140006778]
dec rdx
mov rax, rsi
shr rax, 1
and rax, rdx
and esi, 1
mov rcx, qword [0x140006770]
mov rdi, qword [rcx + rax*8]
mov rax, r14
shr rax, 1
and rax, rdx
and r14d, 1
mov rbx, qword [rcx + rax*8]
mov eax, dword [rbx + r14*8 + 4]
sub eax, dword [rdi + rsi*8 + 4]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movaps xmm6, xmm0
mov eax, dword [rbx + r14*8]
sub eax, dword [rdi + rsi*8]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
addsd xmm6, xmm0
xorps xmm1, xmm1
ucomisd xmm1, xmm6
ja 0x1400018e6
xorps xmm0, xmm0
sqrtsd xmm0, xmm6
jmp 0x1400018ee
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
comisd xmm0, xmm8
jb 0x140001948
inc r15d
cmp r15d, 3
jl 0x14000194b
mov dword [rbp - 0x11], r12d
mov dword [rbp - 0xd], 0xfffffffb
mov dword [rbp - 5], 1
mov r8d, 0x28
lea rdx, [rbp - 0x19]
mov ecx, 1
call qword [sym.imp.USER32.dll_SendInput]
lea rdx, str._Recoil__Correction_applied.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001b20
mov rcx, rax
lea rdx, [0x140001d00]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r15d, r12d
lea rcx, [rbp - 0x49]
call fcn.140001d40
movzx eax, byte [0x1400060b4]
test al, al
jne 0x140001845
movzx eax, byte [0x1400060b4]
test al, al
jne 0x1400016a0
cmp dword [rbp - 0x21], 0
je 0x140001a81
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 0x21], eax
je 0x140001a75
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x49], xmm0
xor edx, edx
lea rcx, [rbp - 0x49]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x140001a69
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x29], xmm0
cmp dword [rbp - 0x31], eax
je 0x140001a81
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 0x31], eax
je 0x140001a75
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x49], xmm0
xor edx, edx
lea rcx, [rbp - 0x49]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x140001a69
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x39], xmm0
lea rdx, str.Program_terminated.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001b20
mov rcx, rax
lea rdx, [0x140001d00]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
cmp dword [rbp - 0x31], 0
je 0x140001a1e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
cmp dword [rbp - 0x21], 0
je 0x140001a2b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
xor eax, eax
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140002140
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x31], r12d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x21], r12d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3