Function at 0x180046630
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
test edx, edx
je 0x180046901
cmp edx, 1
jne 0x180046a31
lea ecx, [rdx + 0xf]
call fcn.18004a4dc
mov qword [rsp + 0x58], rax
xor edi, edi
test rax, rax
je 0x18004666e
mov rcx, rax
call fcn.180006790
jmp 0x180046671
mov rax, rdi
mov qword [0x18006a3f0], rax
lea rdx, str._insecure
mov rcx, rax
call fcn.1800067d0
xor ecx, ecx
test eax, eax
jne 0x1800466f0
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 0x1800466d2
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, rax
lea rcx, [0x18006a758]
call fcn.180007fa0
cmp qword [0x180067b28], 0
jne 0x18004673f
cmp qword [0x180067b50], 0
jne 0x18004673f
cmp qword [0x180067b78], 0
jne 0x18004673f
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 0x180046750
mov eax, 1
jmp 0x18004675a
mov ecx, 0x20
cmp eax, ecx
cmovg eax, ecx
dec eax
movsxd rsi, eax
lea rdx, str._afxThreadPoolSize
mov rcx, qword [0x18006a3f0]
call fcn.1800067d0
test eax, eax
je 0x1800467a8
lea ebx, [rax + 1]
mov rcx, qword [0x18006a3f0]
call fcn.180006840
cmp ebx, eax
jge 0x1800467a8
mov edx, ebx
mov rcx, qword [0x18006a3f0]
call fcn.180006850
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.18004a4dc
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1800467c9
mov rdx, rsi
mov rcx, rax
call fcn.180042a60
jmp 0x1800467cc
mov rax, rdi
mov qword [0x18006a3c8], rax
mov ecx, 0x80
call fcn.18004a4dc
mov rsi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x180046875
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.18004a4dc
mov qword [rax + 8], rdi
mov qword [rbx], rax
mov qword [rax], rbx
jmp 0x180046878
mov rsi, rdi
mov qword [0x18006a3d0], rsi
mov ecx, 0x78
call fcn.18004a4dc
mov rbx, rax
test rax, rax
je 0x1800468e6
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 0x1800468e9
mov rbx, rdi
mov qword [0x18006a3c0], rbx
lea rcx, vtable.CCampathDrawer.0
call fcn.18003e340
jmp 0x180046a31
lea rcx, vtable.CCampathDrawer.0
call fcn.18003f480
mov rbx, qword [0x18006a450]
test rbx, rbx
je 0x18004692e
mov rcx, rbx
call fcn.1800139b0
mov edx, pe_nt_image_headers64
mov rcx, rbx
call fcn.18004a518
mov rbx, qword [0x18006a448]
test rbx, rbx
je 0x18004694f
mov rcx, rbx
call fcn.1800139f0
mov edx, 0x230
mov rcx, rbx
call fcn.18004a518
mov rbx, qword [0x18006a3c0]
test rbx, rbx
je 0x180046970
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_destroy_in_situ
mov edx, 0x78
mov rcx, rbx
call fcn.18004a518
mov rbx, qword [0x18006a3d0]
test rbx, rbx
je 0x180046a1b
lea rax, vtable.advancedfx::CImageBufferPoolThreadSafe.0
mov qword [rbx], rax
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x1800469fc
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 0x1800469e8
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.18004a518
mov rcx, qword [rbx + 0x78]
sub rcx, 1
mov qword [rbx + 0x78], rcx
jne 0x1800469a0
xor edi, edi
mov qword [rbx + 0x70], rdi
lea rcx, [rbx + 0x58]
call fcn.180042df0
lea rcx, [rbx + 8]
call sub.MSVCP140.dll__Mtx_destroy_in_situ
mov edx, 0x80
mov rcx, rbx
call fcn.18004a518
mov rcx, qword [0x18006a3c8]
test rcx, rcx
je 0x180046a31
mov edx, 1
call fcn.180043190
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret