Function at 0x180046060
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test edx, edx
je 0x180046331
cmp edx, 1
jne 0x180046485
lea ecx, [rdx + 0xf]
call fcn.180049f4c
mov qword [rsp + 0x68], rax
xor edi, edi
test rax, rax
je 0x18004609e
mov rcx, rax
call fcn.180006280
jmp 0x1800460a1
mov rax, rdi
mov qword [0x18006a360], rax
lea rdx, str._insecure
mov rcx, rax
call fcn.1800062c0
xor ecx, ecx
test eax, eax
jne 0x180046120
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 0x180046102
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, rax
lea rcx, [0x18006a718]
call fcn.180007a90
cmp qword [0x180067ba0], 0
jne 0x18004616f
cmp qword [0x180067bc8], 0
jne 0x18004616f
cmp qword [0x180067bf0], 0
jne 0x18004616f
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 0x180046180
mov eax, 1
jmp 0x18004618a
mov ecx, 0x20
cmp eax, ecx
cmovg eax, ecx
dec eax
movsxd rsi, eax
lea rdx, str._afxThreadPoolSize
mov rcx, qword [0x18006a360]
call fcn.1800062c0
test eax, eax
je 0x1800461d8
lea ebx, [rax + 1]
mov rcx, qword [0x18006a360]
call fcn.180006330
cmp ebx, eax
jge 0x1800461d8
mov edx, ebx
mov rcx, qword [0x18006a360]
call fcn.180006340
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.180049f4c
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1800461f9
mov rdx, rsi
mov rcx, rax
call fcn.180042500
jmp 0x1800461fc
mov rax, rdi
mov qword [0x18006a340], rax
mov ecx, 0x80
call fcn.180049f4c
mov rsi, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1800462a5
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.180049f4c
mov qword [rax + 8], rdi
mov qword [rbx], rax
mov qword [rax], rbx
jmp 0x1800462a8
mov rsi, rdi
mov qword [0x18006a348], rsi
mov ecx, 0x78
call fcn.180049f4c
mov rbx, rax
test rax, rax
je 0x180046316
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 0x180046319
mov rbx, rdi
mov qword [0x18006a430], rbx
lea rcx, vtable.CCampathDrawer.0
call fcn.18003ddd0
jmp 0x180046485
lea rcx, vtable.CCampathDrawer.0
call fcn.18003ef10
mov rbx, qword [0x18006a3b8]
test rbx, rbx
je 0x18004635e
mov rcx, rbx
call fcn.180013490
mov edx, pe_nt_image_headers64
mov rcx, rbx
call fcn.180049f88
mov rbx, qword [0x18006a3b0]
test rbx, rbx
je 0x18004637f
mov rcx, rbx
call fcn.1800134d0
mov edx, 0x230
mov rcx, rbx
call fcn.180049f88
mov rbx, qword [0x18006a430]
test rbx, rbx
je 0x1800463a0
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_destroy_in_situ
mov edx, 0x78
mov rcx, rbx
call fcn.180049f88
mov rbx, qword [0x18006a348]
test rbx, rbx
je 0x18004646f
lea rax, vtable.advancedfx::CImageBufferPoolThreadSafe.0
mov qword [rbx], rax
cmp qword [rbx + 0x78], 0
je 0x18004644d
lea rax, [rbx + 0x58]
mov qword [rsp + 0x20], rax
lea rsi, vtable.advancedfx::CImageBuffer.0
nop word [rax + rax]
mov rdx, qword [rbx + 0x78]
add rdx, qword [rbx + 0x70]
mov qword [rsp + 0x28], rdx
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rdx - 1]
mov rdx, r8
shr rdx, 1
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + 0x10]
dec rax
and rdx, rax
mov rax, qword [rcx + 8]
and r8d, 1
mov rax, qword [rax + rdx*8]
mov rdi, qword [rax + r8*8]
test rdi, rdi
je 0x180046440
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.180049f88
sub qword [rbx + 0x78], 1
jne 0x1800463e0
xor edi, edi
mov qword [rbx + 0x70], rdi
mov rcx, rbx
add rcx, 0x58
call fcn.180042890
lea rcx, [rbx + 8]
call sub.MSVCP140.dll__Mtx_destroy_in_situ
mov edx, 0x80
mov rcx, rbx
call fcn.180049f88
mov rcx, qword [0x18006a340]
test rcx, rcx
je 0x180046485
mov edx, 1
call fcn.180042c30
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret