Function at 0x140065460
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x1400a6010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
xor r15d, r15d
mov dword [rsp + 0x48], r15d
lea edx, [r15 + 1]
lea rcx, [0x140065af0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rdx, [rdi + 8]
call fcn.1400141e0
test eax, eax
je 0x140065502
lea r8, str.Pixel_Gun_3D.exe
lea rdx, str.CMain::EntryPoint
lea rcx, str._s:_Failed_to_get_target_process_by_name___s_
call fcn.140013f00
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140076740
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov r8d, dword [rdi + 8]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rdi], rax
test rax, rax
jne 0x14006553b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400144a0
mov r8, rax
lea rdx, str.CMain::EntryPoint
lea rcx, str._s:_Failed_to_open_target_process___s
jmp 0x1400654cb
mov rcx, qword [rdi + 0x38]
call fcn.1400157e0
test eax, eax
jne 0x1400654d0
mov rcx, qword [rdi + 0x18]
call fcn.140068fd0
test eax, eax
jne 0x1400654d0
mov rcx, qword [rdi + 0x28]
call fcn.140066940
test eax, eax
jne 0x1400654d0
mov rcx, qword [rdi + 0x18]
call fcn.14006ce70
test eax, eax
jne 0x1400654d0
lea rcx, [rdi + 0x164]
xor edx, edx
lea r8d, [rax + 1]
call qword [sym.imp.WINMM.dll_PlaySoundA]
cmp dword [0x1400a6aa8], r15d
jne 0x140065941
mov rcx, qword [rdi + 0x20]
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140065941
mov rcx, qword [rdi + 0x20]
mov rcx, qword [rcx + 0x120]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140065941
lea rdx, [rsp + 0x48]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140065925
cmp dword [rsp + 0x48], 0x103
jne 0x140065901
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140065650
nop dword [rax]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [rsp + 0x58], 0x12
je 0x1400658e7
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x140065610
cmp dword [rdi + 0x54], 0
je 0x140065784
cmp dword [rdi + 0x58], 0
jne 0x140065784
mov dword [rdi + 0x58], 1
mov dword [rdi + 0x60], 1
cmp dword [rdi + 0x5c], 0
jne 0x140065754
mov rbx, qword [rdi + 0x20]
mov rcx, rbx
call fcn.140074b40
mov rcx, rbx
call fcn.140074ad0
lea rdx, str.COverlay::OnProcessEnd
lea rcx, [0x140097d60]
call fcn.140013f00
mov rax, qword [rdi + 0x38]
mov r14, qword [rax + 8]
mov ebp, r15d
mov rsi, r15
mov rdx, qword [r14 + 0x10]
mov r10, qword [r14 + 8]
mov rax, rdx
sub rax, r10
sar rax, 8
test rax, rax
je 0x140065741
mov rbx, r15
nop dword [rax + rax]
sub rdx, r10
sar rdx, 8
cmp rdx, rsi
jbe 0x14006594a
cmp dword [rbx + r10 + 0xf0], 0
je 0x14006571b
mov rdx, qword [rbx + r10 + 0x38]
mov r9, qword [rbx + r10 + 0x40]
sub r9, rdx
mov r8, qword [rbx + r10 + 0xe8]
add r8, qword [rbx + r10 + 0xd8]
add r8, qword [rbx + r10 + 0xd0]
mov rcx, qword [r14]
mov rcx, qword [rcx]
call fcn.140066be0
inc ebp
inc rsi
add rbx, 0x100
mov rdx, qword [r14 + 0x10]
mov r10, qword [r14 + 8]
mov rcx, rdx
sub rcx, r10
sar rcx, 8
movsxd rax, ebp
cmp rax, rcx
jb 0x1400656d0
lea rdx, str.CUser::OnProcessEnd
lea rcx, [0x140097d60]
call fcn.140013f00
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rdi + 0x264]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINMM.dll_PlaySoundA]
mov rcx, rdi
call fcn.140065280
mov edx, 0x668
mov rcx, rdi
call fcn.1400767c8
cmp dword [rdi + 0x50], 0
jne 0x140065941
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [rdi + 0x48]
je 0x1400657b2
movzx ecx, byte [rdi + 0x40]
cmp cl, 2
jb 0x1400657ad
mov byte [rdi + 0x40], 0
mov qword [rdi + 0x48], rax
jmp 0x1400657b2
inc cl
mov byte [rdi + 0x40], cl
mov rcx, qword [rdi + 0x30]
call fcn.140013a60
mov rcx, qword [rdi + 0x18]
call fcn.140069a20
mov rsi, qword [rdi + 0x20]
cmp dword [rsi + 0xc8], 0x88760869
jne 0x1400657dc
mov rcx, rsi
call fcn.1400748f0
cmp dword [rsi + 0x1c8], 0x88760869
jne 0x140065875
lea rbx, [rsi + 0x1d0]
mov qword [rsp + 0x40], rbx
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x1400658f8
call fcn.140049280
mov rcx, qword [rsi + 0x1c0]
mov rax, qword [rcx]
lea rdx, [rsi + 0x128]
call qword [rax + 0x80]
test eax, eax
jns 0x140065848
mov ecx, eax
call fcn.140001000
mov r8, rax
lea rdx, str.COverlay::ResetMenuDevice
lea rcx, str._s:_Failed_to_reset_menu_device___s_
call fcn.140013f00
jmp 0x14006586c
mov rax, qword [0x1400a6a98]
test rax, rax
je 0x14006586c
mov rcx, qword [rax + 0x98]
test rcx, rcx
je 0x14006586c
cmp qword [rcx], 0
je 0x14006586c
call fcn.140049020
nop
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
movss xmm0, dword [0x1400a6a84]
addss xmm0, dword [rsi + 0x23c]
movss dword [rsi + 0x23c], xmm0
mov rcx, rsi
call fcn.140074180
test eax, eax
je 0x1400658c7
cvttss2si eax, dword [rsi + 4]
cvttss2si edx, dword [rsi]
cvttss2si r9d, dword [rsi + 0x14]
cvttss2si r8d, dword [rsi + 0x10]
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
xor edx, edx
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rdi + 0x38]
call fcn.140016450
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x1400a6aa8], 0
jmp 0x140065595
mov rcx, rdi
call fcn.140065970
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
lea rdx, str.CMain::EntryPoint
lea rcx, str._s:_Target_process_was_closed__exiting...
call fcn.140013f00
mov dword [rdi + 0x5c], 1
mov eax, 2
jmp 0x1400654d5
lea rdx, str.CMain::EntryPoint
lea rcx, str._s:_Failed_to_get_target_process_exit_code__exiting...
call fcn.140013f00
mov rcx, rdi
call fcn.140065950
int3
mov rcx, rdi
call fcn.140065950
int3
call fcn.140014ac0
int3