Function at 0x401aa6
Capabilities:
Set console window title

Disassembly:
push rbp
push rbx
sub rsp, 0x238
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.0041a140
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, [0x00422218]
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 + 0x1a0], rax
cmp qword [rbp + 0x1a0], 0xffffffffffffffff
je 0x401b8f
lea rax, [rbp + 0xf0]
mov rcx, qword [rbp + 0x1a0]
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, [0x0042221b]
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.astronomity.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 0x401c24
lea rcx, str.DLL_file_not_found.
call dbg.void log<(ConsoleColor)12>(char const*)
lea rdx, str.astronomity.dll
lea rcx, str._s__n
call dbg.printf
lea rcx, str.Ensure_that_the_DLL_is_in_the_same_folder_as_the_injector.
call dbg.void log<(ConsoleColor)11>(char const*)
mov ecx, 0xa
call dbg.countdown(int)
mov ebx, 1
jmp 0x401e2a
lea rcx, str.Checking_if_Pixel_Gun_3D_is_already_running...
call dbg.void log<(ConsoleColor)11>(char const*)
lea rax, [rbp + 0x15f]
mov rcx, rax
call fcn.0041a140
lea rdx, [rbp + 0x15f]
lea rax, [rbp + 0x130]
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 + 0x130]
mov rcx, rax
call dbg.GetProcessID(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
mov dword [rbp + 0x1ac], eax
lea rax, [rbp + 0x130]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x15f]
mov rcx, rax
call sym.std::allocator_char_::allocator__
cmp dword [rbp + 0x1ac], 0
jne 0x401d68
lea rcx, str.Pixel_Gun_3D_not_found._Launching_the_game...
call dbg.void log<(ConsoleColor)14>(char const*)
call dbg.launchGame()
cmp dword [rbp + 0x1ac], 0
jne 0x401d68
lea rax, [rbp + 0x187]
mov rcx, rax
call fcn.0041a140
lea rdx, [rbp + 0x187]
lea rax, [rbp + 0x160]
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 + 0x160]
mov rcx, rax
call dbg.GetProcessID(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
mov dword [rbp + 0x1ac], eax
lea rax, [rbp + 0x160]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x187]
mov rcx, rax
call sym.std::allocator_char_::allocator__
cmp dword [rbp + 0x1ac], 0
jne 0x401cb0
lea rcx, str.Waiting_for_Pixel_Gun_3D_to_start...
call dbg.void log<(ConsoleColor)14>(char const*)
mov dword [rbp + 0x194], 2
lea rdx, [rbp + 0x194]
lea rax, [rbp + 0x188]
mov rcx, rax
call dbg.std::chrono::duration<long long, std::ratio<1ll, 1ll> >::duration<int, void>(int const&)
lea rax, [rbp + 0x188]
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 0x401cb0
lea rcx, str.Pixel_Gun_3D_process_found_
call dbg.void log<(ConsoleColor)11>(char const*)
mov eax, dword [rbp + 0x1ac]
mov r8d, eax
mov edx, 0
mov ecx, 0x1f0fff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x198], rax
cmp qword [rbp + 0x198], 0
jne 0x401dbe
lea rcx, str.Error_opening_Pixel_Gun_3D_process.
call dbg.void log<(ConsoleColor)12>(char const*)
mov ecx, 0xa
call dbg.countdown(int)
mov ebx, 1
jmp 0x401e2a
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0x198]
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 0x401e08
lea rcx, str.DLL_injection_failed.
call dbg.void log<(ConsoleColor)12>(char const*)
mov rax, qword [rbp + 0x198]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov ecx, 0xa
call dbg.countdown(int)
mov ebx, 1
jmp 0x401e2a
mov rax, qword [rbp + 0x198]
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 0x401ef5
add rsp, 0x238
pop rbx
pop rbp
ret