Function at 0x140001758
Capabilities:
Check if file exists
Execute command
Get file attributes
Set console window title

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor esi, esi
lea rcx, str.PG3D_DLL_Injector
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rdx, str.Test.dll
lea rcx, [rbp + 0x2f]
call fcn.140001d64
nop
lea rcx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 0xf
cmova rcx, qword [rbp + 0x2f]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140001bad
test al, 0x10
jne 0x140001bad
lea rdx, str.Checking_if_Pixel_Gun_3D_is_already_running...
lea rcx, [rbp + 7]
call fcn.140001d64
nop
lea rdx, [rbp + 7]
lea ecx, [rsi + 0xb]
call fcn.140001178
nop
mov ebx, 0x1000
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x140001823
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, rbx
jb 0x14000181e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000181e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002554
lea rdx, str.Pixel_Gun_3D.exe
lea rcx, [rbp + 7]
call fcn.140001d64
lea rcx, [rbp + 7]
call fcn.140001250
mov edi, eax
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x140001875
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, rbx
jb 0x140001870
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001a50
call fcn.140002554
test edi, edi
jne 0x1400019f4
lea rdx, str.Pixel_Gun_3D_not_found._Launching_the_game...
lea rcx, [rbp + 7]
call fcn.140001d64
nop
lea rdx, [rbp + 7]
lea ecx, [rdi + 0xe]
call fcn.140001178
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x1400018d5
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, rbx
jb 0x1400018d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400018d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002554
lea rdx, str.Launching_Pixel_Gun_3D_via_Steam...
lea rcx, [rbp + 7]
call fcn.140001d64
nop
lea rdx, [rbp + 7]
mov ecx, 0xb
call fcn.140001178
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x14000192f
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, rbx
jb 0x14000192a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000192a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002554
lea rcx, str.start_steam:__rungameid_2524890
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rdx, str.Waiting_for_Pixel_Gun_3D_to_start...
lea rcx, [rbp + 7]
call fcn.140001d64
nop
lea rdx, [rbp + 7]
mov ecx, 0xe
call fcn.140001178
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x140001993
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, rbx
jb 0x14000198e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001a49
call fcn.140002554
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.Pixel_Gun_3D.exe
lea rcx, [rbp + 7]
call fcn.140001d64
lea rcx, [rbp + 7]
call fcn.140001250
mov edi, eax
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x1400019ec
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, rbx
jb 0x1400019e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001a50
call fcn.140002554
test edi, edi
je 0x14000193c
lea rdx, str.Pixel_Gun_3D_process_found_
lea rcx, [rbp + 7]
call fcn.140001d64
nop
lea rdx, [rbp + 7]
mov ecx, 0xb
call fcn.140001178
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x140001a5c
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, rbx
jb 0x140001a57
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a57
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002554
mov r8d, edi
xor edx, edx
lea ecx, [rdx + 0x2a]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x140001ad1
lea rdx, str.Failed_to_open_Pixel_Gun_3D_process.
lea rcx, [rbp + 7]
call fcn.140001d64
nop
lea rdx, [rbp + 7]
lea ecx, [rdi + 0xc]
call fcn.140001178
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x140001c9b
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, rbx
jb 0x140001c96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c96
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, [rbp + 0x2f]
mov rcx, rdi
call fcn.14000133c
lea rcx, [rbp + 7]
test al, al
jne 0x140001b49
lea rdx, str.DLL_injection_failed.
call fcn.140001d64
nop
lea rdx, [rbp + 7]
mov ecx, 0xc
call fcn.140001178
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x140001b3b
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, rbx
jb 0x140001b36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b36
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002554
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001c9b
lea rdx, str.DLL_injected_successfully.
call fcn.140001d64
nop
lea rdx, [rbp + 7]
mov ecx, 0xb
call fcn.140001178
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x140001b9f
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, rbx
jb 0x140001b9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b9a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002554
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001ca0
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rbp + 0x3f]
sub rax, rcx
cmp rax, 0x14
jb 0x140001d01
lea rax, [rbp + 0x2f]
cmp qword [rbp + 0x47], 0xf
cmova rax, qword [rbp + 0x2f]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x14
lea rcx, [rbp + 7]
call fcn.140002230
nop
lea rdx, [rbp + 7]
mov ecx, 0xc
call fcn.140001178
nop
mov ebx, 0x1000
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x140001c41
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, rbx
jb 0x140001c3c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c3c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002554
lea rdx, str.Make_sure_the_DLL_is_in_the_same_folder_as_this_program.
lea rcx, [rbp + 7]
call fcn.140001d64
nop
lea rdx, [rbp + 7]
mov ecx, 0xb
call fcn.140001178
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x140001c9b
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, rbx
jb 0x140001c96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c96
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002554
mov esi, 1
mov rdx, qword [rbp + 0x47]
cmp rdx, 0xf
jbe 0x140001cda
inc rdx
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, rbx
jb 0x140001cd5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001cd5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002554
mov eax, esi
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400024f0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140001164
nop
int3