Function at 0x401f45
Capabilities:
Set console window title

Disassembly:
push rbp
push rbx
sub rsp, 0x378
lea rbp, [rsp + 0x80]
call sym.__main
lea rcx, str.PG3D_Injector_by_Dari
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call rax
lea rax, [rbp - 0x20]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp + 0xef]
mov rcx, rax
call fcn.00460410
lea rcx, [rbp + 0xef]
lea rdx, [rbp - 0x20]
lea rax, [rbp - 0x40]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0xef]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp - 0x40]
mov r8, 0xffffffffffffffff
lea rdx, [0x004a7218]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.find_last_of_char_const__unsigned_long_long__const
mov qword [rbp + 0x2e0], rax
cmp qword [rbp + 0x2e0], 0xffffffffffffffff
je 0x40202e
lea rax, [rbp + 0xf0]
mov rcx, qword [rbp + 0x2e0]
lea rdx, [rbp - 0x40]
mov r9, rcx
mov r8d, 0
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.substr_unsigned_long_long__unsigned_long_long__const
lea rdx, [rbp + 0xf0]
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.operator_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea rax, [rbp + 0xf0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x110]
lea rdx, [rbp - 0x40]
lea r8, [0x004a721b]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
lea rax, [rbp - 0x60]
lea rdx, [rbp + 0x110]
lea r8, str.AsteroidPC.dll
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, char const*)
lea rax, [rbp + 0x110]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp - 0x60]
mov rcx, rax
call dbg.fileExists(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
xor eax, 1
test al, al
je 0x4020d3
lea rax, [rbp + 0x130]
lea rdx, [rbp - 0x60]
mov r8, rdx
lea rdx, str.DLL_file_not_found:
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____char_const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp + 0x130]
mov rcx, rax
call dbg.void log<(ConsoleColor)12>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
lea rax, [rbp + 0x130]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
mov ecx, 0xa
call dbg.countdown(int)
mov ebx, 1
jmp 0x4024c0
lea rax, [rbp + 0x17f]
mov rcx, rax
call fcn.00460410
lea rdx, [rbp + 0x17f]
lea rax, [rbp + 0x150]
mov r8, rdx
lea rdx, str.Checking_if_Pixel_Gun_3D_is_already_running...
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x150]
mov rcx, rax
call dbg.void log<(ConsoleColor)11>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
lea rax, [rbp + 0x150]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x17f]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp + 0x1af]
mov rcx, rax
call fcn.00460410
lea rdx, [rbp + 0x1af]
lea rax, [rbp + 0x180]
mov r8, rdx
lea rdx, str.Pixel_Gun_3D.exe
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x180]
mov rcx, rax
call dbg.GetProcessID(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
mov dword [rbp + 0x2ec], eax
lea rax, [rbp + 0x180]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x1af]
mov rcx, rax
call sym.std::allocator_char_::allocator__
cmp dword [rbp + 0x2ec], 0
jne 0x402307
lea rax, [rbp + 0x1df]
mov rcx, rax
call fcn.00460410
lea rdx, [rbp + 0x1df]
lea rax, [rbp + 0x1b0]
mov r8, rdx
lea rdx, str.Pixel_Gun_3D_not_found._Launching_the_game...
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x1b0]
mov rcx, rax
call dbg.void log<(ConsoleColor)14>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
lea rax, [rbp + 0x1b0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x1df]
mov rcx, rax
call sym.std::allocator_char_::allocator__
call dbg.launchGame()
cmp dword [rbp + 0x2ec], 0
jne 0x402307
lea rax, [rbp + 0x20f]
mov rcx, rax
call fcn.00460410
lea rdx, [rbp + 0x20f]
lea rax, [rbp + 0x1e0]
mov r8, rdx
lea rdx, str.Pixel_Gun_3D.exe
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x1e0]
mov rcx, rax
call dbg.GetProcessID(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
mov dword [rbp + 0x2ec], eax
lea rax, [rbp + 0x1e0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x20f]
mov rcx, rax
call sym.std::allocator_char_::allocator__
cmp dword [rbp + 0x2ec], 0
jne 0x4021ff
lea rax, [rbp + 0x23f]
mov rcx, rax
call fcn.00460410
lea rdx, [rbp + 0x23f]
lea rax, [rbp + 0x210]
mov r8, rdx
lea rdx, str.Waiting_for_Pixel_Gun_3D_to_start...
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x210]
mov rcx, rax
call dbg.void log<(ConsoleColor)14>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
lea rax, [rbp + 0x210]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x23f]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov dword [rbp + 0x24c], 2
lea rdx, [rbp + 0x24c]
lea rax, [rbp + 0x240]
mov rcx, rax
call dbg.std::chrono::duration<long long, std::ratio<1ll, 1ll> >::duration<int, void>(int const&)
lea rax, [rbp + 0x240]
mov rcx, rax
call dbg.void std::this_thread::sleep_for<long long, std::ratio<1ll, 1ll> >(std::chrono::duration<long long, std::ratio<1ll, 1ll> > const&)
jmp 0x4021ff
lea rax, [rbp + 0x27f]
mov rcx, rax
call fcn.00460410
lea rdx, [rbp + 0x27f]
lea rax, [rbp + 0x250]
mov r8, rdx
lea rdx, str.Pixel_Gun_3D_process_found_
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x250]
mov rcx, rax
call dbg.void log<(ConsoleColor)11>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
lea rax, [rbp + 0x250]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x27f]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov eax, dword [rbp + 0x2ec]
mov r8d, eax
mov edx, 0
mov ecx, 0x1f0fff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x2d8], rax
cmp qword [rbp + 0x2d8], 0
jne 0x402400
lea rax, [rbp + 0x2af]
mov rcx, rax
call fcn.00460410
lea rdx, [rbp + 0x2af]
lea rax, [rbp + 0x280]
mov r8, rdx
lea rdx, str.Error_opening_Pixel_Gun_3D_process.
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x280]
mov rcx, rax
call dbg.void log<(ConsoleColor)12>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
lea rax, [rbp + 0x280]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x2af]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov ecx, 0xa
call dbg.countdown(int)
mov ebx, 1
jmp 0x4024c0
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0x2d8]
mov rdx, rax
call dbg.injectDLL(void*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
xor eax, 1
test al, al
je 0x40249e
lea rax, [rbp + 0x2d7]
mov rcx, rax
call fcn.00460410
lea rdx, [rbp + 0x2d7]
lea rax, [rbp + 0x2b0]
mov r8, rdx
lea rdx, str.DLL_injection_failed.
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x2b0]
mov rcx, rax
call dbg.void log<(ConsoleColor)12>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
lea rax, [rbp + 0x2b0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x2d7]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov rax, qword [rbp + 0x2d8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov ecx, 0xa
call dbg.countdown(int)
mov ebx, 1
jmp 0x4024c0
mov rax, qword [rbp + 0x2d8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov ecx, 0xa
call dbg.countdown(int)
mov ebx, 0
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
mov eax, ebx
jmp 0x4026a1
add rsp, 0x378
pop rbx
pop rbp
ret