Function at 0x14004a190
Capabilities:
Create thread
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
xor esi, esi
lea rcx, [rsi - 2]
call qword [sym.imp.USER32.dll_SetProcessDpiAwarenessContext]
call fcn.14004b0e0
test al, al
jne 0x14004a200
lea eax, [rsi + 2]
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.1400508c0
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
xor r9d, r9d
lea r8, str.grcWindow
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExA]
mov rbx, rax
test rax, rax
jne 0x14004a253
lea rdx, str.Failed_to_find_game_window.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002ef0
lea rdx, [0x140002be0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, str.Pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 1
jmp 0x14004a1d8
lea rdx, [rbp - 0x58]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [rsp + 0x60], esi
jne 0x14004a27d
lea rdx, str.Failed_to_get_process_ID.
jmp 0x14004a223
mov ecx, 8
call fcn.1400508e0
mov rbx, rax
mov qword [rsp + 0x70], rax
xor eax, eax
mov qword [rbx], rax
mov edi, dword [rsp + 0x60]
mov qword [rbx], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str..wefewf
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14004a3a3
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], 0xf
lea ecx, [rax + 0x21]
call fcn.1400508e0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0x1c
mov qword [rsp + 0x58], 0x1f
movups xmm0, xmmword [str.Failed_to_open_driver_handle]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1400ee9b8]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x1400ee9c0]
mov dword [rax + 0x18], ecx
mov byte [rax + 0x1c], 0
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14004ae40
lea rdx, [0x140002be0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14004a3da
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a39c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a39c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140050924
jmp 0x14004a3da
mov dword [rbp - 0x40], edi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x230
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 0x230
lea r8, [rbp - 0x40]
mov edx, 0x221dd4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop
mov qword [rsp + 0x68], rbx
mov qword [0x1400f87e8], rbx
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], si
lea r9, str.FiveM_b3095_GameProcess.exe
mov edx, 0x1b
lea rcx, [rbp - 0x78]
call fcn.14004ac90
lea rbx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rbx, qword [rbp - 0x78]
mov rdi, qword [rsp + 0x68]
xor edx, edx
mov r8d, 0x230
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
mov r8, rbx
mov edx, 0x100
lea rcx, [rbp - 0x18]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x230
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x230
lea r8, [rbp - 0x40]
mov edx, 0x221de0
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rax, qword [rbp + 0x1e8]
mov qword [rbp - 0x80], rax
test rax, rax
jne 0x14004a4a7
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.14004aa80
lea rdx, [0x14004ac50]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov ecx, 1
call fcn.1400508e0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x14004b040]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14004a625
cmp dword [rsp + 0x48], 0
jne 0x14004a4f9
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x14004a51c
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x78], rax
mov ecx, 0x10
call fcn.1400508e0
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rax], xmm0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x14004b070]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14004a615
cmp dword [rsp + 0x48], 0
jne 0x14004a592
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x14004a5b5
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov byte [0x1400f8050], 1
mov r8, qword [rbp - 0x80]
mov rdx, qword [rsp + 0x68]
call fcn.14004a640
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x14004a60e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a609
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a609
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140050924
xor eax, eax
jmp 0x14004a1d8
mov dword [rsp + 0x48], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x48], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3