Function at 0x140002c80
Capabilities:
Get common file path
Set console window title

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rcx, str.Powered_by_ChatGPT_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call fcn.140002940
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov dword [rsp + 0x20], 0x907e8
mov eax, 0xe
mov word [rsp + 0x26], ax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetSystemTime]
test eax, eax
je 0x140002cf4
lea rdx, str.System_time_set_to_September_14th__2024._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jmp 0x140002d02
lea rdx, str.Failed_to_set_system_time._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400041f0
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x140002d4a
lea rdx, str.Failed_to_get_current_directory._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400041f0
mov eax, 1
jmp 0x140002edb
lea rcx, [rsp + 0x50]
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp byte [rcx + rax], 0
jne 0x140002d56
cmp byte [rsp + rax + 0x4f], 0x5c
je 0x140002d7e
lea r8, [0x140007b0c]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, str.wsnmp33.dll
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 0xa
lea rdx, str.GTAProcess
lea rcx, [rsp + 0x20]
call fcn.1400049c0
nop
lea rcx, [rsp + 0x20]
call fcn.140002400
mov ebx, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140002e0a
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002e05
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002e05
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400059a4
test ebx, ebx
jne 0x140002e49
lea rdx, str.Failed_to_find_process_containing_name:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400041f0
mov rcx, rax
lea rdx, str.GTAProcess
call fcn.1400041f0
mov rcx, rax
lea rdx, [0x140007780]
call fcn.1400041f0
mov eax, 1
jmp 0x140002edb
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140002680
test al, al
je 0x140002e69
lea rdx, str.DLL_successfully_injected_into_process.__Thanks_For_Using_Fivem_Premium__n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jmp 0x140002e77
lea rdx, str.DLL_injection_failed._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400041f0
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x20], 0xa
lea rcx, [rsp + 0x20]
call fcn.1400043d0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetSystemTime]
test eax, eax
je 0x140002eb9
lea rdx, str.System_time_restored_to_the_current_date_and_time._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jmp 0x140002ec7
lea rdx, str.Failed_to_restore_system_time._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400041f0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140005940
add rsp, 0x170
pop rbx
ret