Function at 0x1800465c0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
test edx, edx
je 0x180046891
cmp edx, 1
jne 0x1800469c1
lea ecx, [rdx + 0xf]
call fcn.18004a46c
mov qword [rsp + 0x58], rax
xor edi, edi
test rax, rax
je 0x1800465fe
mov rcx, rax
call fcn.1800067c0
jmp 0x180046601
mov rax, rdi
mov qword [0x18006a3a8], rax
lea rdx, str._insecure
mov rcx, rax
call fcn.180006800
xor ecx, ecx
test eax, eax
jne 0x180046680
lea r9d, [rcx + 0x10]
lea r8, str.Error___AfxHookSource2
lea rdx, str.Please_add__insecure_to_launch_options__AfxHookSource2_will_refuse_to_work_without_it_
call qword [sym.imp.USER32.dll_MessageBoxA]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
mov edx, 1
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x10
lea r8, str.Cannot_terminate__please_help:
lea rdx, str.Please_terminate_the_game_manually_in_the_taskmanager_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x180046662
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, rax
lea rcx, [0x18006a718]
call fcn.180007fd0
cmp qword [0x180067b50], 0
jne 0x1800466cf
cmp qword [0x180067b78], 0
jne 0x1800466cf
cmp qword [0x180067ba0], 0
jne 0x1800466cf
mov r9d, 0x10
lea r8, str.Error___AfxHookSource2
lea rdx, str.Something_went_wrong.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call sub.MSVCP140.dll__Thrd_hardware_concurrency
cmp eax, 1
jge 0x1800466e0
mov eax, 1
jmp 0x1800466ea
mov ecx, 0x20
cmp eax, ecx
cmovg eax, ecx
dec eax
movsxd rsi, eax
lea rdx, str._afxThreadPoolSize
mov rcx, qword [0x18006a3a8]
call fcn.180006800
test eax, eax
je 0x180046738
lea ebx, [rax + 1]
mov rcx, qword [0x18006a3a8]
call fcn.180006870
cmp ebx, eax
jge 0x180046738
mov edx, ebx
mov rcx, qword [0x18006a3a8]
call fcn.180006880
mov rcx, rax
xor edx, edx
lea r8d, [rdx + 0xa]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
mov esi, eax
mov ecx, 0xe0
call fcn.18004a46c
mov qword [rsp + 0x58], rax
test rax, rax
je 0x180046759
mov rdx, rsi
mov rcx, rax
call fcn.180042a90
jmp 0x18004675c
mov rax, rdi
mov qword [0x18006a380], rax
mov ecx, 0x80
call fcn.18004a46c
mov rsi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x180046805
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x70], xmm0
lea rax, vtable.advancedfx::CImageBufferPoolThreadSafe.0
mov qword [rsi], rax
lea rcx, [rsi + 8]
mov dword [rcx], edi
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
movups xmmword [rcx + 0x18], xmm0
movups xmmword [rcx + 0x28], xmm0
movups xmmword [rcx + 0x38], xmm0
mov qword [rcx + 0x48], rdi
mov edx, 2
call sub.MSVCP140.dll__Mtx_init_in_situ
nop
lea rbx, [rsi + 0x58]
mov qword [rsp + 0x20], rbx
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x20], rdi
mov ecx, 0x10
call fcn.18004a46c
mov qword [rax + 8], rdi
mov qword [rbx], rax
mov qword [rax], rbx
jmp 0x180046808
mov rsi, rdi
mov qword [0x18006a388], rsi
mov ecx, 0x78
call fcn.18004a46c
mov rbx, rax
test rax, rax
je 0x180046876
xor eax, eax
mov qword [rbx], rax
xorps xmm0, xmm0
movups xmmword [rbx + 0x50], xmm0
movups xmmword [rbx + 0x60], xmm0
mov qword [rbx + 0x70], rax
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
movups xmmword [rbx + 0x18], xmm0
movups xmmword [rbx + 0x28], xmm0
movups xmmword [rbx + 0x38], xmm0
mov qword [rbx + 0x48], rdi
lea edx, [rax + 2]
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_init_in_situ
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], rdi
mov qword [rbx + 0x60], rdi
mov qword [rbx + 0x68], 0xc8
mov qword [rbx + 0x70], 0xf0
jmp 0x180046879
mov rbx, rdi
mov qword [0x18006a378], rbx
lea rcx, vtable.CCampathDrawer.0
call fcn.18003e370
jmp 0x1800469c1
lea rcx, vtable.CCampathDrawer.0
call fcn.18003f4b0
mov rbx, qword [0x18006a408]
test rbx, rbx
je 0x1800468be
mov rcx, rbx
call fcn.1800139e0
mov edx, pe_nt_image_headers64
mov rcx, rbx
call fcn.18004a4a8
mov rbx, qword [0x18006a400]
test rbx, rbx
je 0x1800468df
mov rcx, rbx
call fcn.180013a20
mov edx, 0x230
mov rcx, rbx
call fcn.18004a4a8
mov rbx, qword [0x18006a378]
test rbx, rbx
je 0x180046900
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_destroy_in_situ
mov edx, 0x78
mov rcx, rbx
call fcn.18004a4a8
mov rbx, qword [0x18006a388]
test rbx, rbx
je 0x1800469ab
lea rax, vtable.advancedfx::CImageBufferPoolThreadSafe.0
mov qword [rbx], rax
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x18004698c
lea rsi, vtable.advancedfx::CImageBuffer.0
nop word [rax + rax]
mov rdx, qword [rbx + 0x70]
dec rdx
add rdx, rcx
mov rcx, rdx
shr rcx, 1
mov rax, qword [rbx + 0x68]
dec rax
and rcx, rax
mov rax, qword [rbx + 0x60]
and edx, 1
mov rax, qword [rax + rcx*8]
mov rdi, qword [rax + rdx*8]
test rdi, rdi
je 0x180046978
mov qword [rdi], rsi
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, 0x40
mov rcx, rdi
call fcn.18004a4a8
mov rcx, qword [rbx + 0x78]
sub rcx, 1
mov qword [rbx + 0x78], rcx
jne 0x180046930
xor edi, edi
mov qword [rbx + 0x70], rdi
lea rcx, [rbx + 0x58]
call fcn.180042e20
lea rcx, [rbx + 8]
call sub.MSVCP140.dll__Mtx_destroy_in_situ
mov edx, 0x80
mov rcx, rbx
call fcn.18004a4a8
mov rcx, qword [0x18006a380]
test rcx, rcx
je 0x1800469c1
mov edx, 1
call fcn.1800431c0
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret